scripts/waybar/waybar-keyboard.sh

11 lines
281 B
Bash
Executable File

#!/bin/bash
FILE=/home/jpm/.local/state/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