workspaces: make #209 work with any number of ws (that's within hyprland's limit)

This commit is contained in:
end-4
2024-01-28 22:43:32 +07:00
parent 5a94e7b18c
commit 603b31c54d
2 changed files with 35 additions and 43 deletions
@@ -1,2 +1,2 @@
#!/bin/bash
hyprctl dispatch $1 $((((`hyprctl activeworkspace -j | jq -r .id` - 1) / 10) * 10 + $2))
hyprctl dispatch "$1" $(((($(hyprctl activeworkspace -j | gojq -r .id) - 1) / 10) * 10 + $2))