Move workspace startup to its own script

The startup from within the sway autostart script that I had failed to
keep things on the correct workspaces and started things out of order.
This moves that to a bash script that calls everything with i3-toolwait
(https://gitlab.com/wef/dotfiles/-/blob/master/bin/i3-toolwait) to
attempt to control that better.
This commit is contained in:
Alex Kelly 2024-12-18 20:52:04 -05:00
parent 0a0ec0242b
commit e11c55c8f6
3 changed files with 198 additions and 31 deletions

View file

@ -7,49 +7,21 @@ exec /usr/bin/swaync
exec export YDOTOOL_SOCKET=/tmp/.ydotool_socket
exec ydotoold
#password keyring unlock
##password keyring unlock
#exec --no-startup-id /home/kellya/projects/public/gnome-keyring-yubikey-unlock/unlock_keyrings.sh /home/kellya/gnome-secret
# start nm-applet for network tray icon
exec nm-applet
# Set screen lock
#exec xset s 300 5
#exec xss-lock -n /usr/libexec/xsecurelock/dimmer -l -- xsecurelock
#exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -c 04090e --nofork
# use gnome settings to set gnome things to dark mode by default
exec /usr/libexec/gsd-xsettings
workspace $ws6
exec /usr/bin/thunderbird
exec /home/kellya/bin/logseq
# Start spotify from the stupid flatpak
workspace $ws5
exec "/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=spotify --file-forwarding com.spotify.Client"
workspace $ws3
exec kitty
exec /home/kellya/.config/sway/scripts/i3-toolwait --nocheck --waitfor 1password 1password
workspace $ws2
exec "flatpak run com.slack.Slack"
exec "/opt/teams-for-linux/teams-for-linux --optInTeamsV2 true"
# Always need firefox, so let's just start it
workspace $ws1
exec firefox
#exec "swaymsg workspace $ws1; /home/kellya/.config/sway/scripts/i3-toolwait --nocheck --waitfor firefox firefox"
# Force order and screens for app startup
exec /home/kellya/.config/sway/scripts/workspaces.sh
# start the auto run .desktop files
exec dex-autostart --autostart --environment sway
# Start redshift, becuase I like not being blinded at night
#exec --no-startup-id redshift
# Switch to the terminal/email workspace by default
workspace $ws3
exec /home/kellya/bin/bg_rotate_sway.sh
exec ~/.local/bin/solaar -w hide -b symbolic
exec swayosd-server