.dotfiles/sway/autostart

58 lines
1.6 KiB
Bash

# vim: ft=sh
################################################################################
# Background utilities
################################################################################
# Custom SwayIdle script
#exec swayidle -w timeout 500 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' &
exec ${HOME}/scripts/sway/idle.sh start &
# SSH Add - Should be started by profile instead
# exec eval `ssh-agent -a ${SSH_AUTH_SOCK}`
exec ssh-add &
# Automatically restore last used output configuration
# TODO: Need to add fail-safe to script in case the outputs are unavailable
exec $HOME/scripts/sway/displays.pl &
# Enable automatic color temperature change
exec ${HOME}/scripts/sway/gammastep.pl &
# Notification daemon
exec mako &
# Tray icons
# TODO: Orage is dead. Find a new calendaring solution
#exec orage &
exec nm-applet &
exec blueman-applet &
exec nextcloud &
exec pasystray &
################################################################################
# Applications by workspace
################################################################################
# 0:cal
# TODO: as above, need new calendaring solution.
# 1:chat
# TODO: Set up ZNC then use a client that can actually generate notifications
exec xterm -e /bin/bash -c "ssh -i ~/.ssh/no_pass jpm@john.me.tz -t 'screen -x irssi'" &
exec flatpak run com.mattermost.Desktop &
# 2:mail - Should also prompt for keyring
exec flatpak run org.mozilla.Thunderbird &
# 3:chrm
# Don't launch chromium because it hogs resources
# exec chromium &
# 5:call
# Currently preferring mobile
#exec linphone &
# 7:FF Dev edition
exec flatpak run org.mozilla.firefox &