fiddle
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
PORT=$1
|
||||
kill -9 $(lsof -t -i:$PORT)
|
||||
|
||||
Executable
+9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user