dotfiles/.config/wm_scripts/autostart.sh
2021-12-28 21:39:15 +08:00

24 lines
330 B
Bash
Executable File

#!/bin/bash
#
# Script to autostart programs.
#
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/"
fi
run feh "--bg-fill $HOME/wallpaper/wallpaper"
run picom
run dunst
[ -f "setlayout.sh" ] && ./setlayout.sh