2022-01-20 19:02:04 +08:00
|
|
|
#!/bin/sh
|
2021-02-18 22:18:26 +08:00
|
|
|
|
2021-05-23 14:32:27 +08:00
|
|
|
#
|
|
|
|
# Script to autostart programs.
|
|
|
|
#
|
|
|
|
|
2022-01-07 12:58:51 +08:00
|
|
|
setlayout=$HOME/.config/wm_scripts/setlayout.sh
|
2021-02-18 22:18:26 +08:00
|
|
|
function run()
|
|
|
|
{
|
|
|
|
if ! pgrep -f $1; then
|
2021-05-23 14:32:27 +08:00
|
|
|
$1 $2&
|
2021-02-18 22:18:26 +08:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2021-12-28 21:39:15 +08:00
|
|
|
if [[ $(pgrep dwm) ]] ; then
|
|
|
|
run slstatus
|
|
|
|
run firefox
|
|
|
|
run discord
|
|
|
|
run alacritty "--working-directory $HOME/"
|
2022-01-16 18:10:04 +08:00
|
|
|
run slstatus
|
2021-12-28 21:39:15 +08:00
|
|
|
fi
|
|
|
|
run feh "--bg-fill $HOME/wallpaper/wallpaper"
|
2021-10-06 00:56:12 +08:00
|
|
|
run picom
|
2021-11-17 09:08:20 +08:00
|
|
|
run dunst
|
2022-01-07 12:58:51 +08:00
|
|
|
[ -f "$setlayout" ] && $setlayout
|