๐Ÿ“ฆ REALERvolker1 / homescripts

๐Ÿ“„ .zprofile ยท 42 lines
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
36
37
38
39
40
41
42. ${ZDOTDIR:-~}/environ.zsh

((${+commands[set-cursor-theme.sh]})) && eval $(=set-cursor-theme.sh --shell-eval)

# I stopped using sddm because it has a bug where it never starts graphically
[[ ${TERM-} == linux && ${TTY-} == /dev/tty* ]] && () {
    # This is an anon function
    local -a choices=(
        '1: Hyprland' 
        '2: startx' 
        '3: tmux' 
        "4: Regular ${SHELL:-zsh}"
        "5: bash"
        '6: Hyprland under bash (mitigate zsh killbug)'
    )
    local chosen
    chosen=$(print -l $choices | fzf)
    echo ${chosen:=}

    case $chosen in
    1*)
        exec Hyprland
        ;;
    2*)
        exec startx
        ;;
    3*)
        exec tmux
        ;;
    5*)
        exec bash
        ;;
    6*)
        exec bash -c Hyprland
        ;;
    *)
        echo "Resuming shell session"
        ;;
    esac
}