dotfiles/.config/wm_scripts/autostart.sh

20 lines
302 B
Bash
Raw Normal View History

2021-02-18 22:18:26 +08:00
#!/bin/bash
2021-05-23 14:32:27 +08:00
#
# Script to autostart programs.
#
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
}
[[ $(pgrep dwm) ]] && run slstatus
2021-02-18 22:18:26 +08:00
run firefox
run discord
2021-05-23 14:32:27 +08:00
run alacritty "--working-directory $HOME/"
2021-07-27 19:23:52 +08:00
run feh "--bg-fill $HOME/wallpaper/ff_campfire.jpg"
[ -f "setlayout.sh" ] && ./setlayout.sh