dotfiles/sway/config.d/autostart.config

49 lines
1.8 KiB
Plaintext

### Start Nextcloud.
exec --no-startup-id nextcloud 2>&1 >/tmp/nextcloud.log
### ProtonMail Bridge
exec --no-startup-id protonmail-bridge 2>&1 >/tmp/mail.log
### Make things a little easier easier on the eyes.
exec --no-startup-id gammastep 2>&1 >/tmp/gammastep.log
### Clipboard manager
exec --no-startup-id $scripts/clipboard daemon 2>&1 >/tmp/clipboardmanager.log
### Notifications
# https://github.com/emersion/mako
exec --no-startup-id mako 2>&1 >/tmp/mako.log
### Pushover alerts
# https://github.com/jangxx/SchubsiGo
exec --no-startup-id SchubsiGo 2>&1 >/tmp/SchubsiGo.log
### ydotool - imagine not having to copy stuff.
# https://github.com/ReimuNotMoe/ydotool
exec --no-startup-id ydotoold 2>&1 >/tmp/ydotoold.log
### Autotiling - because i3/sways spiting is weird.
# https://github.com/nwg-piotr/autotiling
exec --no-startup-id autotiling
### Idle configuration
exec swayidle -w \
timeout 280 notify-send "鈴 sleeping in 20 seconds" -t 5000 -c 'sleep' \
timeout 285 'light -O && let "a = $(light -G) / 2" && light -S $a '\
resume 'light -I' \
timeout 300 'swaylock --screenshots --clock --indicator --indicator-radius 200 --indicator-thickness 5 --effect-greyscale --effect-blur 7x5 --grace 2 --fade-in 1' \
timeout 280 notify-send "鈴 sleeping in 20 seconds" -t 5000 -c 'sleep' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock --screenshots --clock --indicator --indicator-radius 200 --indicator-thickness 5 --effect-greyscale --effect-blur 7x5 --grace 2 --fade-in 1'
# wob configuration
exec_always {
killall -q wob || true
mkfifo /tmp/wobpipe
tail -f /tmp/wobpipe | $scripts/sanitize_wob | wob
}
# vim: ft=cfg
# -*- mode: conf-space -*-