dotfiles/.config/scripts/wm/autostart.sh

26 lines
383 B
Bash
Raw Normal View History

#!/bin/sh
2021-02-18 22:18:26 +08:00
2021-05-23 14:32:27 +08:00
#
# Script to autostart programs.
#
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
}
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
fi
run feh "--bg-fill $HOME/wallpaper/wallpaper"
2021-10-06 00:56:12 +08:00
run picom
run dunst
[ -f "$setlayout" ] && $setlayout