From 823a8ad4281458321f8989c8b28477b2527262d7 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sun, 21 Aug 2022 17:14:30 +0200 Subject: [PATCH] Make workspaces clickable --- home/.config/lemonbar/applet-workspaces | 3 +++ home/.config/lemonbar/lemonbar-launch | 1 + 2 files changed, 4 insertions(+) diff --git a/home/.config/lemonbar/applet-workspaces b/home/.config/lemonbar/applet-workspaces index e39932f..8cc4b97 100755 --- a/home/.config/lemonbar/applet-workspaces +++ b/home/.config/lemonbar/applet-workspaces @@ -62,6 +62,9 @@ main() { * ) continue ;; esac + prefix="${prefix}%{A:focusws $name:}" + suffix="${suffix}%{A}" + if [[ "$name" == "0" ]]; then name=10 fi diff --git a/home/.config/lemonbar/lemonbar-launch b/home/.config/lemonbar/lemonbar-launch index 24770ec..1c4bf37 100755 --- a/home/.config/lemonbar/lemonbar-launch +++ b/home/.config/lemonbar/lemonbar-launch @@ -34,6 +34,7 @@ RIGHT_MODULES=("kernel" "battery" "memory" "storage" "cpu" "volume" "uptime" "bi typeset -A CMDS CMDS[volup]="pulsemixer --change-volume +3" CMDS[voldown]="pulsemixer --change-volume -3" +CMDS[focusws]="bspc desktop -f" typeset -A PREFIX typeset -A SUFFIX