#!/bin/sh

wobd

pgrep swaybg || swaybg -i ~/.config/kwm/wallpaper.jpg &
pgrep dunst || dunst &

foot --server & # TODO: figure out systemd service
emacs --daemon &

# swayidle
pgrep swayidle || swayidle -w \
    timeout 300 '$HOME/.config/kwm/timeout.sh' \
    before-sleep 'swaylock -f -c 000000' &

# gnome-keyring (needed for nextcloud to remember login)
dbus-update-activation-environment --all
gnome-keyring-daemon --start --components=secrets

nextcloud &
