Advertisement
Guest User

Sample i3 config (nubi)

a guest
Dec 28th, 2014
762
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.76 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. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  15. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  16. font pango:DejaVu Sans Mono 8
  17. # Before i3 v4.8, we used to recommend this one as the default:
  18. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  19. # The font above is very space-efficient, that is, it looks good, sharp and
  20. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  21. # X core fonts rendering does not support right-to-left and this being a bitmap
  22. # font, it doesn’t scale on retina/hidpi displays.
  23.  
  24. # use these keys for focus, movement, and resize directions when reaching for
  25. # the arrows is not convenient
  26. set $up l
  27. set $down k
  28. set $left j
  29. set $right semicolon
  30.  
  31. # use Mouse+Mod1 to drag floating windows to their wanted position
  32. floating_modifier Mod1
  33.  
  34. # start a terminal
  35. # bindsym Mod1+Return exec i3-sensible-terminal
  36. # bindsym Mod1+Return exec "xfce4-terminal --drop-down --role=dropdown"
  37. bindsym Mod1+Return exec xfce4-terminal
  38.  
  39. # kill focused window
  40. bindsym Mod1+Shift+q kill
  41.  
  42. # start dmenu (a program launcher)
  43. bindsym Mod1+d exec dmenu_run
  44. # There also is the (new) i3-dmenu-desktop which only displays applications
  45. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  46. # installed.
  47. # bindsym Mod1+d exec --no-startup-id i3-dmenu-desktop
  48.  
  49. # change focus
  50. bindsym Mod1+$left focus left
  51. bindsym Mod1+$down focus down
  52. bindsym Mod1+$up focus up
  53. bindsym Mod1+$right focus right
  54.  
  55. # alternatively, you can use the cursor keys:
  56. bindsym Mod1+Left focus left
  57. bindsym Mod1+Down focus down
  58. bindsym Mod1+Up focus up
  59. bindsym Mod1+Right focus right
  60.  
  61. # move focused window
  62. bindsym Mod1+Shift+$left move left
  63. bindsym Mod1+Shift+$down move down
  64. bindsym Mod1+Shift+$up move up
  65. bindsym Mod1+Shift+$right move right
  66.  
  67. # alternatively, you can use the cursor keys:
  68. bindsym Mod1+Shift+Left move left
  69. bindsym Mod1+Shift+Down move down
  70. bindsym Mod1+Shift+Up move up
  71. bindsym Mod1+Shift+Right move right
  72.  
  73. # split in horizontal orientation
  74. bindsym Mod1+h split h
  75.  
  76. # split in vertical orientation
  77. bindsym Mod1+v split v
  78.  
  79. # enter fullscreen mode for the focused container
  80. bindsym Mod1+f fullscreen
  81.  
  82. # change container layout (stacked, tabbed, toggle split)
  83. bindsym Mod1+s layout stacking
  84. bindsym Mod1+w layout tabbed
  85. bindsym Mod1+e layout toggle split
  86.  
  87. # toggle tiling / floating
  88. bindsym Mod1+Shift+space floating toggle
  89.  
  90. # change focus between tiling / floating windows
  91. bindsym Mod1+space focus mode_toggle
  92.  
  93. # focus the parent container
  94. bindsym Mod1+a focus parent
  95.  
  96. # focus the child container
  97. #bindsym Mod1+d focus child
  98.  
  99. # move the currently focused window to the scratchpad
  100. bindsym Mod1+Shift+minus move scratchpad
  101.  
  102. # Show the next scratchpad window or hide the focused scratchpad window.
  103. # If there are multiple scratchpad windows, this command cycles through them.
  104. bindsym Mod1+minus scratchpad show
  105.  
  106. # switch to workspace
  107. bindsym Mod1+1 workspace term
  108. bindsym Mod1+2 workspace net
  109. bindsym Mod1+3 workspace edit
  110. bindsym Mod1+4 workspace place
  111. bindsym Mod1+5 workspace 5
  112. bindsym Mod1+6 workspace 6
  113. bindsym Mod1+7 workspace 7
  114. bindsym Mod1+8 workspace 8
  115. bindsym Mod1+9 workspace 9
  116. bindsym Mod1+0 workspace 10
  117.  
  118. # move focused container to workspace
  119. bindsym Mod1+Shift+1 move container to workspace term
  120. bindsym Mod1+Shift+2 move container to workspace net
  121. bindsym Mod1+Shift+3 move container to workspace edit
  122. bindsym Mod1+Shift+4 move container to workspace place
  123. bindsym Mod1+Shift+5 move container to workspace 5
  124. bindsym Mod1+Shift+6 move container to workspace 6
  125. bindsym Mod1+Shift+7 move container to workspace 7
  126. bindsym Mod1+Shift+8 move container to workspace 8
  127. bindsym Mod1+Shift+9 move container to workspace 9
  128. bindsym Mod1+Shift+0 move container to workspace 10
  129.  
  130. # reload the configuration file
  131. bindsym Mod1+Shift+c reload
  132. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  133. bindsym Mod1+Shift+r restart
  134. # exit i3 (logs you out of your X session)
  135. 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'"
  136.  
  137. # resize window (you can also use the mouse for that)
  138. mode "resize" {
  139. # These bindings trigger as soon as you enter the resize mode
  140.  
  141. # Pressing left will shrink the window’s width.
  142. # Pressing right will grow the window’s width.
  143. # Pressing up will shrink the window’s height.
  144. # Pressing down will grow the window’s height.
  145. bindsym $left resize shrink width 10 px or 10 ppt
  146. bindsym $down resize grow height 10 px or 10 ppt
  147. bindsym $up resize shrink height 10 px or 10 ppt
  148. bindsym $right resize grow width 10 px or 10 ppt
  149.  
  150. # same bindings, but for the arrow keys
  151. bindsym Left resize shrink width 10 px or 10 ppt
  152. bindsym Down resize grow height 10 px or 10 ppt
  153. bindsym Up resize shrink height 10 px or 10 ppt
  154. bindsym Right resize grow width 10 px or 10 ppt
  155.  
  156. # back to normal: Enter or Escape
  157. bindsym Return mode "default"
  158. bindsym Escape mode "default"
  159. }
  160.  
  161. bindsym Mod1+r mode "resize"
  162.  
  163. # colors
  164. #class border backgr. text
  165. client.focused #909737 #909737 #111111
  166. client.focused_inactive #111111 #111111 #999999
  167. client.unfocused #222222 #222222 #999999
  168. client.urgent #a5a5a5 #a5a5a5 #2e3436
  169. client.background #161616
  170.  
  171.  
  172. # Start i3bar to display a workspace bar (plus the system information i3status
  173. # finds out, if available)
  174. bar {
  175. # status_command i3status
  176. status_command /home/epsi/config/i3/conky-i3bar
  177. position bottom
  178.  
  179. colors {
  180. background #161616
  181. statusline #605c5a
  182.  
  183. # class border backgrd text
  184. focused_workspace #161616 #909737 #ffffff
  185. active_workspace #161616 #161616 #a5a5a5
  186. inactive_workspace #161616 #545454 #a5a5a5
  187. urgent_workspace #161616 #545454 #a5a5a5
  188. }
  189.  
  190. }
  191.  
  192. for_window [class="facebook"] move net
  193. assign [class="URxvt"] term
  194. assign [class="File"] place
  195. assign [instance="geany"] edit
  196. assign [instance="firefox"] net
  197. assign [instance="chromium"] net
  198. assign [instance="thunderbird"] net
  199. assign [instance="thunar"] place
  200.  
  201.  
  202. workspace_layout tabbed
  203. # new_window 1pixel
  204.  
  205. #######################################################################
  206. # automatically start i3-config-wizard to offer the user to create a
  207. # keysym-based config which used his favorite modifier (alt or windows)
  208. #
  209. # i3-config-wizard will not launch if there already is a config file
  210. # in ~/.i3/config.
  211. #
  212. # Please remove the following exec line:
  213. #######################################################################
  214. # exec --no-startup-id i3-config-wizard
  215.  
  216.  
  217. # exec --no-startup-id feh --bg-scale /home/epsi/Pictures/colourful/colored_background_from_dark_to_colour-1024x768.jpg
  218. exec --no-startup-id xsetroot -solid "#333333"
  219. # exec --no-startup-id feh --bg-scale /home/epsi/Pictures/simple-arch-wp/1280x800/red.jpg
  220. exec --no-startup-id feh --bg-scale /home/epsi/Pictures/wallpaper/arch_linux_by_shapshapy-d4gfyuf.png
  221.  
  222.  
  223. exec xfce4-terminal
  224. exec --no-startup-id geany
  225. exec --no-startup-id thunar
  226.  
  227. # vim:filetype=i3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement