modify startup apps strategy

This commit is contained in:
Laurent Le Houerou 2024-06-01 12:16:49 +04:00
parent 8d0b34e3b3
commit cf0e3b8941
2 changed files with 16 additions and 1 deletions

View File

@ -186,6 +186,6 @@ mode "resize" {
bindsym $mod+r mode "resize"
exec --no-startup-id i3-msg 'workspace 4; exec firefox; sleep 1; workspace 9; exec thunderbird; sleep 1; workspace 8; exec jellyfinmediaplayer'
exec --no-startup-id ~/.config/i3/startup_apps.sh

15
i3/.config/i3/startup_apps.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# Start Firefox and move it to workspace 4
i3-msg 'workspace 4; exec firefox'
# Give a delay for Firefox to start and initialize
sleep 2
# Start Thunderbird and move it to workspace 9
i3-msg 'workspace 9; exec thunderbird'
# Give a delay for Thunderbird to start and initialize
sleep 2
# Start Jellyfin Media Player and move it to workspace 8
i3-msg 'workspace 8; exec jellyfinmediaplayer'