dotfiles/.config/wm_scripts/autostart.sh

25 lines
371 B
Bash
Executable File

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