Advertisement
Guest User

i3 config

a guest
Oct 15th, 2016
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.31 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. # 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. Will also be used by the bar unless a different font
  13. # is used in the bar {} block below.
  14. #font pango:Ubuntu
  15.  
  16. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  17. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  18. font pango:Ubuntu 8
  19.  
  20. # Before i3 v4.8, we used to recommend this one as the default:
  21. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  22. # The font above is very space-efficient, that is, it looks good, sharp and
  23. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  24. # X core fonts rendering does not support right-to-left and this being a bitmap
  25. # font, it doesn’t scale on retina/hidpi displays.
  26.  
  27. # use these keys for focus, movement, and resize directions when reaching for
  28. # the arrows is not convenient
  29. set $up l
  30. set $down k
  31. set $left j
  32. set $right semicolon
  33. set $GTK_THEME=Numix
  34.  
  35. # use Mouse+Mod1 to drag floating windows to their wanted position
  36. floating_modifier Mod1
  37.  
  38. # start a terminal
  39. bindsym Mod1+Return exec i3-sensible-terminal
  40.  
  41. # kill focused window
  42. bindsym Mod1+Shift+q kill
  43.  
  44. # start dmenu (a program launcher)
  45. bindsym Mod1+d exec dmenu_run
  46. # There also is the (new) i3-dmenu-desktop which only displays applications
  47. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  48. # installed.
  49. # bindsym Mod1+d exec --no-startup-id i3-dmenu-desktop
  50.  
  51. # change focus
  52. bindsym Mod1+$left focus left
  53. bindsym Mod1+$down focus down
  54. bindsym Mod1+$up focus up
  55. bindsym Mod1+$right focus right
  56.  
  57. # alternatively, you can use the cursor keys:
  58. bindsym Mod1+Left focus left
  59. bindsym Mod1+Down focus down
  60. bindsym Mod1+Up focus up
  61. bindsym Mod1+Right focus right
  62.  
  63. # move focused window
  64. bindsym Mod1+Shift+$left move left
  65. bindsym Mod1+Shift+$down move down
  66. bindsym Mod1+Shift+$up move up
  67. bindsym Mod1+Shift+$right move right
  68.  
  69. # alternatively, you can use the cursor keys:
  70. bindsym Mod1+Shift+Left move left
  71. bindsym Mod1+Shift+Down move down
  72. bindsym Mod1+Shift+Up move up
  73. bindsym Mod1+Shift+Right move right
  74.  
  75. # split in horizontal orientation
  76. bindsym Mod1+h split h
  77.  
  78. # split in vertical orientation
  79. bindsym Mod1+v split v
  80.  
  81. # enter fullscreen mode for the focused container
  82. bindsym Mod1+f fullscreen toggle
  83.  
  84. # change container layout (stacked, tabbed, toggle split)
  85. bindsym Mod1+s layout stacking
  86. bindsym Mod1+w layout tabbed
  87. bindsym Mod1+e layout toggle split
  88.  
  89. # toggle tiling / floating
  90. bindsym Mod1+Shift+space floating toggle
  91.  
  92. # change focus between tiling / floating windows
  93. bindsym Mod1+space focus mode_toggle
  94.  
  95. # focus the parent container
  96. bindsym Mod1+a focus parent
  97.  
  98. # focus the child container
  99. #bindsym Mod1+d focus child
  100.  
  101. # move the currently focused window to the scratchpad
  102. bindsym Mod1+Shift+minus move scratchpad
  103.  
  104. # Show the next scratchpad window or hide the focused scratchpad window.
  105. # If there are multiple scratchpad windows, this command cycles through them.
  106. bindsym Mod1+minus scratchpad show
  107.  
  108. # switch to workspace
  109. bindsym Mod1+1 workspace 1
  110. bindsym Mod1+2 workspace 2
  111. bindsym Mod1+3 workspace 3
  112. bindsym Mod1+4 workspace 4
  113. bindsym Mod1+5 workspace 5
  114. bindsym Mod1+6 workspace 6
  115. bindsym Mod1+7 workspace 7
  116. bindsym Mod1+8 workspace 8
  117. bindsym Mod1+9 workspace 9
  118. bindsym Mod1+0 workspace 10
  119.  
  120. # move focused container to workspace
  121. bindsym Mod1+Shift+1 move container to workspace 1
  122. bindsym Mod1+Shift+2 move container to workspace 2
  123. bindsym Mod1+Shift+3 move container to workspace 3
  124. bindsym Mod1+Shift+4 move container to workspace 4
  125. bindsym Mod1+Shift+5 move container to workspace 5
  126. bindsym Mod1+Shift+6 move container to workspace 6
  127. bindsym Mod1+Shift+7 move container to workspace 7
  128. bindsym Mod1+Shift+8 move container to workspace 8
  129. bindsym Mod1+Shift+9 move container to workspace 9
  130. bindsym Mod1+Shift+0 move container to workspace 10
  131.  
  132. # reload the configuration file
  133. bindsym Mod1+Shift+c reload
  134. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  135. bindsym Mod1+Shift+r restart
  136. # exit i3 (logs you out of your X session)
  137. bindsym Mod1+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'"
  138. # 3-touch on window tab kills window
  139. bindsym --release button2 kill
  140. # volume controls
  141. bindcode Mod1+F7 'playerctl volume +.1'
  142. # resize window (you can also use the mouse for that)
  143. mode "resize" {
  144. # These bindings trigger as soon as you enter the resize mode
  145.  
  146. # Pressing left will shrink the window’s width.
  147. # Pressing right will grow the window’s width.
  148. # Pressing up will shrink the window’s height.
  149. # Pressing down will grow the window’s height.
  150. bindsym $left resize shrink width 10 px or 10 ppt
  151. bindsym $down resize grow height 10 px or 10 ppt
  152. bindsym $up resize shrink height 10 px or 10 ppt
  153. bindsym $right resize grow width 10 px or 10 ppt
  154.  
  155. # same bindings, but for the arrow keys
  156. bindsym Left resize shrink width 10 px or 10 ppt
  157. bindsym Down resize grow height 10 px or 10 ppt
  158. bindsym Up resize shrink height 10 px or 10 ppt
  159. bindsym Right resize grow width 10 px or 10 ppt
  160.  
  161. # back to normal: Enter or Escape
  162. bindsym Return mode "default"
  163. bindsym Escape mode "default"
  164. }
  165.  
  166. bindsym Mod1+r mode "resize"
  167.  
  168. bar {
  169. font pango:Source Sans Pro-10 10
  170. status_command i3blocks -c ~/i3blocks/i3blocks.conf
  171. colors {
  172. separator #268bd2
  173. background #002b36
  174. statusline #839496
  175. focused_workspace #fdf6e3 #6c71c4 #fdf6e3
  176. active_workspace #fdf6e3 #6c71c4 #fdf6e3
  177. inactive_workspace #002b36 #586e75 #002b36
  178. urgent_workspace #d33682 #d33682 #fdf6e3
  179. }
  180. }
  181. client.focused #6c71c4 #6c71c4 #fdf6e3 #6c71c4
  182. client.focused_inactive #073642 #073642 #eee8d5 #6c71c4
  183. client.unfocused #073642 #073642 #93a1a1 #586e75
  184. client.urgent #d33682 #d33682 #fdf6e3 #dc322f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement