.dotfiles/sway/autostart

90 lines
2.9 KiB
Plaintext
Raw Normal View History

2022-04-19 04:45:01 +00:00
# vim: ft=sh
2023-06-30 21:24:12 +00:00
2022-11-21 23:45:57 +00:00
#TODO: Convert to systemd services, where reasonable
2022-04-19 04:45:01 +00:00
2023-08-11 04:18:20 +00:00
################################################################################
# Themes
################################################################################
# Gtk themes
exec gsettings set org.gnome.desktop.interface gtk-theme 'Gruvbox' &
exec gsettings set org.gnome.desktop.interface icon-theme 'Gruvbox' &
# X11 Cursor theme
exec gsettings set org.gnome.desktop.interface cursor-theme 'FlatbedCursors-Orange' &
2022-04-19 04:45:01 +00:00
################################################################################
# Background utilities
################################################################################
2023-07-06 16:27:35 +00:00
# Start ssh-agent
exec ${HOME}/scripts/ssh-agent.sh &
2024-07-23 03:02:19 +00:00
exec SSH_ASKPASS_REQUIRE=force SSH_ASKPASS=${HOME}/.local/bin/ksshaskpass ssh-add &
2023-07-06 16:27:35 +00:00
2022-04-19 04:45:01 +00:00
# Automatically restore last used output configuration
# TODO: Need to add fail-safe to script in case the outputs are unavailable
exec ${HOME}/scripts/sway/restore_displays.sh &
2022-04-19 04:45:01 +00:00
# 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 &
2022-04-19 04:45:01 +00:00
2022-12-27 22:09:29 +00:00
# Window transparency
exec systemctl --user restart sway-transparency.service &
2022-12-29 22:49:05 +00:00
# Idle daemon
exec ${HOME}/scripts/sway/idle.sh daemon &
#exec systemctl --user restart swayidle.service &
2022-12-29 22:49:05 +00:00
2022-12-27 22:09:29 +00:00
# Wallpapers
exec systemctl --user restart wallpapers.service &
2022-04-19 04:45:01 +00:00
# Notification daemon
2024-10-02 18:57:17 +00:00
exec swaync -c ${HOME}/.dotfiles/config.json -s .dotfiles/swaync/style.css &
#exec mako --config=${HOME}/.dotfiles/mako.conf &
2022-04-19 04:45:01 +00:00
# Tray icons
# TODO: Orage is dead. Find a new calendaring solution
exec nm-applet &
2022-09-23 21:40:04 +00:00
exec squeekboard-restyled &
2022-04-19 04:45:01 +00:00
exec blueman-applet &
exec nextcloud &
exec pasystray &
################################################################################
# Applications by workspace
################################################################################
# 0:cal
# TODO: as above, need new calendaring solution.
# 1:chat
2022-07-21 05:20:06 +00:00
# TODO: Figure out Zith; normal weechat is a placeholder
2023-01-17 17:52:54 +00:00
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 &
2022-04-19 04:45:01 +00:00
# 2:mail - Should also prompt for keyring
2022-06-06 17:54:56 +00:00
exec flatpak run org.mozilla.Thunderbird &
2022-04-19 04:45:01 +00:00
# 3:chrm
# Don't launch chromium because it hogs resources
# exec chromium &
# 5:call
# Currently preferring mobile
#exec linphone &
# 7:FF Dev edition
2022-06-06 17:54:56 +00:00
exec flatpak run org.mozilla.firefox &
2022-07-21 03:38:03 +00:00
# 9:Git (gittyup)
2022-07-21 05:20:31 +00:00
exec flatpak run com.github.Murmele.Gittyup &
# 0:Hud
exec flatpak run com.github.ungoogled_software.ungoogled_chromium --app="https://papillon.john.me.tz" --socket=wayland --ozone-platform=wayland --enable-reatures=UseOzonePlatform &
2023-01-17 17:52:54 +00:00
# Assign workspaces to outputs
exec ${HOME}/scripts/sway/arrange.pl &
2023-06-30 21:24:12 +00:00
exec swaymsg workspace 1 &