dotfiles/.config/wm_scripts/autostart.sh
2022-01-20 19:02:04 +08:00

26 lines
383 B
Bash
Executable File

#!/bin/sh
#
# Script to autostart programs.
#
setlayout=$HOME/.config/wm_scripts/setlayout.sh
function run()
{
if ! pgrep -f $1; then
$1 $2&
fi
}
if [[ $(pgrep dwm) ]] ; then
run slstatus
run firefox
run discord
run alacritty "--working-directory $HOME/"
run slstatus
fi
run feh "--bg-fill $HOME/wallpaper/wallpaper"
run picom
run dunst
[ -f "$setlayout" ] && $setlayout