# EndeavourOS sway workspace handling
# will get sourced into $HOME/.config/sway/config

# workspace layout:

# default tiling mode:
workspace_layout default

# stacking layout:
# Each window will be fullscreen and tabbed top to bottom.
#workspace_layout stacking

# tabbed layout:
# Each new window will open fullscreen as a tab (left to right)
#workspace_layout tabbed


# workspace naming
set $ws1 
set $ws2 
set $ws3 
set $ws4 
set $ws5 
set $ws6 
set $ws7 
set $ws8 
set $ws9 
set $ws10 

#bind program to workspace
# type: `app_id`
# in a terminal and focus a window with your mouse to get the id of it
assign [app_id="thunar"] $ws2
assign [app_id="xed"] $ws5
#assign [app_id="org.telegram.desktop"] $ws10
assign [app_id="(?i)firefox"] $ws3
#assign [app_id="thunderbird"] $ws4
#assign [app_id="libreoffice-writer"] $ws5
#assign [app_id="(?i)libreoffice"] $ws5
#assign [app_id="(?i)libreoffice.*"] $ws5
#assign [app_id="libreoffice"] $ws5
#assign [app_id="gimp"] $ws7
#assign [app_id="inkscape"] $ws7
# window "title" works too:
#assign [title="Oracle VirtualBox Manager"] $ws6

# Assume you are on workspace "1: www" and switch to "2: IM" using mod+2
# because somebody sent you a message. You don’t need to remember
# where you came from now, you can just press $mod+2 again to switch back to "1: www".
set $workspace_auto_back_and_forth yes