mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-11 19:40:00 -05:00
main: special workspace toggles
This commit is contained in:
Executable
+10
@@ -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
|
||||
Reference in New Issue
Block a user