Files
dotfiles/sketchybar/.config/sketchybar/plugins/executable_space_click.sh
T
2026-04-08 21:42:04 -07:00

11 lines
283 B
Bash

#!/bin/sh
apps=$(aerospace list-windows --workspace $1 | awk -F '|' '{gsub(/^ *| *$/, "", $2); print $2}')
focused=$(aerospace list-workspaces --focused)
if [ "${apps}" = "" ] && [ "${focused}" != "$1" ]; then
sketchybar --set space.$1 display=0
else
aerospace workspace $1
fi