Firefox Window automatically goes in 2nd workspace every time

in ~/.config/sway/config.d/application_defaults

comment out = put “#” infront or remove from file . or change “2” to number of workspace you want

# Assign workspaces
assign [app_id="firefox"] 2
for_window [app_id="firefox"] focus

assign [class="firefox"] 2
for_window [class="firefox"] focus

so it

# Assign workspaces
#assign [app_id="firefox"] 2
#for_window [app_id="firefox"] focus

#assign [class="firefox"] 2
#for_window [class="firefox"] focus

or replace firefox to application you want open on workspace 2

refresh sway to work if remember correct

    # Reload the configuration file
    bindsym $mod+Shift+c reload

EDit. :pray: Welcome to Endeavouros forum .

3 Likes