diff options
-rwxr-xr-x | .old/bsdtpscroll (renamed from old/bsdtpscroll) | 0 | ||||
-rwxr-xr-x | .old/delsimpic (renamed from old/delsimpic) | 0 | ||||
-rwxr-xr-x | .old/ffconcat (renamed from old/ffconcat) | 0 | ||||
-rwxr-xr-x | .old/hwtexedit (renamed from old/hwtexedit) | 0 | ||||
-rwxr-xr-x | .old/lipsum (renamed from old/lipsum) | 0 | ||||
-rwxr-xr-x | .old/lipsum.~1~ (renamed from old/lipsum.~1~) | 0 | ||||
-rwxr-xr-x | .old/lipsumsh (renamed from old/lipsumsh) | 0 | ||||
-rwxr-xr-x | .old/memuse (renamed from old/memuse) | 0 | ||||
-rwxr-xr-x | .old/mnt (renamed from old/mnt) | 0 | ||||
-rwxr-xr-x | .old/netstat (renamed from old/netstat) | 0 | ||||
-rwxr-xr-x | .old/sb-internet (renamed from old/sb-internet) | 0 | ||||
-rwxr-xr-x | .old/settitle (renamed from old/settitle) | 0 | ||||
-rwxr-xr-x | .old/setup (renamed from old/setup) | 0 | ||||
-rwxr-xr-x | .old/setwindowtitle (renamed from old/setwindowtitle) | 0 | ||||
-rwxr-xr-x | .old/shblr (renamed from old/shblr) | 0 | ||||
-rwxr-xr-x | .old/sinkold (renamed from old/sinkold) | 0 | ||||
-rwxr-xr-x | .old/speedtest (renamed from old/speedtest) | 0 | ||||
-rwxr-xr-x | .old/speedtest-cli (renamed from old/speedtest-cli) | 0 | ||||
-rwxr-xr-x | .old/testtimmywm (renamed from old/testtimmywm) | 0 | ||||
-rwxr-xr-x | .old/transtape (renamed from old/transtape) | 0 | ||||
-rwxr-xr-x | .old/umnt (renamed from old/umnt) | 0 | ||||
-rwxr-xr-x | .old/virt (renamed from old/virt) | 0 | ||||
-rwxr-xr-x | .old/webcamdesktopffplay (renamed from old/webcamdesktopffplay) | 0 | ||||
-rwxr-xr-x | .old/win10 (renamed from old/win10) | 0 | ||||
-rwxr-xr-x | .old/ytdl-dlplst (renamed from old/ytdl-dlplst) | 0 | ||||
-rwxr-xr-x | bar/wmip | 2 | ||||
-rwxr-xr-x | keyboard/dmenuunicode | 18 | ||||
-rwxr-xr-x | keyboard/emojiselector | 5 | ||||
-rwxr-xr-x | launch/shows | 2 | ||||
l--------- | misc/screenrec | 1 | ||||
l--------- | misc/screenshot | 1 | ||||
l--------- | misc/wmip | 1 | ||||
-rwxr-xr-x | old/rectape | 13 | ||||
-rwxr-xr-x | old/viewintensitypro | 4 | ||||
-rwxr-xr-x | video/rectape | 16 | ||||
-rwxr-xr-x | video/rectapevaapi (renamed from old/rectapevaapi) | 7 | ||||
-rwxr-xr-x | video/viewintensitypro | 7 |
37 files changed, 34 insertions, 43 deletions
diff --git a/old/bsdtpscroll b/.old/bsdtpscroll index 0f2cd20..0f2cd20 100755 --- a/old/bsdtpscroll +++ b/.old/bsdtpscroll diff --git a/old/delsimpic b/.old/delsimpic index 83c3d1a..83c3d1a 100755 --- a/old/delsimpic +++ b/.old/delsimpic diff --git a/old/ffconcat b/.old/ffconcat index 06eb066..06eb066 100755 --- a/old/ffconcat +++ b/.old/ffconcat diff --git a/old/hwtexedit b/.old/hwtexedit index 262d10b..262d10b 100755 --- a/old/hwtexedit +++ b/.old/hwtexedit diff --git a/old/lipsum.~1~ b/.old/lipsum.~1~ index efa71b5..efa71b5 100755 --- a/old/lipsum.~1~ +++ b/.old/lipsum.~1~ diff --git a/old/lipsumsh b/.old/lipsumsh index d229877..d229877 100755 --- a/old/lipsumsh +++ b/.old/lipsumsh diff --git a/old/netstat b/.old/netstat index e7b23c3..e7b23c3 100755 --- a/old/netstat +++ b/.old/netstat diff --git a/old/sb-internet b/.old/sb-internet index ee1a160..ee1a160 100755 --- a/old/sb-internet +++ b/.old/sb-internet diff --git a/old/settitle b/.old/settitle index 7cdd7d1..7cdd7d1 100755 --- a/old/settitle +++ b/.old/settitle diff --git a/old/setwindowtitle b/.old/setwindowtitle index a2b9218..a2b9218 100755 --- a/old/setwindowtitle +++ b/.old/setwindowtitle diff --git a/old/sinkold b/.old/sinkold index 3022963..3022963 100755 --- a/old/sinkold +++ b/.old/sinkold diff --git a/old/speedtest b/.old/speedtest index 913f9ef..913f9ef 100755 --- a/old/speedtest +++ b/.old/speedtest diff --git a/old/speedtest-cli b/.old/speedtest-cli index 913f9ef..913f9ef 100755 --- a/old/speedtest-cli +++ b/.old/speedtest-cli diff --git a/old/testtimmywm b/.old/testtimmywm index 33cda37..33cda37 100755 --- a/old/testtimmywm +++ b/.old/testtimmywm diff --git a/old/transtape b/.old/transtape index a0eaaee..a0eaaee 100755 --- a/old/transtape +++ b/.old/transtape diff --git a/old/webcamdesktopffplay b/.old/webcamdesktopffplay index c56d879..c56d879 100755 --- a/old/webcamdesktopffplay +++ b/.old/webcamdesktopffplay diff --git a/old/ytdl-dlplst b/.old/ytdl-dlplst index f7b4a47..f7b4a47 100755 --- a/old/ytdl-dlplst +++ b/.old/ytdl-dlplst @@ -1,2 +1,2 @@ #!/bin/sh -ip a | awk '!/ lo/ && /inet / { sub(/\/.*/, "", $2); print $2 }' +ip a | awk '!/ (lo|dummy|virbr)/ && /inet / { sub(/\/.*/, "", $2); printf "%-12s %s\n", $NF":", $2 }' diff --git a/keyboard/dmenuunicode b/keyboard/dmenuunicode deleted file mode 100755 index 066099a..0000000 --- a/keyboard/dmenuunicode +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -# The famous "get a menu of emojis to copy" script. - -# Get user selection via dmenu from emoji file. -chosen=$(cut -d ';' -f1 ~/.local/share/emojis | dmenu -l 30 | sed "s/ .*//") - -# Exit if none chosen. -[ -z "$chosen" ] && exit - -# If you run this command with an argument, it will automatically insert the -# character. Otherwise, show a message that the emoji has been copied. -if [ -n "$1" ]; then - xdotool type "$chosen" -else - echo "$chosen" | tr -d '\n' | xclip -selection clipboard - notify-send -u low "'$chosen' copied to clipboard." & -fi diff --git a/keyboard/emojiselector b/keyboard/emojiselector new file mode 100755 index 0000000..a47d348 --- /dev/null +++ b/keyboard/emojiselector @@ -0,0 +1,5 @@ +#!/bin/sh +emojis=~/.local/share/emojis +chosen=$(grep -v '^$\|#' "$emojis" | dmenu -l 30 | cut -d' ' -f1) + +[ -z "$chosen" ] || xdotool type "$chosen" diff --git a/launch/shows b/launch/shows index 2d964a7..a0cb8a6 100755 --- a/launch/shows +++ b/launch/shows @@ -18,7 +18,7 @@ case "$season" in ep="$(find "$showsdir/$show" -type f | sort | sed 's/.* \([0-9]*\)\/\(.*\)\.mkv$/S\1E\2/' | dmenu $dmenucolors -p "Episode:")" playvid "$showsdir/$show/$(echo "$ep" | sed 's/^S\([0-9]*\)E/Season \1\//').mkv" ;; - $randep) playvid "$(find "$showsdir/$show" -type f | sort -R | head -1)" ;; + $randep) playvid "$(find "$showsdir/$show" -type f | shuf -n1)" ;; *) ep="$(ls "$showsdir/$show/$season" | sed 's/\.mkv$//' | dmenu $dmenucolors -p "Episode:")" playvid "$showsdir/$show/$season/$ep.mkv" diff --git a/misc/screenrec b/misc/screenrec deleted file mode 120000 index cecd2f8..0000000 --- a/misc/screenrec +++ /dev/null @@ -1 +0,0 @@ -../video/screenrec
\ No newline at end of file diff --git a/misc/screenshot b/misc/screenshot deleted file mode 120000 index 3eb7217..0000000 --- a/misc/screenshot +++ /dev/null @@ -1 +0,0 @@ -/home/timmy/.local/bin/keyboard/screenshot
\ No newline at end of file diff --git a/misc/wmip b/misc/wmip deleted file mode 120000 index 44c49c2..0000000 --- a/misc/wmip +++ /dev/null @@ -1 +0,0 @@ -../bar/wmip
\ No newline at end of file diff --git a/old/rectape b/old/rectape deleted file mode 100755 index 1e54370..0000000 --- a/old/rectape +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -if [ -z "$1" ]; then - $1=untitled_$(ls | wc -l) -fi - -ffmpeg \ --f decklink -format_code ntsc -i "Intensity Pro" \ --c:v libx264 \ --qmin 6 -qmax 26 -qdiff 4 \ --vf yadif \ --c:a aac -b:a 384k \ --metadata "title"="$1" \ -"$1.mkv" diff --git a/old/viewintensitypro b/old/viewintensitypro deleted file mode 100755 index 1b1f77c..0000000 --- a/old/viewintensitypro +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -ffplay \ --f decklink -format_code ntsc -i "Intensity Pro" \ --vf yadif diff --git a/video/rectape b/video/rectape new file mode 100755 index 0000000..fa631eb --- /dev/null +++ b/video/rectape @@ -0,0 +1,16 @@ +#!/bin/sh +if [ -z "$1" ]; then $0 untitled_$(ls | wc -l); exit; fi + +for mod in blackmagic blackmagic-io; do doas modprobe $mod; done +#doas rc-service DesktopVideoHelper start + +ffmpeg \ +-f decklink -format_code ntsc -i "Intensity Pro" \ +-c:v libx264 \ +-preset medium \ +-qmin 6 -qmax 18 -qdiff 4 \ +-vf yadif \ +-c:a aac -b:a 384k \ +-metadata "title"="$1" \ +-metadata "comment=tapes.tjkeller.xyz" \ +"$1.mkv" diff --git a/old/rectapevaapi b/video/rectapevaapi index 16bd190..4ddf868 100755 --- a/old/rectapevaapi +++ b/video/rectapevaapi @@ -1,7 +1,8 @@ #!/bin/sh -if [ -z "$1" ]; then - title="untitled_$(ls | wc -l)" -fi +[ -z "$1" ] && $0 untitled_$(ls | wc -l) + +for mod in blackmagic blackmagic-io; do doas modprobe $mod; done +doas rc-service DesktopVideoHelper start ffmpeg -hwaccel auto -vaapi_device /dev/dri/renderD128 \ -f decklink -format_code ntsc -i "Intensity Pro" \ diff --git a/video/viewintensitypro b/video/viewintensitypro new file mode 100755 index 0000000..cd2d73d --- /dev/null +++ b/video/viewintensitypro @@ -0,0 +1,7 @@ +#!/bin/sh +#for mod in blackmagic blackmagic-io; do doas modprobe $mod; done +#doas rc-service DesktopVideoHelper start + +ffplay \ +-f decklink -format_code ntsc -i "Intensity Pro" \ +-vf yadif |