From cf0e3b8941d461ce4658e5e10f95168f9ec8483f Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Sat, 1 Jun 2024 12:16:49 +0400 Subject: [PATCH] modify startup apps strategy --- i3/.config/i3/config | 2 +- i3/.config/i3/startup_apps.sh | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 i3/.config/i3/startup_apps.sh diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 0d64d29..6cdc301 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -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 diff --git a/i3/.config/i3/startup_apps.sh b/i3/.config/i3/startup_apps.sh new file mode 100755 index 0000000..0a948e0 --- /dev/null +++ b/i3/.config/i3/startup_apps.sh @@ -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' \ No newline at end of file