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

14 lines
341 B
Bash
Executable file

#!/bin/bash
# shellcheck source=include
source "./scripts/include"
if [ "$1" = "--switch" ]; then
swap-workspace "$2" >/dev/null
# hyprctl dispatch workspace "$2" >/dev/null
elif [ "$1" = "--loop" ]; then
hyprland_ipc "workspace|createworkspace|destroyworkspace" | ./scripts/workspaces.py "$@"
else
./scripts/workspaces.py "$@"
fi