22 lines
316 B
Bash
Executable File
22 lines
316 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# Script to autostart programs.
|
|
#
|
|
|
|
function run()
|
|
{
|
|
if ! pgrep -f $1; then
|
|
$1 $2&
|
|
fi
|
|
}
|
|
|
|
[[ $(pgrep dwm) ]] && run slstatus
|
|
run picom
|
|
run dunst
|
|
run firefox
|
|
run discord
|
|
run alacritty "--working-directory $HOME/"
|
|
run feh "--bg-fill $HOME/wallpaper/wallpaper"
|
|
[ -f "setlayout.sh" ] && ./setlayout.sh
|