diff --git a/fetchcord.sh b/fetchcord.sh old mode 100644 new mode 100755 diff --git a/flac2mp3.sh b/flac2mp3.sh new file mode 100755 index 0000000..2207296 --- /dev/null +++ b/flac2mp3.sh @@ -0,0 +1,60 @@ +#!/bin/bash +# FLAC to MP3 converter script originally by +# erdnuesse https://github.com/erdnuesse +# adapted for use by me +## - The IFS takes care of spaces in file and dirnames +## - your folders may vary +## - what you mount to the folders does not matter +## - in RELDIR, the f5 most likely MUST be edited, +## since its responsible, how many leading directories +## will be removed from the directory structure in order +## to append that exact path to the outfile +## - the commented echos are still in place in order to give +## you the variables for testing, before running. +## just comment the ffmpeg / avconv command with a # +## - on my raspberry I could only use avconv, not ffmpeg. +## choose, whatever suits you best + +IFS=$'\n' + +## the paths given here contain my Directory structure, that I want to keep +## source=/mnt/music/FLAC/ARTIST/ALBUM/FLACFILE.flac +## local=/mnt/1tb/mp3/ARTIST/ALBUM/MP3FILE.mp3 + +source=$HOME/Music/ +dest=$HOME/Music/Mobile + +for i in $(find $source -type f -iname '*.flac' ); +do +## SET VARIABLES for PATHS and FILENAMES + fullfile=$i + filename="${i##*/}" + filename="${filename%.*}.mp3" + fulldir=$(dirname "${i}") + reldir="$(echo $fulldir | cut -d'/' -f5-)" + reldir=${reldir//flac} + outdir="$dest/$reldir" + outfile="$outdir/$filename" + +# is that working? +# outfile='$local/""$(echo $(dirname "${i}") | cut -d'/' -f5-)"//flac"/"${i##*/}"' +# echo 'output file: ' "$outfile" + +## SHOW ME THE CONTENTS of the VARIABLES +# echo 'File found:' "$i" +# echo 'Relative dir: ' "$reldir" +# echo 'directory will be created: ' "$outdir" +# echo 'Filename: ' "$filename" +# echo 'FileExt: ' "$extension" +# echo 'output file: ' "$outfile" + +## CREATE Output Folders + mkdir -p "$outdir" + +## RUN + ffmpeg -n -loglevel info -i "$fullfile" -codec:a libmp3lame -qscale:a 0 "$outfile" +# avconv -n -nostats -loglevel info -i "$fullfile" -codec:a libmp3lame -qscale:a 0 "$outfile" +## just for testing +# sleep 1 +done + diff --git a/keymap.sh b/keymap.sh index e914a64..6d9cc55 100644 --- a/keymap.sh +++ b/keymap.sh @@ -1,2 +1,4 @@ #!/bin/sh -setxkbmap ie -option "caps:swapescape" +sudo localectl --no-convert set-x11-keymap ie +# swap caps & escape: +# setxkbmap ie -option "caps:swapescape" diff --git a/lineage4microg-build-surya-OFFICIAL.sh b/lineage4microg-build-surya-OFFICIAL.sh new file mode 100755 index 0000000..86c8713 --- /dev/null +++ b/lineage4microg-build-surya-OFFICIAL.sh @@ -0,0 +1,14 @@ +docker run \ + -e "BRANCH_NAME=lineage-18.1" \ + -e "DEVICE_LIST=surya" \ + -e "SIGN_BUILDS=true" \ + -e "SIGNATURE_SPOOFING=restricted" \ + -e "CUSTOM_PACKAGES=GmsCore GsfProxy FakeStore MozillaNlpBackend NominatimNlpBackend com.google.android.maps.jar FDroid FDroidPrivilegedExtension " \ + -v "/mnt/storage/lineageos4microg/lineage:/srv/src" \ + -v "/mnt/storage/lineageos4microg/zips:/srv/zips" \ + -v "/mnt/storage/lineageos4microg/logs:/srv/logs" \ + -v "/mnt/storage/lineageos4microg/ccache:/srv/ccache" \ + -v "/home/wizzdom/keys:/srv/keys" \ + -v "/mnt/storage/lineageos4microg/manifests:/srv/local_manifests" \ + lineageos4microg/docker-lineage-cicd + diff --git a/lineage4microg-build-surya_gardiol.sh b/lineage4microg-build-surya_gardiol.sh new file mode 100755 index 0000000..86c8713 --- /dev/null +++ b/lineage4microg-build-surya_gardiol.sh @@ -0,0 +1,14 @@ +docker run \ + -e "BRANCH_NAME=lineage-18.1" \ + -e "DEVICE_LIST=surya" \ + -e "SIGN_BUILDS=true" \ + -e "SIGNATURE_SPOOFING=restricted" \ + -e "CUSTOM_PACKAGES=GmsCore GsfProxy FakeStore MozillaNlpBackend NominatimNlpBackend com.google.android.maps.jar FDroid FDroidPrivilegedExtension " \ + -v "/mnt/storage/lineageos4microg/lineage:/srv/src" \ + -v "/mnt/storage/lineageos4microg/zips:/srv/zips" \ + -v "/mnt/storage/lineageos4microg/logs:/srv/logs" \ + -v "/mnt/storage/lineageos4microg/ccache:/srv/ccache" \ + -v "/home/wizzdom/keys:/srv/keys" \ + -v "/mnt/storage/lineageos4microg/manifests:/srv/local_manifests" \ + lineageos4microg/docker-lineage-cicd + diff --git a/lineage4microg-build.sh b/lineage4microg-build.sh new file mode 100755 index 0000000..86c8713 --- /dev/null +++ b/lineage4microg-build.sh @@ -0,0 +1,14 @@ +docker run \ + -e "BRANCH_NAME=lineage-18.1" \ + -e "DEVICE_LIST=surya" \ + -e "SIGN_BUILDS=true" \ + -e "SIGNATURE_SPOOFING=restricted" \ + -e "CUSTOM_PACKAGES=GmsCore GsfProxy FakeStore MozillaNlpBackend NominatimNlpBackend com.google.android.maps.jar FDroid FDroidPrivilegedExtension " \ + -v "/mnt/storage/lineageos4microg/lineage:/srv/src" \ + -v "/mnt/storage/lineageos4microg/zips:/srv/zips" \ + -v "/mnt/storage/lineageos4microg/logs:/srv/logs" \ + -v "/mnt/storage/lineageos4microg/ccache:/srv/ccache" \ + -v "/home/wizzdom/keys:/srv/keys" \ + -v "/mnt/storage/lineageos4microg/manifests:/srv/local_manifests" \ + lineageos4microg/docker-lineage-cicd + diff --git a/nvidia-oc b/nvidia-oc new file mode 100755 index 0000000..f8b2a26 --- /dev/null +++ b/nvidia-oc @@ -0,0 +1,8 @@ +# Enable Overclock and cooling options using coolbits: +sudo nvidia-xconfig --cool-bits=28 + +# Raise GPU's TDP (power) limit to max: +sudo nvidia-smi -pl 75 + +# Apply GPU clocks from /etc/nvoc.d/gpu0.conf : +nvoc --apply diff --git a/osu-rpc.sh b/osu-rpc.sh new file mode 100755 index 0000000..901dc45 --- /dev/null +++ b/osu-rpc.sh @@ -0,0 +1,4 @@ +#!/bin/bash +export WINEESYNC=1 +export WINEPREFIX=/mnt/storage/Games/osu +/opt/wine-osu/bin/wine /opt/wine-discord-ipc-bridge/winediscordipcbridge.exe diff --git a/refresh.sh b/refresh.sh old mode 100644 new mode 100755 index ae21dbe..c5b292b --- a/refresh.sh +++ b/refresh.sh @@ -1,6 +1,6 @@ -#!/bin/sh +#!/bin/bash killall pulseaudio killall mpd -$HOME/.config/screenlayout/laptop-upstairs-docked.sh +# $HOME/.config/screenlayout/laptop-upstairs-docked.sh pulseaudio & mpd & diff --git a/screenlayout.sh b/screenlayout.sh deleted file mode 100755 index 5bf3c0a..0000000 --- a/screenlayout.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -xrandr --output DVI-D-0 --off --output HDMI-0 --primary --mode 1920x1080 --pos 0x143 --rotate normal --output DP-0 --mode 1366x768 --pos 1920x0 --rotate right --output DP-1 --off diff --git a/start-virtual-cam.sh b/start-virtual-cam.sh new file mode 100755 index 0000000..58ee735 --- /dev/null +++ b/start-virtual-cam.sh @@ -0,0 +1,13 @@ +#!/bin/sh +LABEL="Virtual Cam" +NOHUP=1 +sudo modprobe v4l2loopback video_nr=5 card_label="$LABEL" exclusive_caps=1 +if [ $NOHUP = 1 ]; +then +nohup ffmpeg -i /dev/video0 -f v4l2 -vcodec rawvideo -pix_fmt yuv420p /dev/video5 & +elif [ $NOHUP = 0 ] +then + ffmpeg -i /dev/video0 -f v4l2 -vcodec rawvideo -pix_fmt yuv420p /dev/video5 +else + echo "Error: incorrect NOHUP value" +fi diff --git a/ytplay b/ytplay new file mode 100755 index 0000000..ab75401 --- /dev/null +++ b/ytplay @@ -0,0 +1,4 @@ +#!/bin/sh + +query=$(printf '%s' "$*" | tr ' ' '+') +mpv https://youtube.com/$(curl -s "https://vid.puffyan.us/search?q=$query" | grep -Eo "watch\?v=.{11}" | head -n 1)