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

26 lines
383 B
Bash
Raw Permalink 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.
#
2022-06-26 07:50:56 +08:00
setlayout=$HOME/.config/scripts/wm/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