dotfiles-remastered/.config/eww/modules/workspace/scroll-current-workspace.sh

18 lines
395 B
Bash
Raw Normal View History

2023-11-26 23:34:43 +00:00
#!/bin/bash
direction=$1
current=$2
exit 0 # For the time being this script only exist to keep current_workspace from being lazy
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
fi