mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-09 00:39:29 -05:00
main: workspace action
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
||||
|
||||
if [[ "$1" == *"group" ]]; then
|
||||
# Move to group
|
||||
hyprctl dispatch "${1::-5}" $((($2 - 1) * 10 + ${active_ws:0-1}))
|
||||
else
|
||||
# Move to ws in group
|
||||
hyprctl dispatch "$1" $((((active_ws - 1) / 10) * 10 + $2))
|
||||
fi
|
||||
Reference in New Issue
Block a user