Add tooltip and active status to OSK

This commit is contained in:
John Mertz 2022-09-23 17:39:30 -04:00
parent 559e55fb4c
commit 288e3fe82f
2 changed files with 7 additions and 2 deletions

View File

@ -168,9 +168,9 @@
"tooltip": false
},
"custom/osk": {
"format": "⌨",
"interval": 1,
"on-click": "${HOME}/scripts/waybar/waybar-keyboard.sh",
"tooltip": false
"exec": "if [ -e $HOME/.spool/onscreen-keyboard ]; then CLASS='activated'; else CLASS=''; fi; echo '⌨\nToggle onscreen keyboard\n'$CLASS",
},
"custom/pkg": {
"interval": 60,

View File

@ -244,6 +244,11 @@ window#waybar {
margin-bottom: -15px;
}
#custom-osk.activated {
/* background-color: @fg; */
color: @white;
}
/* Package upgrades */
#custom-pkg {