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-04-27 06:47:36 +00:00
|
|
|
$HOME/.config/picom/launch.sh
|
|
|
|
|
2020-09-17 16:02:24 +00:00
|
|
|
# start desktop notification daemon
|
|
|
|
$HOME/.config/dunst/launch.sh
|
|
|
|
|
|
|
|
# start dwmbar daemon
|
2020-10-30 17:12:53 +00:00
|
|
|
$HOME/.config/dwm/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
|
2020-10-12 15:47:47 +00:00
|
|
|
xss-lock (which slock) &
|
2020-04-27 06:47:36 +00:00
|
|
|
|
|
|
|
# start network applet
|
|
|
|
pgrep -x nm-applet || nm-applet &
|
|
|
|
|
|
|
|
# start bluetooth applet
|
2020-09-17 16:02:24 +00:00
|
|
|
if which blueman-applet
|
|
|
|
pgrep -x blueman-applet || blueman-applet &
|
|
|
|
end
|
2020-04-27 06:47:36 +00:00
|
|
|
|
|
|
|
# start screenshot tool
|
2020-09-17 16:02:24 +00:00
|
|
|
if which flameshot
|
|
|
|
pgrep -x flameshot || flameshot &
|
|
|
|
end
|
2020-04-27 06:47:36 +00:00
|
|
|
|
|
|
|
# start input method
|
|
|
|
#pgrep -x fcitx || fcitx &
|
|
|
|
pgrep -x ibus-daemon || ibus-daemon -drx &
|
|
|
|
|
|
|
|
# restart wallpaper
|
|
|
|
nitrogen --restore
|
|
|
|
|
|
|
|
# start password manager
|
2020-09-21 03:38:47 +00:00
|
|
|
#pgrep -x keepassxc || keepassxc &
|
2020-04-27 06:47:36 +00:00
|
|
|
|
|
|
|
# start a terminal with tmux
|
2020-09-21 03:38:47 +00:00
|
|
|
#if not xdotool search --onlyvisible --class term && not xdotool search --onlyvisible --class Alacritty
|
|
|
|
#if tmux has-session -t 0
|
|
|
|
#st -c term -n autostart -e tmux a -t 0 &
|
|
|
|
##alacritty --class autostart,term -e tmux a -t 0 &
|
|
|
|
#else
|
|
|
|
#st -c term -n autostart -e tmux new -s 0 &
|
|
|
|
##alacritty --class autostart,term -e tmux new -s 0 &
|
|
|
|
#end
|
|
|
|
#end
|
2020-04-27 06:47:36 +00:00
|
|
|
|
|
|
|
# start nextcloud
|
2020-09-21 03:38:47 +00:00
|
|
|
#if which nextcloud
|
|
|
|
#if not pgrep -x nextcloud
|
|
|
|
#nextcloud &
|
|
|
|
#while not xdotool search --onlyvisible --name Nextcloud
|
|
|
|
#sleep 0.5
|
|
|
|
#end
|
|
|
|
#xdotool windowclose (xdotool search --onlyvisible --name Nextcloud)
|
|
|
|
#end
|
|
|
|
#end
|