diff --git a/etc/skel/.config/waybar/config.jsonc b/etc/skel/.config/waybar/config.jsonc index 0c33783..ea7a2ed 100644 --- a/etc/skel/.config/waybar/config.jsonc +++ b/etc/skel/.config/waybar/config.jsonc @@ -7,6 +7,7 @@ "modules-right": [ "tray", "custom/playerctl", + "custom/help", "custom/wlsunset", "idle_inhibitor", "custom/dunst", @@ -72,6 +73,12 @@ "signal": 5 }, + "custom/help": { + "format": "", + "on-click": "/usr/share/sway/scripts/help.sh --toggle", + "tooltip": "false" + }, + "custom/wlsunset": { "interval": "once", "tooltip": true, diff --git a/etc/skel/.config/waybar/style.css b/etc/skel/.config/waybar/style.css index 0e02abf..650b857 100644 --- a/etc/skel/.config/waybar/style.css +++ b/etc/skel/.config/waybar/style.css @@ -70,6 +70,7 @@ window#waybar.hidden { } #clock, +#custon-help, #custom-playerctl, #custom-power, #custom-wlsunset, @@ -111,6 +112,10 @@ window#waybar.hidden { color: @pink; } +#custom-help { + color: @rosewater; +} + #custom-wlsunset { color: @mauve; } diff --git a/usr/share/sway/scripts/help.sh b/usr/share/sway/scripts/help.sh index 4e4e455..aca69ad 100755 --- a/usr/share/sway/scripts/help.sh +++ b/usr/share/sway/scripts/help.sh @@ -10,6 +10,6 @@ if [ "$1" = "--toggle" ]; then else pkill -f -${QUIT_SIGNAL} nwg-wrapper for output in $(swaymsg -t get_outputs --raw | jq -r '.[].name'); do - nwg-wrapper -o "$output" -sv ${VISIBILITY_SIGNAL} -sq ${QUIT_SIGNAL} -s help.sh -p left -a end & + nwg-wrapper -o "$output" -i -sv ${VISIBILITY_SIGNAL} -sq ${QUIT_SIGNAL} -s help.sh -p left -a end & done fi