Skip to content

Instantly share code, notes, and snippets.

@fd0
Created October 12, 2013 15:54
Show Gist options
  • Select an option

  • Save fd0/6951577 to your computer and use it in GitHub Desktop.

Select an option

Save fd0/6951577 to your computer and use it in GitHub Desktop.

Revisions

  1. fd0 created this gist Oct 12, 2013.
    39 changes: 39 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@
    # assign workspaces to screens
    workspace 1 output DVI-I-1
    workspace 2 output DVI-I-1
    workspace 3 output DVI-I-1
    workspace 4 output DVI-I-1
    workspace 5 output DVI-I-1
    workspace 6 output HDMI-0
    workspace 7 output HDMI-0
    workspace 8 output HDMI-0
    workspace 9 output HDMI-0
    workspace 10 output HDMI-0

    # switch to workspace
    bindsym $mod+1 workspace 1
    bindsym $mod+2 workspace 2
    bindsym $mod+3 workspace 3
    bindsym $mod+4 workspace 4
    bindsym $mod+5 workspace 5
    bindsym $mod+6 workspace 6
    bindsym $mod+7 workspace 7
    bindsym $mod+8 workspace 8
    bindsym $mod+9 workspace 9
    bindsym $mod+0 workspace 10

    # switch to output
    bindsym $mod+shift+w focus output DVI-I-1
    bindsym $mod+shift+c focus output HDMI-0

    # move focused container to workspace
    bindsym $mod+Shift+exclam move container to workspace 1
    bindsym $mod+Shift+at move container to workspace 2
    bindsym $mod+Shift+numbersign move container to workspace 3
    bindsym $mod+Shift+dollar move container to workspace 4
    bindsym $mod+Shift+percent move container to workspace 5
    bindsym $mod+Shift+asciicircum move container to workspace 6
    bindsym $mod+Shift+ampersand move container to workspace 7
    bindsym $mod+Shift+asterisk move container to workspace 8
    bindsym $mod+Shift+parenleft move container to workspace 9
    bindsym $mod+Shift+parenright move container to workspace 10