i3/config
author Fabien Ninoles <fabien@tzone.org>
Sun, 13 Sep 2015 22:53:18 -0400
changeset 15 73df43769340
parent 0 df7496e40bee
permissions -rw-r--r--
Update keybinding.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
     1
# This file has been auto-generated by i3-config-wizard(1).
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
     2
# It will not be overwritten, so edit it as you like.
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
     3
#
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
     4
# Should you change your keyboard layout somewhen, delete
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
     5
# this file and re-run i3-config-wizard(1).
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
     6
#
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
     7
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
     8
# i3 config file (v4)
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
     9
#
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    10
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    11
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    12
set $mod Mod4
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    13
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    14
# font for window titles. ISO 10646 = Unicode
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    15
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    16
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    17
# Use Mouse+$mod to drag floating windows to their wanted position
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    18
floating_modifier $mod
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    19
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    20
# kill focused window
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    21
bindsym $mod+Shift+Q kill
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    22
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    23
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    24
# change focus
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    25
bindsym $mod+t focus left
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    26
bindsym $mod+s focus down
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    27
bindsym $mod+r focus up
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    28
bindsym $mod+n focus right
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    29
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    30
# alternatively, you can use the cursor keys:
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    31
bindsym $mod+Left focus left
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    32
bindsym $mod+Down focus down
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    33
bindsym $mod+Up focus up
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    34
bindsym $mod+Right focus right
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    35
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    36
# move focused window
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    37
bindsym $mod+Shift+T move left
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    38
bindsym $mod+Shift+S move down
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    39
bindsym $mod+Shift+R move up
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    40
bindsym $mod+Shift+N move right
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    41
bindsym $mod+Shift+Left move left
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    42
bindsym $mod+Shift+Down move down
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    43
bindsym $mod+Shift+Up move up
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    44
bindsym $mod+Shift+Right move right
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    45
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    46
# split in horizontal orientation
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    47
bindsym $mod+h split h
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    48
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    49
# split in vertical orientation
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    50
bindsym $mod+v split v
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    51
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    52
# enter fullscreen mode for the focused container
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    53
bindsym $mod+e fullscreen
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    54
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    55
# change container layout (stacked, tabbed, default)
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    56
bindsym $mod+u layout stacking
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    57
bindsym $mod+eacute layout tabbed
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    58
bindsym $mod+p layout default
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    59
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    60
# toggle tiling / floating
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    61
bindsym $mod+Shift+nobreakspace floating toggle
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    62
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    63
# change focus between tiling / floating windows
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    64
bindsym $mod+space focus mode_toggle
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    65
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    66
# focus the parent container
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    67
bindsym $mod+a focus parent
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    68
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    69
# focus the child container
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    70
#bindcode $mod+d focus child
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    71
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    72
# switch to workspace
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    73
bindsym $mod+quotedbl workspace 1
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    74
bindsym $mod+guillemotleft workspace 2
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    75
bindsym $mod+guillemotright workspace 3
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    76
bindsym $mod+parenleft workspace 4
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    77
bindsym $mod+parenright workspace 5
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    78
bindsym $mod+at workspace 6
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    79
bindsym $mod+plus workspace 7
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    80
bindsym $mod+minus workspace 8
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    81
bindsym $mod+slash workspace 9
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    82
bindsym $mod+asterisk workspace 10
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    83
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    84
# move focused container to workspace
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    85
bindsym $mod+Shift+1 move workspace 1
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    86
bindsym $mod+Shift+2 move workspace 2
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    87
bindsym $mod+Shift+3 move workspace 3
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    88
bindsym $mod+Shift+4 move workspace 4
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    89
bindsym $mod+Shift+5 move workspace 5
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    90
bindsym $mod+Shift+6 move workspace 6
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    91
bindsym $mod+Shift+7 move workspace 7
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    92
bindsym $mod+Shift+8 move workspace 8
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    93
bindsym $mod+Shift+9 move workspace 9
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    94
bindsym $mod+Shift+0 move workspace 10
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    95
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    96
# reload the configuration file
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    97
bindsym $mod+Shift+X reload
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    98
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
    99
bindsym $mod+Shift+O restart
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   100
# exit i3 (logs you out of your X session)
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   101
bindsym $mod+Shift+P exit
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   102
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   103
# resize window (you can also use the mouse for that)
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   104
mode "resize" {
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   105
        # These bindings trigger as soon as you enter the resize mode
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   106
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   107
        # They resize the border in the direction you pressed, e.g.
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   108
        # when pressing left, the window is resized so that it has
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   109
        # more space on its left
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   110
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   111
bindsym t resize shrink left 10 px or 10 ppt
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   112
bindsym Shift+T resize grow   left 10 px or 10 ppt
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   113
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   114
bindsym s resize shrink down 10 px or 10 ppt
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   115
bindsym Shift+S resize grow   down 10 px or 10 ppt
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   116
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   117
bindsym r resize shrink up 10 px or 10 ppt
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   118
bindsym Shift+R resize grow   up 10 px or 10 ppt
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   119
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   120
bindsym n resize shrink right 10 px or 10 ppt
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   121
bindsym Shift+N resize grow   right 10 px or 10 ppt
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   122
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   123
        # same bindings, but for the arrow keys
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   124
bindsym Left resize shrink left 10 px or 10 ppt
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   125
bindsym Shift+Left resize grow   left 10 px or 10 ppt
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   126
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   127
bindsym Down resize shrink down 10 px or 10 ppt
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   128
bindsym Shift+Down resize grow   down 10 px or 10 ppt
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   129
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   130
bindsym Up resize shrink up 10 px or 10 ppt
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   131
bindsym Shift+Up resize grow   up 10 px or 10 ppt
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   132
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   133
bindsym Right resize shrink right 10 px or 10 ppt
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   134
bindsym Shift+Right resize grow   right 10 px or 10 ppt
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   135
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   136
        # back to normal: Enter or Escape
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   137
bindsym Return mode "default"
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   138
bindsym Escape mode "default"
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   139
}
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   140
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   141
bindsym $mod+o mode "resize"
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   142
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   143
# start programs
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   144
bindsym $mod+Ctrl+Return exec /usr/bin/dmenu_run
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   145
# bindsym $mod+Return exec /usr/bin/synapse
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   146
bindsym $mod+Shift+Return exec /usr/bin/x-terminal-emulator
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   147
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   148
# Start i3bar to display a workspace bar (plus the system information i3status
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   149
# finds out, if available)
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   150
exec gnome-settings-daemon
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   151
# exec xsetbg -fullscreen -onroot -border black themes/backgrounds/default.jpg
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   152
exec trayer --align right --height 18
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   153
exec i3status | i3bar -d
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   154
exec nm-applet
df7496e40bee Initial configuration files.
Fabien Ninoles <fabien@tzone.org>
parents:
diff changeset
   155
exec synapse -s