
#
# WM Stuff
#

#run at start
exec {
#  eww daemon
  autotiling-rs
  nm-applet
  blueman-applet
  copyq --start-server
  swayidle
  '/usr/lib/$(uname -m)-linux-gnu/libexec/kdeconnectd'
  '/usr/lib/$(uname -m)-linux-gnu/libexec/polkit-kde-authentication-agent-1'
  udiskie -at
  keepassxc ~/Documents/Server/Server_Admin_Keychain.kdbx ~/Nextcloud/Security/Passwords.kdbx
  'sleep 5;nextcloud --background'
  'sleep 5;aik_launcher rss_guard'
  'sleep 5;tokodon'
  'diskspace-check'
  poweralertd
}

# Run on reload
exec_always {
  'eww kill;killall eww;eww daemon'
#  'killall autotiling;autotiling -l 4'
}

# Run only at start
#exec $HOME/.config/sway/scripts/autostart_apps
#exec '/usr/libexec/xdg-desktop-portal-wlr -r'
#exc 'nm-applet'
#exec 'blueman-applet'
#exec 'copyq --start-server'
#exec 'swayidle'
#exec '/usr/lib/$(uname -m)-linux-gnu/libexec/kdeconnectd'
#exec '/usr/lib/$(uname -m)-linux-gnu/libexec/polkit-kde-authentication-agent-1'
#exec 'udiskie -at'
#exec 'keepassxc ~/Documents/Server/Server_Admin_Keychain.kdbx ~/Nextcloud/Security/Passwords.kdbx'
#exec 'sleep 5;gtk-launch syncthing-gtk'
#exec 'sleep 5;nextcloud --background'
#exec 'sleep 5;aik_launcher rss_guard'
#exec 'sleep 5;tokodon'
#exec 'sleep 5;protonmail-bridge -n'
#exec 'diskspace-check'

include $HOME/.config/sway/config.d/autostart.d/*
