summarylogtreecommitdiffstats
path: root/hyprquickframe
blob: 9bd4b220e4adf6e77a7a3fa05eabc19315ab4331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env bash

set -euo pipefail

APP_NAME="HyprQuickFrame"

usage() {
    cat <<EOF
Usage: hyprquickframe [OPTION]

Options:
  -h, --help    Show this help message

Config:
  You can edit the theme file at /etc/xdg/quickshell/HyprQuickFrame/theme.toml to customize the appearance of HyprQuickFrame.
EOF
}

case "${1:-}" in
    -e|--edit)
        echo -e "\e[33mDepracated:\e[0m option --edit is no longer supported. Edit feature has been moved to the Quickshell UI layer\n"
        quickshell -c "$APP_NAME" -n
        ;;
    -h|--help)
        usage
        ;;
    "")
        quickshell -c "$APP_NAME" -n
        ;;
    *)
        echo "Unknown option: $1"
        usage
        exit 1
        ;;
esac