diff --git a/waybar/config.template b/waybar/config.template index f7b1d9b48..c3e3fa444 100644 --- a/waybar/config.template +++ b/waybar/config.template @@ -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, diff --git a/waybar/style.css b/waybar/style.css index dba380b99..94ce2ca27 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -244,6 +244,11 @@ window#waybar { margin-bottom: -15px; } +#custom-osk.activated { + /* background-color: @fg; */ + color: @white; +} + /* Package upgrades */ #custom-pkg {