dotfiles/home/.config/eww/scripts/workspaces

13 lines
332 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env bash
2022-10-29 18:25:42 +00:00
# shellcheck source=include
source "./scripts/include"
if [ "$1" = "--switch" ]; then
hyprctl dispatch focusworkspaceoncurrentmonitor "$2" >/dev/null
2022-10-29 18:25:42 +00:00
elif [ "$1" = "--loop" ]; then
hyprland_ipc "workspace|createworkspace|destroyworkspace" | ./scripts/workspaces.py "$@"
2022-10-29 18:25:42 +00:00
else
./scripts/workspaces.py "$@"
2022-10-29 18:25:42 +00:00
fi