scripts/waybar/waybar-keyboard.sh

11 lines
263 B
Bash
Raw Normal View History

2021-12-31 15:57:34 +00:00
#!/bin/bash
2022-09-23 22:07:29 +00:00
FILE=/home/jpm/.spool/onscreen-keyboard
2021-12-31 15:57:34 +00:00
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