scripts/waybar/waybar-keyboard.sh

11 lines
281 B
Bash
Raw Normal View History

2021-12-31 15:57:34 +00:00
#!/bin/bash
FILE=/home/jpm/.local/state/onscreen-keyboard
2021-12-31 15:57:34 +00:00
if [ -f $FILE ]; then
2023-01-06 19:41:31 +00:00
rm $FILE
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false
2021-12-31 15:57:34 +00:00
else
2023-01-06 19:41:31 +00:00
touch $FILE
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true
2021-12-31 15:57:34 +00:00
fi