dots/.config/awesome/misc/autostart/programs.sh

23 lines
361 B
Bash

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