This commit is contained in:
Adam Jeniski
2022-07-09 23:38:04 -04:00
parent 60e222eaf8
commit fd8882df39
37 changed files with 3045 additions and 26 deletions
+4 -3
View File
@@ -1,8 +1,9 @@
#!/bin/bash
pactl list | \
grep -e media.name | \
grep -v -e recStream -e playStream -e Playback | \
rg -e media.name | \
rg -v -e recStream -e playStream -e Playback -e playback | \
tail -n 1 | \
sed -r 's/.*"(.*)".*/\1/'
sed -r 's/^.*= "(.*)"$/\1/' | \
sed 's/\\"/"/g'
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
PORT=$1
kill -9 $(lsof -t -i:$PORT)
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
if [[ -f ~/Pictures/screenshot.png ]]; then
rm ~/Pictures/screenshot.png
fi
scrot ~/Pictures/screenshot.png
convert ~/Pictures/screenshot.png -crop 1920x1080+0+0 ~/Pictures/screenshot.png