dotfiles/.config/wm_scripts/autostart.sh

21 lines
308 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-10-02 15:51:57 +08:00
run feh "--bg-fill $HOME/wallpaper/Loveles.jpg"
run picom
[ -f "setlayout.sh" ] && ./setlayout.sh