Advertisement
pcwizz

i3 config

Oct 16th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.67 KB | None | 0 0
  1. # i3 config file (v4)
  2. #
  3. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  4.  
  5. set $mod Mod4
  6.  
  7. # Font for window titles. Will also be used by the bar unless a different font
  8. # is used in the bar {} block below. ISO 10646 = Unicode
  9. font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  10. # The font above is very space-efficient, that is, it looks good, sharp and
  11. # clear in small sizes. However, if you need a lot of unicode glyphs or
  12. # right-to-left text rendering, you should instead use pango for rendering and
  13. # chose a FreeType font, such as:
  14. # font pango:DejaVu Sans Mono 10
  15.  
  16. # Use Mouse+$mod to drag floating windows to their wanted position
  17. floating_modifier $mod
  18.  
  19. # start a terminal
  20. bindsym $mod+Return exec i3-sensible-terminal
  21.  
  22. # kill focused window
  23. bindsym $mod+Shift+q kill
  24.  
  25. # start dmenu (a program launcher)
  26. bindsym $mod+d exec dmenu_run
  27. # There also is the (new) i3-dmenu-desktop which only displays applications
  28. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  29. # installed.
  30. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  31.  
  32. # change focus non of that semicolon crap
  33. bindsym $mod+h focus left
  34. bindsym $mod+j focus down
  35. bindsym $mod+k focus up
  36. bindsym $mod+l focus right
  37.  
  38. # move focused window
  39. bindsym $mod+Shift+h move left
  40. bindsym $mod+Shift+j move down
  41. bindsym $mod+Shift+k move up
  42. bindsym $mod+Shift+l move right
  43.  
  44. # split in horizontal orientation
  45. bindsym $mod+x split h
  46.  
  47. # split in vertical orientation
  48. bindsym $mod+y split v
  49.  
  50. # enter fullscreen mode for the focused container
  51. bindsym $mod+f fullscreen
  52.  
  53. # change container layout (stacked, tabbed, toggle split)
  54. bindsym $mod+s layout stacking
  55. bindsym $mod+w layout tabbed
  56. bindsym $mod+e layout toggle split
  57.  
  58. # toggle tiling / floating
  59. bindsym $mod+Shift+space floating toggle
  60.  
  61. # change focus between tiling / floating windows
  62. bindsym $mod+space focus mode_toggle
  63.  
  64. # focus the parent container
  65. bindsym $mod+a focus parent
  66.  
  67. # focus the child container
  68. #bindsym $mod+d focus child
  69.  
  70. # switch to workspace
  71. bindsym $mod+1 workspace 1
  72. bindsym $mod+2 workspace 2
  73. bindsym $mod+3 workspace 3
  74. bindsym $mod+4 workspace 4
  75. bindsym $mod+5 workspace 5
  76. bindsym $mod+6 workspace 6
  77. bindsym $mod+7 workspace 7
  78. bindsym $mod+8 workspace 8
  79. bindsym $mod+9 workspace 9
  80. bindsym $mod+0 workspace 10
  81.  
  82. # move focused container to workspace
  83. bindsym $mod+Shift+1 move container to workspace 1
  84. bindsym $mod+Shift+2 move container to workspace 2
  85. bindsym $mod+Shift+3 move container to workspace 3
  86. bindsym $mod+Shift+4 move container to workspace 4
  87. bindsym $mod+Shift+5 move container to workspace 5
  88. bindsym $mod+Shift+6 move container to workspace 6
  89. bindsym $mod+Shift+7 move container to workspace 7
  90. bindsym $mod+Shift+8 move container to workspace 8
  91. bindsym $mod+Shift+9 move container to workspace 9
  92. bindsym $mod+Shift+0 move container to workspace 10
  93.  
  94. # reload the configuration file
  95. bindsym $mod+Shift+c reload
  96. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  97. bindsym $mod+Shift+r restart
  98. # exit i3 (logs you out of your X session)
  99. bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
  100. # lock screen
  101. bindsym $mod+Shift+m exec i3lock
  102.  
  103. # resize window (you can also use the mouse for that)
  104. mode "resize" {
  105. # These bindings trigger as soon as you enter the resize mode
  106.  
  107. # Pressing left will shrink the window’s width.
  108. # Pressing right will grow the window’s width.
  109. # Pressing up will shrink the window’s height.
  110. # Pressing down will grow the window’s height.
  111. bindsym h resize shrink width 10 px or 10 ppt
  112. bindsym j resize grow height 10 px or 10 ppt
  113. bindsym k resize shrink height 10 px or 10 ppt
  114. bindsym l resize grow width 10 px or 10 ppt
  115.  
  116. # same bindings, but for the arrow keys
  117. bindsym Left resize shrink width 10 px or 10 ppt
  118. bindsym Down resize grow height 10 px or 10 ppt
  119. bindsym Up resize shrink height 10 px or 10 ppt
  120. bindsym Right resize grow width 10 px or 10 ppt
  121.  
  122. # back to normal: Enter or Escape
  123. bindsym Return mode "default"
  124. bindsym Escape mode "default"
  125. }
  126.  
  127. bindsym $mod+r mode "resize"
  128.  
  129. # Start i3bar to display a workspace bar (plus the system information i3status
  130. # finds out, if available)
  131.  
  132. bar {
  133. output DFP2
  134. tray_output DFP2
  135. position top
  136. workspace_buttons no
  137. mode hide
  138. modifier Mod1
  139. status_command i3status
  140. colors {
  141. background #000000
  142. statusline #ffffff
  143. }
  144. }
  145.  
  146. bar {
  147. mode invisible
  148. tray_output none
  149. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement