S
S
Sergey Burduzha2019-07-03 11:20:26
linux
Sergey Burduzha, 2019-07-03 11:20:26

How can an application get focus on startup in the i3 window manager?

Good afternoon.
I registered in the settings that applications run on certain desktops.

assign [class="smplayer"] $workspace1
assign [class="Code"] $workspace2
assign [class="Cherrytree"] $workspace4
assign [class="qbittorrent"] $workspace5

And set hotkeys
bindsym $mod+g exec google-chrome
bindsym $mod+Shift+v exec code
bindsym $mod+Shift+s exec smplayer

Only if I start smplayer and at the same time I am on desktop 4, then the player starts, but the focus does not move to the desktop where it is running.
I registered the focus of windows
focus_on_window_activation urgent
, but it seems to be the focus for the current desktop.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
brar, 2019-07-03
@serii81

assign [class="smplayer"] $workspace1
for_window [class="smplayer"] focus

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question