Guest User

i3 config

a guest
Mar 5th, 2015
273
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # i3 config file (v4)
  2. #
  3. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  4. #
  5. # This config file uses keycodes (bindsym) and was written for the QWERTY
  6. # layout.
  7. #
  8. # To get a config file with the same key positions, but for your current
  9. # layout, use the i3-config-wizard
  10. #
  11.  
  12. # font for window titles. ISO 10646 = Unicode
  13. font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  14.  
  15. # use Mouse+Mod1 to drag floating windows to their wanted position
  16. floating_modifier Mod1
  17.  
  18. # start a terminal
  19. bindsym Mod1+Return exec i3-sensible-terminal
  20.  
  21. # kill focused window
  22. bindsym Mod1+Shift+q kill
  23.  
  24. # start dmenu (a program launcher)
  25. bindsym Mod1+d exec dmenu_run
  26.  
  27. # change focus
  28. bindsym Mod1+j focus left
  29. bindsym Mod1+k focus down
  30. bindsym Mod1+l focus up
  31. bindsym Mod1+semicolon focus right
  32.  
  33. # alternatively, you can use the cursor keys:
  34. bindsym Mod1+Left focus left
  35. bindsym Mod1+Down focus down
  36. bindsym Mod1+Up focus up
  37. bindsym Mod1+Right focus right
  38.  
  39. # move focused window
  40. bindsym Mod1+Shift+j move left
  41. bindsym Mod1+Shift+k move down
  42. bindsym Mod1+Shift+l move up
  43. bindsym Mod1+Shift+semicolon move right
  44.  
  45. # alternatively, you can use the cursor keys:
  46. bindsym Mod1+Shift+Left move left
  47. bindsym Mod1+Shift+Down move down
  48. bindsym Mod1+Shift+Up move up
  49. bindsym Mod1+Shift+Right move right
  50.  
  51. # split in horizontal orientation
  52. bindsym Mod1+h split h
  53.  
  54. # split in vertical orientation
  55. bindsym Mod1+v split v
  56.  
  57. # enter fullscreen mode for the focused container
  58. bindsym Mod1+f fullscreen
  59.  
  60. # change container layout (stacked, tabbed, default)
  61. bindsym Mod1+s layout stacking
  62. bindsym Mod1+w layout tabbed
  63. bindsym Mod1+e layout default
  64.  
  65. # toggle tiling / floating
  66. bindsym Mod1+Shift+space floating toggle
  67.  
  68. # change focus between tiling / floating windows
  69. bindsym Mod1+space focus mode_toggle
  70.  
  71. # focus the parent container
  72. bindsym Mod1+a focus parent
  73.  
  74. # focus the child container
  75. #bindsym Mod1+d focus child
  76.  
  77. # switch to workspace
  78. bindsym Mod1+1 workspace 1
  79. bindsym Mod1+2 workspace 2
  80. bindsym Mod1+3 workspace 3
  81. bindsym Mod1+4 workspace 4
  82. bindsym Mod1+5 workspace 5
  83. bindsym Mod1+6 workspace 6
  84. bindsym Mod1+7 workspace 7
  85. bindsym Mod1+8 workspace 8
  86. bindsym Mod1+9 workspace 9
  87. bindsym Mod1+0 workspace 10
  88.  
  89. # move focused container to workspace
  90. bindsym Mod1+Shift+1 move container to workspace 1
  91. bindsym Mod1+Shift+2 move container to workspace 2
  92. bindsym Mod1+Shift+3 move container to workspace 3
  93. bindsym Mod1+Shift+4 move container to workspace 4
  94. bindsym Mod1+Shift+5 move container to workspace 5
  95. bindsym Mod1+Shift+6 move container to workspace 6
  96. bindsym Mod1+Shift+7 move container to workspace 7
  97. bindsym Mod1+Shift+8 move container to workspace 8
  98. bindsym Mod1+Shift+9 move container to workspace 9
  99. bindsym Mod1+Shift+0 move container to workspace 10
  100.  
  101. # reload the configuration file
  102. bindsym Mod1+Shift+c reload
  103. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  104. bindsym Mod1+Shift+r restart
  105. # exit i3 (logs you out of your X session)
  106. bindsym Mod1+Shift+e exit
  107.  
  108. # resize window (you can also use the mouse for that)
  109. mode "resize" {
  110. # These bindings trigger as soon as you enter the resize mode
  111.  
  112. # Pressing left will shrink the window’s width.
  113. # Pressing right will grow the window’s width.
  114. # Pressing up will shrink the window’s height.
  115. # Pressing down will grow the window’s height.
  116. bindsym j resize shrink width 10 px or 10 ppt
  117. bindsym k resize grow height 10 px or 10 ppt
  118. bindsym l resize shrink height 10 px or 10 ppt
  119. bindsym semicolon resize grow width 10 px or 10 ppt
  120.  
  121. # same bindings, but for the arrow keys
  122. bindsym Left resize shrink width 10 px or 10 ppt
  123. bindsym Down resize grow height 10 px or 10 ppt
  124. bindsym Up resize shrink height 10 px or 10 ppt
  125. bindsym Right resize grow width 10 px or 10 ppt
  126.  
  127. # back to normal: Enter or Escape
  128. bindsym Return mode "default"
  129. bindsym Escape mode "default"
  130. }
  131.  
  132. bindsym Mod1+r mode "resize"
  133.  
  134. # Start i3bar to display a workspace bar (plus the system information i3status
  135. # finds out, if available)
  136. bar {
  137. status_command i3status
  138. }
  139.  
  140. #######################################################################
  141. # automatically start i3-config-wizard to offer the user to create a
  142. # keysym-based config which used his favorite modifier (alt or windows)
  143. #
  144. # i3-config-wizard will not launch if there already is a config file
  145. # in ~/.i3/config.
  146. #
  147. # Please remove the following exec line:
  148. #######################################################################
  149. exec i3-config-wizard
RAW Paste Data