I am batman
This commit is contained in:
9
scripts/switch-workspace.sh
Normal file
9
scripts/switch-workspace.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user