Advertisement
i_gnatenko_brain

~/.i3/config

Nov 23rd, 2012
473
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.15 KB | None | 0 0
  1. # This file has been auto-generated by i3-config-wizard(1).
  2. # It will not be overwritten, so edit it as you like.
  3. #
  4. # Should you change your keyboard layout somewhen, delete
  5. # this file and re-run i3-config-wizard(1).
  6. #
  7.  
  8. # i3 config file (v4)
  9. #
  10. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  11.  
  12. set $mod Mod4
  13.  
  14. # Font for window titles. Will also be used by the bar unless a different font
  15. # is used in the bar {} block below. ISO 10646 = Unicode
  16. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  17. # The font above is very space-efficient, that is, it looks good, sharp and
  18. # clear in small sizes. However, if you need a lot of unicode glyphs or
  19. # right-to-left text rendering, you should instead use pango for rendering and
  20. # chose a FreeType font, such as:
  21. # font pango:DejaVu Sans Mono 10
  22. font xft:Droid Sans Mono 8
  23.  
  24. # Use Mouse+$mod to drag floating windows to their wanted position
  25. floating_modifier $mod
  26.  
  27. # start a terminal
  28. bindsym $mod+Return exec i3-sensible-terminal
  29.  
  30. # kill focused window
  31. bindsym $mod+Shift+q kill
  32.  
  33. # start dmenu (a program launcher)
  34. bindsym $mod+d exec dmenu_run
  35.  
  36. # change focus
  37. bindsym $mod+j focus left
  38. bindsym $mod+k focus down
  39. bindsym $mod+l focus up
  40. bindsym $mod+semicolon focus right
  41.  
  42. # alternatively, you can use the cursor keys:
  43. bindsym $mod+Left focus left
  44. bindsym $mod+Down focus down
  45. bindsym $mod+Up focus up
  46. bindsym $mod+Right focus right
  47.  
  48. # move focused window
  49. bindsym $mod+Shift+j move left
  50. bindsym $mod+Shift+k move down
  51. bindsym $mod+Shift+l move up
  52. bindsym $mod+Shift+semicolon move right
  53.  
  54. # alternatively, you can use the cursor keys:
  55. bindsym $mod+Shift+Left move left
  56. bindsym $mod+Shift+Down move down
  57. bindsym $mod+Shift+Up move up
  58. bindsym $mod+Shift+Right move right
  59.  
  60. # split in horizontal orientation
  61. bindsym $mod+h split h
  62.  
  63. # split in vertical orientation
  64. bindsym $mod+v split v
  65.  
  66. # enter fullscreen mode for the focused container
  67. bindsym $mod+f fullscreen
  68.  
  69. # change container layout (stacked, tabbed, toggle split)
  70. bindsym $mod+s layout stacking
  71. bindsym $mod+w layout tabbed
  72. bindsym $mod+e layout toggle split
  73.  
  74. # toggle tiling / floating
  75. bindsym $mod+Shift+space floating toggle
  76.  
  77. # change focus between tiling / floating windows
  78. bindsym $mod+space focus mode_toggle
  79.  
  80. # focus the parent container
  81. bindsym $mod+a focus parent
  82.  
  83. # focus the child container
  84. #bindsym $mod+d focus child
  85.  
  86. # switch to workspace
  87. bindsym $mod+1 workspace 1:main
  88. bindsym $mod+2 workspace 2:www
  89. bindsym $mod+3 workspace 3:media
  90. bindsym $mod+4 workspace 4:msg
  91. bindsym $mod+5 workspace 5:misc
  92. #bindsym $mod+6 workspace 6:misc
  93. #bindsym $mod+7 workspace 7:misc
  94. #bindsym $mod+8 workspace 8:misc
  95. #bindsym $mod+9 workspace 9:misc
  96. bindsym $mod+0 workspace 10:term
  97.  
  98. # move focused container to workspace
  99. #bindsym $mod+Shift+1 move container to workspace 1:main
  100. bindsym $mod+Shift+2 move container to workspace 2:www
  101. bindsym $mod+Shift+3 move container to workspace 3:media
  102. bindsym $mod+Shift+4 move container to workspace 4:msg
  103. bindsym $mod+Shift+5 move container to workspace 5:misc
  104. #bindsym $mod+Shift+6 move container to workspace 6:misc
  105. #bindsym $mod+Shift+7 move container to workspace 7:misc
  106. #bindsym $mod+Shift+8 move container to workspace 8:misc
  107. #bindsym $mod+Shift+9 move container to workspace 9:misc
  108. bindsym $mod+Shift+0 move container to workspace 10:term
  109.  
  110. # reload the configuration file
  111. bindsym $mod+Shift+c reload
  112. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  113. bindsym $mod+Shift+r restart
  114. # exit i3 (logs you out of your X session)
  115. 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'"
  116.  
  117. # resize window (you can also use the mouse for that)
  118. mode "resize" {
  119. # These bindings trigger as soon as you enter the resize mode
  120.  
  121. # Pressing left will shrink the window’s width.
  122. # Pressing right will grow the window’s width.
  123. # Pressing up will shrink the window’s height.
  124. # Pressing down will grow the window’s height.
  125. bindsym j resize shrink width 10 px or 10 ppt
  126. bindsym k resize grow height 10 px or 10 ppt
  127. bindsym l resize shrink height 10 px or 10 ppt
  128. bindsym semicolon resize grow width 10 px or 10 ppt
  129.  
  130. # same bindings, but for the arrow keys
  131. bindsym Left resize shrink width 10 px or 10 ppt
  132. bindsym Down resize grow height 10 px or 10 ppt
  133. bindsym Up resize shrink height 10 px or 10 ppt
  134. bindsym Right resize grow width 10 px or 10 ppt
  135.  
  136. # back to normal: Enter or Escape
  137. bindsym Return mode "default"
  138. bindsym Escape mode "default"
  139. }
  140.  
  141. bindsym $mod+r mode "resize"
  142.  
  143. # Start i3bar to display a workspace bar (plus the system information i3status
  144. # finds out, if available)
  145. bar {
  146. font xft:Droid Sans Mono 8
  147. status_command ~/.i3/status.sh
  148. tray_output primary
  149. }
  150.  
  151. workspace_layout tabbed
  152. workspace_auto_back_and_forth yes
  153. force_focus_wrapping yes
  154. assign [class="Chromium"] 2:www
  155. assign [title="newsbeuter"] 2:www
  156. assign [class="sxiv"] 3:media
  157. assign [class="MPlayer"] 3:media
  158. assign [class="Skype"] 4:msg
  159. assign [title="finch"] 4:msg
  160. assign [class="URxvt"] 10:term
  161. for_window [class="()"] focus
  162. bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q set Master 5%+ unmute
  163. bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q set Master 5%- unmute
  164. bindsym XF86AudioMute exec --no-startup-id amixer -q set Master toggle
  165. bindsym XF86AudioPlay exec --no-startup-id ncmpcpp toggle
  166. bindsym XF86AudioNext exec --no-startup-id ncmpcpp next
  167. bindsym XF86AudioPrev exec --no-startup-id ncmpcpp prev
  168. bindsym XF86AudioStop exec --no-startup-id ncmpcpp stop
  169. bindsym $mod+Shift+Return exec i3-sensible-terminal -e vim
  170. bindsym $mod+c exec i3-sensible-terminal -e finch
  171. bindsym $mod+n exec i3-sensible-terminal -e newsbeuter
  172. bindsym $mod+Shift+s exec "i3-nagbar -t warning -m 'You pressed the poweroff shortcut. Do you really want to poweroff?' -b 'Yes, poweroff' 'systemctl poweroff'"
  173. bindsym Print exec --no-startup-id "scrot '%F_%H%M%S_$wx$h.png' -e 'mv $f ~/screens/'"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement