Advertisement
Guest User

sawyer_i3config

a guest
Apr 14th, 2014
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.46 KB | None | 0 0
  1. # It will not be overwritten, so edit it as you like.
  2. #
  3. # Should you change your keyboard layout somewhen, delete
  4. # this file and re-run i3-config-wizard(1).
  5. #
  6.  
  7. # i3 config file (v4)
  8. #
  9. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  10.  
  11. set $mod Mod4
  12.  
  13. # Font for window titles. Will also be used by the bar unless a different font
  14. # is used in the bar {} block below. ISO 10646 = Unicode
  15. font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  16. # The font above is very space-efficient, that is, it looks good, sharp and
  17. # clear in small sizes. However, if you need a lot of unicode glyphs or
  18. # right-to-left text rendering, you should instead use pango for rendering and
  19. # chose a FreeType font, such as:
  20. # font pango:DejaVu Sans Mono 10
  21.  
  22. # Use Mouse+$mod to drag floating windows to their wanted position
  23. floating_modifier $mod
  24.  
  25. workspace_auto_back_and_forth yes
  26.  
  27. for_window [class="Pidgin" window_role="conversation"] resize grow width 30 px or 30 ppt
  28. for_window [class="Pidgin" window_role="buddy_list"] resize shrink width 30 px or 30 ppt
  29.  
  30. assign [class="Pidgin"] 2
  31. assign [class="Rhythmbox"] 10
  32.  
  33. # start a terminal
  34. #bindsym $mod+Return exec i3-sensible-terminal
  35. bindsym $mod+Return exec urxvt
  36.  
  37. # my custom bindings
  38. bindsym $mod+i exec pidgin
  39. bindsym $mod+p exec rhythmbox
  40. bindsym $mod+z exec lxtask
  41. bindsym $mod+c exec urxvt -e python -i -c 'from math import *'
  42. bindsym $mod+b exec firefox
  43. bindsym $mod+n exec firefox -private-window
  44. bindsym $mod+m exec pcmanfm
  45. bindsym $mod+Shift+y exec --no-startup-id i3lock -n -i /usr/share/backgrounds/witcher.png
  46.  
  47. # volume control
  48. bindsym XF86AudioMute exec --no-startup-id amixer set Master toggle
  49. bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 5%+ unmute
  50. bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 5%- unmute
  51.  
  52. # screenshots
  53. bindsym Print exec --no-startup-id scrot
  54. bindsym --release $mod+Print exec --no-startup-id scrot -s
  55.  
  56. # kill focused window
  57. bindsym $mod+Shift+q kill
  58.  
  59. # start dmenu (a program launcher)
  60. bindsym $mod+space exec dmenu_run
  61. # There also is the (new) i3-dmenu-desktop which only displays applications
  62. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  63. # installed.
  64. # bindsym $mod+space exec --no-startup-id i3-dmenu-desktop
  65.  
  66. # change focus
  67. # bindsym $mod+j focus left
  68. # bindsym $mod+k focus down
  69. # bindsym $mod+l focus up
  70. # bindsym $mod+semicolon focus right
  71. bindsym $mod+h focus left
  72. bindsym $mod+j focus down
  73. bindsym $mod+k focus up
  74. bindsym $mod+l focus right
  75.  
  76. # alternatively, you can use the cursor keys:
  77. bindsym $mod+Left focus left
  78. bindsym $mod+Down focus down
  79. bindsym $mod+Up focus up
  80. bindsym $mod+Right focus right
  81.  
  82. # move focused window
  83. # bindsym $mod+Shift+j move left
  84. # bindsym $mod+Shift+k move down
  85. # bindsym $mod+Shift+l move up
  86. # bindsym $mod+Shift+semicolon move right
  87. bindsym $mod+Shift+h move left
  88. bindsym $mod+Shift+j move down
  89. bindsym $mod+Shift+k move up
  90. bindsym $mod+Shift+l move right
  91.  
  92. # alternatively, you can use the cursor keys:
  93. bindsym $mod+Shift+Left move left
  94. bindsym $mod+Shift+Down move down
  95. bindsym $mod+Shift+Up move up
  96. bindsym $mod+Shift+Right move right
  97.  
  98. # split in horizontal orientation
  99. bindsym $mod+v split h
  100.  
  101. # split in vertical oriestation
  102. bindsym $mod+Shift+v split v
  103.  
  104. # enter fullscreen mode for the focused container
  105. bindsym $mod+f fullscreen
  106.  
  107. # change container layout (stacked, tabbed, toggle split)
  108. bindsym $mod+s layout stacking
  109. bindsym $mod+w layout tabbed
  110. bindsym $mod+e layout toggle split
  111.  
  112. # toggle tiling / floating
  113. bindsym $mod+Shift+space floating toggle
  114.  
  115. # change focus between tiling / floating windows
  116. bindsym $mod+g focus mode_toggle
  117.  
  118. # focus the parent container
  119. bindsym $mod+a focus parent
  120.  
  121. # focus the child container
  122. bindsym $mod+d focus child
  123.  
  124. # switch to workspace
  125. bindsym $mod+Tab workspace next
  126. bindsym $mod+Shift+Tab workspace prev
  127. bindsym $mod+1 workspace 1
  128. bindsym $mod+2 workspace 2
  129. bindsym $mod+3 workspace 3
  130. bindsym $mod+4 workspace 4
  131. bindsym $mod+6 workspace 6
  132. bindsym $mod+7 workspace 7
  133. bindsym $mod+8 workspace 8
  134. bindsym $mod+9 workspace 9
  135. bindsym $mod+0 workspace 10
  136. bindsym $mod+minus workspace 11
  137. bindsym $mod+equal workspace 12
  138.  
  139. # move focused container to workspace
  140. bindsym $mod+Shift+1 move container to workspace 1
  141. bindsym $mod+Shift+2 move container to workspace 2
  142. bindsym $mod+Shift+3 move container to workspace 3
  143. bindsym $mod+Shift+4 move container to workspace 4
  144. bindsym $mod+Shift+5 move container to workspace 5
  145. bindsym $mod+Shift+6 move container to workspace 6
  146. bindsym $mod+Shift+7 move container to workspace 7
  147. bindsym $mod+Shift+8 move container to workspace 8
  148. bindsym $mod+Shift+9 move container to workspace 9
  149. bindsym $mod+Shift+0 move container to workspace 10
  150. bindsym $mod+Shift+minus move container to workspace 11
  151. bindsym $mod+Shift+equal move container to workspace 12
  152.  
  153. # reload the configuration file
  154. bindsym $mod+Shift+c reload
  155. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  156. bindsym $mod+Shift+r restart
  157. # exit i3 (logs you out of your X session)
  158. bindsym $mod+Shift+e exit
  159.  
  160. # resize window (you can also use the mouse for that)
  161. mode "resize" {
  162. # These bindings trigger as soon as you enter the resize mode
  163.  
  164. # Pressing left will shrink the window’s width.
  165. # Pressing right will grow the window’s width.
  166. # Pressing up will shrink the window’s height.
  167. # Pressing down will grow the window’s height.
  168. # bindsym j resize shrink width 5 px or 5 ppt
  169. # bindsym k resize grow height 5 px or 5 ppt
  170. # bindsym l resize shrink height 5 px or 5 ppt
  171. # bindsym semicolon resize grow width 5 px or 5 ppt
  172. bindsym h resize shrink width 5 px or 5 ppt
  173. bindsym j resize grow height 5 px or 5 ppt
  174. bindsym k resize shrink height 5 px or 5 ppt
  175. bindsym l resize grow width 5 px or 5 ppt
  176.  
  177. # same bindings, but for the arrow keys
  178. bindsym Left resize shrink width 5 px or 5 ppt
  179. bindsym Down resize grow height 5 px or 5 ppt
  180. bindsym Up resize shrink height 5 px or 5 ppt
  181. bindsym Right resize grow width 5 px or 5 ppt
  182.  
  183. # back to normal: Enter or Escape
  184. bindsym Return mode "default"
  185. bindsym Escape mode "default"
  186. }
  187.  
  188. bindsym $mod+r mode "resize"
  189.  
  190. # Start i3bar to display a workspace bar (plus the system information i3status
  191. # finds out, if available)
  192. bar {
  193. status_command i3status
  194. font pango: Sans 9
  195.  
  196. colors {
  197. background #111111
  198. }
  199. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement