Files
dotfiles/home/config/eww/lib/change-active-workspace.sh
T
2025-01-22 19:33:28 +02:00

18 lines
363 B
Bash
Executable File

#!/usr/bin/env sh
direction=$1
current=$2
if [[ $direction == "down" ]]; then
target=$(($current+1))
if [[ $target == 11 ]]; then
exit 0
fi
hyprctl dispatch workspace $target
elif [[ $direction == "up" ]]; then
target=$(($current-1))
hyprctl dispatch workspace $target
else
target=$1
hyprctl dispatch workspace $target
fi