Files
dotfiles/.config/i3/workspace.conf
2025-09-27 15:57:35 +02:00

59 lines
1.8 KiB
Plaintext

# Define names for default workspaces for which we configure key bindings later on
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# switch to workspace
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
# move focused container to worksapce
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
# Make DP-0 primary monitor
exec --no-startup-id xrandr --output "DP-0" --primary
# bind workspace 1 and 3 to primary monitor (DP-0)
workspace $ws1 output DP-0
workspace $ws3 output DP-0
# bind worksapce 2 and 4 to secondary monitor (HDMI-0)
workspace $ws2 output HDMI-0
workspace $ws4 output HDMI-0
# assign kitty, emacs to ws1
assign [class="kitty"] $ws1
assign [class="emacs"] $ws1
# assign firefox to ws2
assign [class="firefox"] $ws2
# assign spotify to ws3
assign [class="spotify"] $ws3
# assign discord to ws4
assign [class="discord"] $ws4