set $monitor0 HDMI-0
set $monitor1 HDMI-1

set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"

workspace $ws1 output $monitor0
workspace $ws2 output $monitor0
workspace $ws3 output $monitor0
workspace $ws4 output $monitor0
workspace $ws5 output $monitor1
workspace $ws6 output $monitor1
workspace $ws7 output $monitor1
workspace $ws8 output $monitor1

bindsym $mod+mod2+KP_1 workspace $ws1
bindsym $mod+mod2+KP_2 workspace $ws2
bindsym $mod+mod2+KP_3 workspace $ws3
bindsym $mod+mod2+KP_4 workspace $ws4
bindsym $mod+mod2+KP_5 workspace $ws5
bindsym $mod+mod2+KP_6 workspace $ws6
bindsym $mod+mod2+KP_7 workspace $ws7
bindsym $mod+mod2+KP_8 workspace $ws8

bindsym $mod+Control+mod2+KP_1 move container to workspace $ws1
bindsym $mod+Control+mod2+KP_2 move container to workspace $ws2
bindsym $mod+Control+mod2+KP_3 move container to workspace $ws3
bindsym $mod+Control+mod2+KP_4 move container to workspace $ws4
bindsym $mod+Control+mod2+KP_5 move container to workspace $ws5
bindsym $mod+Control+mod2+KP_6 move container to workspace $ws6
bindsym $mod+Control+mod2+KP_7 move container to workspace $ws7
bindsym $mod+Control+mod2+KP_8 move container to workspace $ws8

exec --no-startup-id xrandr --output HDMI-1 --primary --right-of HDMI-0
exec_always --no-startup-id "killall polybar ; polybar HDMI-0 & polybar HDMI-1"
