Additional waybar commands

This commit is contained in:
John Mertz 2021-12-31 10:57:34 -05:00 committed by John Mertz
parent 2ef12fe5de
commit f13778fe52
Signed by: jpm
GPG Key ID: E9C5EA2D867501AB
4 changed files with 38 additions and 0 deletions

9
waybar/waybar-audio.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
RUNNING=$(pgrep pavucontrol)
if [ "$RUNNING" ]; then
kill $RUNNING 2&>1 /dev/null
else
/usr/bin/pavucontrol
fi

10
waybar/waybar-keyboard.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
FILE=/home/jpm/.config/onscreen-keyboard
if [ -f $FILE ]; then
rm $FILE
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false
else
touch $FILE
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true
fi

10
waybar/waybar-mpd.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
RUNNING=$(pgrep ncmpcpp)
if [ "$RUNNING" ]; then
kill $RUNNING 2&>1 /dev/null
else
echo "starting"
/usr/bin/xterm -e /usr/bin/ncmpcpp
fi

9
waybar/waybar-todo.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
RUNNING=$(pgrep todotxt-machine)
if [ "$RUNNING" ]; then
kill $RUNNING 2&>1 /dev/null
else
/usr/bin/xterm -e "/home/jpm/.local/bin/todotxt-machine /home/jpm/nextcloud/phone/todo.txt"
fi