nixdots/home/programs/graphical/bars/eww/config/scripts/workspaces

14 lines
383 B
Plaintext
Raw Normal View History

2024-06-20 12:53:31 +00:00
#!/usr/bin/env bash
# shellcheck source=include
source "./scripts/include"
if [ "$1" = "--switch" ]; then
2024-06-20 12:53:31 +00:00
$HOME/.local/bin/scripts/gui/hyprland/swap-workspace "$2" >/dev/null
# hyprctl dispatch workspace "$2" >/dev/null
elif [ "$1" = "--loop" ]; then
2024-06-20 12:53:31 +00:00
hyprland_ipc "workspace|createworkspace|destroyworkspace" | ./scripts/workspaces.py "$@"
else
2024-06-20 12:53:31 +00:00
./scripts/workspaces.py "$@"
fi