[misc] cleanup
This commit is contained in:
parent
d79fdefd7f
commit
fcb9d8f174
|
@ -1,35 +1,30 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# start compositor daemon
|
# start compositor daemon
|
||||||
$HOME/.config/picom/launch.sh
|
"$HOME/.config/picom/launch.sh"
|
||||||
|
|
||||||
# start desktop notification daemon
|
# start desktop notification daemon
|
||||||
$HOME/.config/dunst/launch.sh
|
"$HOME/.config/dunst/launch.sh"
|
||||||
|
|
||||||
# start dwmbar daemon
|
# start dwmbar daemon
|
||||||
$HOME/.config/dwm/statusbar
|
"$HOME/.config/dwm/statusbar"
|
||||||
|
|
||||||
# disable screen saver / turn off monitor if inactived for 300 secs
|
# disable screen saver / turn off monitor if inactived for 300 secs
|
||||||
xset s off
|
xset s off
|
||||||
xset dpms 300 300 300
|
xset dpms 300 300 300
|
||||||
killall xss-lock
|
killall xss-lock
|
||||||
xss-lock $(which slock) &
|
xss-lock "$(command -v slock)" &
|
||||||
|
|
||||||
# start network applet
|
launchapp () {
|
||||||
pgrep -x nm-applet || nm-applet &
|
! command -v "$1" >/dev/null && return # command doesn't exist
|
||||||
|
pgrep -u "$USER" -x "$1" && return # if launched by current user
|
||||||
|
"$@" &
|
||||||
|
}
|
||||||
|
|
||||||
# start bluetooth applet
|
launchapp nm-applet
|
||||||
which blueman-applet && ! pgrep -x blueman-applet || blueman-applet &
|
launchapp blueman-applet
|
||||||
|
launchapp flameshot
|
||||||
|
launchapp ibus-daemon -drx
|
||||||
|
launchapp nextcloud --background
|
||||||
|
|
||||||
# start screenshot tool
|
|
||||||
which flameshot && ! pgrep -x flameshot && flameshot &
|
|
||||||
|
|
||||||
# start input method
|
|
||||||
pgrep -x ibus-daemon || ibus-daemon -drx &
|
|
||||||
|
|
||||||
# restart wallpaper
|
|
||||||
nitrogen --restore
|
nitrogen --restore
|
||||||
|
|
||||||
# start nextcloud
|
|
||||||
pgrep -x nextcloud || nextcloud &
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user