dotfiles/suckless/config/dwm/autostart

31 lines
600 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 desktop notification daemon
2020-11-08 16:26:14 +00:00
dunstdaemon
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
2020-11-03 03:53:44 +00:00
xss-lock "$(command -v slock)" &
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
nitrogen --restore