From 6b8b024541818e69f4d89e2ddceaceba8494d32d Mon Sep 17 00:00:00 2001 From: julian Date: Sat, 19 Dec 2020 09:02:05 +0100 Subject: [PATCH] Fixed focusing problem at startup --- i3/config | 18 ++++++++++++------ i3/workspace-chat.json | 6 +++--- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/i3/config b/i3/config index cdf1a3c..4aef585 100644 --- a/i3/config +++ b/i3/config @@ -240,6 +240,7 @@ bindsym $mod+Ctrl+Right move workspace to output right bindsym $mod+Ctrl+Left move workspace to output right bindsym $mod+c exec xfce4-terminal -e qalc +bindsym $mod+p exec xwacomcalibrate workspace_auto_back_and_forth yes @@ -251,12 +252,17 @@ assign [class="firefox" title="Mozilla Firefox$"] workspace $ws1 assign [class="TelegramDesktop"] workspace $ws9 assign [class="Signal"] workspace $ws9 assign [class="Rocket.Chat"] workspace $ws9 +assign [class="Element"] workspace $ws9 assign [class="Thunderbird"] workspace $ws10 assign [class="zoom"] workspace $ws5 for_window [class="firefox"] focus -for_window [class="TelegramDesktop"] focus -for_window [class="Thunderbird"] focus +#for_window [class="Thunderbird"] focus +for_window [class="TelegramDesktop"] no_focus +for_window [class="Rocket.Chat"] no_focus +for_window [class="Element"] no_focus + +#for_window [class="Thunderbird"] focus for_window [title="Manjaro Settings Manager"] floating enable for_window [class="Pamac-manager"] floating enable @@ -269,9 +275,9 @@ exec --no-startup-id "i3-msg 'workspace 9: Chat; append_layout ~/.config/i3/work exec firefox exec thunderbird -exec chat.rocket.RocketChat -exec signal-desktop -exec telegram-desktop +exec chat.rocket.RocketChat no_focus +exec element-desktop no_focus +exec telegram-desktop no_focus exec --no-startup-id nm-applet exec --no-startup-id xfce4-power-manager @@ -287,5 +293,5 @@ exec --no-startup-id start-pulseaudio-x11 # Default workspaces at startup (no need because autostart applications get always focused) #exec --no-startup-id i3-msg workspace $ws1 -#exec --no-startup-id i3-msg workspace $ws1 +exec --no-startup-id i3-msg workspace $ws10 diff --git a/i3/workspace-chat.json b/i3/workspace-chat.json index 000f623..ad001fc 100644 --- a/i3/workspace-chat.json +++ b/i3/workspace-chat.json @@ -37,12 +37,12 @@ "x": 2242, "y": 46 }, - "name": "Signal", + "name": "Element", "percent": 0.333333333333333, "swallows": [ { - "class": "^Signal$", - "instance": "^signal$" + "class": "^Element$", + "instance": "^element$" } ], "type": "con"