Files
parana/scripts/switch-workspace.sh
2026-07-10 20:07:29 -04:00

9 lines
293 B
Bash

#!/usr/bin/env bash
current_workspace=$(hyprctl monitors | grep "active workspace" | awk '{print $NF}')
if [ "$1" == "up" ]; then
new_workspace=$((current_workspace + 1))
elif [ "$1" == "down" ]; then
new_workspace=$((current_workspace - 1))
fi
hyprctl dispatch workspace "$new_workspace"