.dotfiles/sway/autostart

80 lines
2.4 KiB
Bash

# vim: ft=sh
#TODO: Convert to systemd services, where reasonable
################################################################################
# Background utilities
################################################################################
# Start ssh-agent
exec "${HOME}/scripts/ssh-agent.sh" &
# Automatically restore last used output configuration
# TODO: Need to add fail-safe to script in case the outputs are unavailable
exec "${HOME}/scripts/distrobox/toolbox/displays.sh" &
# Enable automatic color temperature change
exec "${HOME}/scripts/distrobox/debian/gammastep.pl" &
exec "${HOME}/.local/bin/wl-gammactl" -c -1.000 -b 2.000 -g 0.500 -m DP-1 &
# Window transparency
exec systemctl --user restart sway-transparency.service &
# Idle daemon
exec systemctl --user restart swayidle.service &
# Wallpapers
exec systemctl --user restart wallpapers.service &
# Notification daemon
exec mako &
# Tray icons
# TODO: Orage is dead. Find a new calendaring solution
exec squeekboard-restyled &
exec blueman-applet &
exec nextcloud &
exec pasystray &
################################################################################
# Applications by workspace
################################################################################
# 0:cal
# TODO: as above, need new calendaring solution.
# 1:chat
# TODO: Figure out Zith; normal weechat is a placeholder
exec xterm -e /bin/bash -c "ssh -i ~/.ssh/no_pass jpm@john.me.tz -t 'screen -x weechat'" &
exec flatpak run com.mattermost.Desktop --socket=wayland --ozone-platform=wayland --enable-reatures=UseOzonePlatform &
exec flatpak run chat.rocket.RocketChat --socket=wayland --ozone-platform=wayland --enable-reatures=UseOzonePlatform &
# 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 &
# 9:Git (gittyup)
exec flatpak run com.github.Murmele.Gittyup &
# 0:Hud
exec flatpak run com.github.Eloston.UngoogledChromium --app="https://papillon.john.me.tz" --socket=wayland --ozone-platform=wayland --enable-reatures=UseOzonePlatform &
# Assign workspaces to outputs
<<<<<<< HEAD
exec $HOME/scripts/sway/arrange.pl &
exec swaymsg workspace 1 &
=======
exec "${HOME}/scripts/sway/arrange.pl" &
>>>>>>> master