2020-10-30 17:12:53 +00:00
|
|
|
#!/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
|
|
|
|
2020-10-12 15:47:47 +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
|
2021-08-31 05:56:09 +00:00
|
|
|
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
|
|
|
|
2021-09-26 03:16:28 +00:00
|
|
|
if ! holiday today; then
|
|
|
|
launchapp thunderbird
|
|
|
|
launchapp chromium
|
2021-10-11 01:04:13 +00:00
|
|
|
#launchapp st -c workterm tmux
|
2021-09-26 03:16:28 +00:00
|
|
|
fi
|
|
|
|
|
2020-04-27 06:47:36 +00:00
|
|
|
nitrogen --restore
|