Guest User

i3 config

a guest
Aug 19th, 2012
186
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 -artwiz-fonts-lime-regular-r-normal--4-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. # Floating Windows
  19. for_window [class="Nitrogen"] floating enable
  20. for_window [class="Geany"] floating enable
  21. for_window [class="Pcmanfm"] floating enable
  22. for_window [class="Lxappearance"] floating enable
  23.  
  24. # Window border
  25. new_window none
  26.  
  27. # start a terminal
  28. bindsym Mod1+Return exec xterm
  29.  
  30. # kill focused window
  31. bindsym Mod1+Shift+q kill
  32.  
  33. # start dmenu (a program launcher)
  34. bindsym Mod1+p exec dmenu_run
  35.  
  36. # change focus
  37. bindsym Mod1+j focus left
  38. bindsym Mod1+k focus down:
  39. bindsym Mod1+l focus up
  40. bindsym Mod1+semicolon focus right
  41.  
  42. # alternatively, you can use the cursor keys:
  43. bindsym Mod1+Left focus left
  44. bindsym Mod1+Down focus down
  45. bindsym Mod1+Up focus up
  46. bindsym Mod1+Right focus right
  47.  
  48. # move focused window
  49. bindsym Mod1+Shift+j move left
  50. bindsym Mod1+Shift+k move down
  51. bindsym Mod1+Shift+l move up
  52. bindsym Mod1+Shift+semicolon move right
  53.  
  54. # alternatively, you can use the cursor keys:
  55. bindsym Mod1+Shift+Left move left
  56. bindsym Mod1+Shift+Down move down
  57. bindsym Mod1+Shift+Up move up
  58. bindsym Mod1+Shift+Right move right
  59.  
  60. # split in horizontal orientation
  61. bindsym Mod1+h split h
  62.  
  63. # split in vertical orientation
  64. bindsym Mod1+v split v
  65.  
  66. # enter fullscreen mode for the focused container
  67. bindsym Mod1+f fullscreen
  68.  
  69. # change container layout (stacked, tabbed, default)
  70. bindsym Mod1+s layout stacking
  71. bindsym Mod1+w layout tabbed
  72. bindsym Mod1+e layout default
  73.  
  74. # toggle tiling / floating
  75. bindsym Mod1+Shift+space floating toggle
  76.  
  77. # change focus between tiling / floating windows
  78. bindsym Mod1+space focus mode_toggle
  79.  
  80. # focus the parent container
  81. bindsym Mod1+a focus parent
  82.  
  83. # focus the child container
  84. #bindsym Mod1+d focus child
  85.  
  86. # switch to workspace
  87. bindsym Mod1+1 workspace "www"
  88. bindsym Mod1+2 workspace "term"
  89. bindsym Mod1+3 workspace "media"
  90. bindsym Mod1+4 workspace "misc"
  91. bindsym Mod1+5 workspace "misc2"
  92.  
  93. # move focused container to workspace
  94. bindsym Mod1+Shift+1 move container to workspace "www"
  95. bindsym Mod1+Shift+2 move container to workspace "term"
  96. bindsym Mod1+Shift+3 move container to workspace "media"
  97. bindsym Mod1+Shift+4 move container to workspace "misc"
  98. bindsym Mod1+Shift+5 move container to workspace "misc2"
  99.  
  100. # reload the configuration file
  101. bindsym Mod1+Shift+c reload
  102. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  103. bindsym Mod1+Shift+r restart
  104.  
  105. # resize window (you can also use the mouse for that)
  106. mode "resize" {
  107. # These bindings trigger as soon as you enter the resize mode
  108.  
  109. # Pressing left will shrink the window’s width.
  110. # Pressing right will grow the window’s width.
  111. # Pressing up will shrink the window’s height.
  112. # Pressing down will grow the window’s height.
  113. bindsym j resize shrink width 10 px or 10 ppt
  114. bindsym k resize grow height 10 px or 10 ppt
  115. bindsym l resize shrink height 10 px or 10 ppt
  116. bindsym semicolon resize grow width 10 px or 10 ppt
  117.  
  118. # same bindings, but for the arrow keys
  119. bindsym Left resize shrink width 10 px or 10 ppt
  120. bindsym Down resize grow height 10 px or 10 ppt:
  121. bindsym Up resize shrink height 10 px or 10 ppt
  122. bindsym Right resize grow width 10 px or 10 ppt
  123.  
  124. # back to normal: Enter or Escape
  125. bindsym Return mode "default"
  126. bindsym Escape mode "default"
  127. }
  128.  
  129. bindsym Mod1+r mode "resize"
  130.  
  131. # Start i3bar to display a workspace bar (plus the system information i3status
  132. # finds out, if available)
  133. bar {
  134. status_command i3status
  135. position top
  136. workspace_buttons yes
  137.  
  138. colors {
  139. background #000000
  140. statusline #99CC66
  141.  
  142. focused_workspace #ffffff #333333
  143. active_workspace #ffffff #333333
  144. inactive_workspace #900000 #222222
  145. urgent_workspace #ffffff #900000
  146. }
  147. }
  148.  
  149.  
  150. #######################################################################
  151. # automatically start i3-config-wizard to offer the user to create a
  152. # keysym-based config which used his favorite modifier (alt or windows)
  153. #
  154. # i3-config-wizard will not launch if there already is a config file
  155. # in ~/.i3/config.
  156. #
  157. # Please remove the following exec line:
  158. #######################################################################
  159. exec i3-config-wizard
RAW Paste Data