Make workspaces clickable

This commit is contained in:
ItsDrike 2022-08-21 17:14:30 +02:00
parent 52a00e9d29
commit 823a8ad428
No known key found for this signature in database
GPG key ID: B014E761034AF742
2 changed files with 4 additions and 0 deletions

View file

@ -62,6 +62,9 @@ main() {
* ) continue ;;
esac
prefix="${prefix}%{A:focusws $name:}"
suffix="${suffix}%{A}"
if [[ "$name" == "0" ]]; then
name=10
fi

View file

@ -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