scripts/waybar/waybar-keyboard.sh

11 lines
264 B
Bash
Executable File

#!/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