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

19 lines
270 B
Plaintext
Raw Normal View History

2023-07-06 18:26:47 +00:00
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