main: special workspace toggles

This commit is contained in:
2 * r + 2 * t
2025-01-17 17:54:37 +11:00
parent 02c194f68c
commit ee9977c267
6 changed files with 64 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/fish
if ! hyprctl workspaces -j | jq -e 'first(.[] | select(.name == "special:special"))'
set activews (hyprctl activewindow -j | jq -r '.workspace.name')
string match -r -- '^special:' $activews && set togglews (string sub -s 9 $activews) || set togglews special
else
set togglews special
end
hyprctl dispatch togglespecialworkspace $togglews