26 lines
383 B
Bash
Executable File
26 lines
383 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#
|
|
# Script to autostart programs.
|
|
#
|
|
|
|
setlayout=$HOME/.config/scripts/wm/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
|