31 lines
660 B
Bash
Executable File
31 lines
660 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# start compositor daemon
|
|
"$HOME/.config/picom/launch.sh"
|
|
|
|
# start desktop notification daemon
|
|
"$HOME/.config/dunst/launch.sh"
|
|
|
|
# start dwmbar daemon
|
|
"$HOME/.config/dwm/statusbar"
|
|
|
|
# disable screen saver / turn off monitor if inactived for 300 secs
|
|
xset s off
|
|
xset dpms 300 300 300
|
|
killall xss-lock
|
|
xss-lock "$(command -v slock)" &
|
|
|
|
launchapp () {
|
|
! command -v "$1" >/dev/null && return # command doesn't exist
|
|
pgrep -u "$USER" -x "$1" && return # if launched by current user
|
|
"$@" &
|
|
}
|
|
|
|
launchapp nm-applet
|
|
launchapp blueman-applet
|
|
launchapp flameshot
|
|
launchapp ibus-daemon -drx
|
|
launchapp nextcloud --background
|
|
|
|
nitrogen --restore
|