dotfiles/suckless/config/dwm/autostart

62 lines
1.4 KiB
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-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
$HOME/.config/dwm/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
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
#pgrep -x keepassxc || keepassxc &
2020-04-27 06:47:36 +00:00
# start a terminal with tmux
#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
#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