aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/misc/autostart/programs.sh
blob: dbafe444ea532977f1b6b714527e933b3f5d976e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function exe () {
    local cmd=$@
    if ! pgrep -x $(echo $cmd | cut -d " " -f1); then
        $cmd &
    fi
}

function exe_lax () {
    local cmd=$@
    if ! pgrep $(echo $cmd | cut -d " " -f1); then
        $cmd &
    fi
}

exe "picom -b"
exe sxhkd
exe clipcatd
exe_lax wezterm
exe_lax "wezterm start --class code_term"
exe firefox
exe spotify
exe discord