dotfiles/suckless/config/dwm/autostart

61 lines
1.3 KiB
Plaintext
Raw Normal View History

2020-04-27 06:47:36 +00:00
#!/usr/bin/env fish
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-04-27 06:47:36 +00:00
$HOME/.config/dwm/dwmbar
# setup screen locker
xset s 300
2020-04-27 06:47:36 +00:00
killall xss-lock
xss-lock --ignore-sleep (which slock) &
# 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