Opening program in scratchpad without focus
I wish to open vlc as floating in scratchpad, but not focusing it :
for_window [class="vlc"] floating enable; [class="vlc"] move position 300px 200px; [class="vlc"] move scratchpad; [class="vlc"] scratchpad show; focus tiling;
focus tiling should focus back to tiling windows. Instad vlc remains focused when opened. Effect is the same with or without "focus tiling". Any ideas ?
for_window [class="(?i)^vlc$"] floating enable, move position 300px 200px, move scratchpad, scratchpad show, exec sleep 1 && i3-msg focus tiling
Works great, thanks ! So some pause is needed for vlc to "fully open", i guess ... Solved !