dotfiles/gui/dwm/autostart

34 lines
666 B
Plaintext
Raw Normal View History

#!/bin/sh
2020-04-27 06:47:36 +00:00
2020-09-17 16:02:24 +00:00
# start compositor daemon
2020-11-08 16:26:14 +00:00
picomdaemon
2020-04-27 06:47:36 +00:00
2020-09-17 16:02:24 +00:00
# start dwmbar daemon
2020-11-08 16:26:14 +00:00
statusbar
2020-04-27 06:47:36 +00:00
# disable screen saver / turn off monitor if inactived for 300 secs
xset s off
xset dpms 300 300 300
2020-04-27 06:47:36 +00:00
killall xss-lock
xss-lock "$(command -v lock.sh)" &
2020-04-27 06:47:36 +00:00
2020-11-03 03:53:44 +00:00
launchapp () {
! command -v "$1" >/dev/null && return # command doesn't exist
pgrep -u "$USER" -x "$1" && return # if launched by current user
"$@" &
}
2020-04-27 06:47:36 +00:00
2020-11-03 03:53:44 +00:00
launchapp nm-applet
launchapp blueman-applet
launchapp flameshot
launchapp ibus-daemon -drx
launchapp nextcloud --background
2020-04-27 06:47:36 +00:00
if ! holiday today; then
launchapp thunderbird
launchapp chromium
2021-10-11 01:04:13 +00:00
#launchapp st -c workterm tmux
fi
2020-04-27 06:47:36 +00:00
nitrogen --restore