blob: 76d0950b6a3faee604e38c75506a81ac77ddd9d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env 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
|