dotfiles/.config/eww/widgets/workspaces/setworkspace

19 lines
270 B
Plaintext
Executable File

case $1 in
up)
if [ "$2" -eq "$3" ]; then
hyprctl dispatch workspace 1
else
new=$(($2+1))
hyprctl dispatch workspace $new
fi
;;
down)
if [ "$2" -eq 1 ]; then
hyprctl dispatch workspace $3
else
new=$(($2-1))
hyprctl dispatch workspace $new
fi
;;
esac