Advertisement
Guest User

i3 config

a guest
May 5th, 2014
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.51 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 Mod1
  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:Monospace 9
  22.  
  23. # Use Mouse+$mod to drag floating windows to their wanted position
  24. floating_modifier $mod
  25.  
  26. # start a terminal
  27. bindsym $mod+Return exec lxterminal
  28.  
  29. # kill focused window
  30. bindsym $mod+Shift+q kill
  31.  
  32. # start dmenu (a program launcher)
  33. # There also is the (new) i3-dmenu-desktop which only displays applications
  34. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  35. # installed.
  36. bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  37.  
  38. # change focus
  39. bindsym $mod+j focus left
  40. bindsym $mod+k focus down
  41. bindsym $mod+l focus up
  42. bindsym $mod+semicolon focus right
  43.  
  44. # alternatively, you can use the cursor keys:
  45. bindsym $mod+Left focus left
  46. bindsym $mod+Down focus down
  47. bindsym $mod+Up focus up
  48. bindsym $mod+Right focus right
  49.  
  50. # move focused window
  51. bindsym $mod+Shift+j move left
  52. bindsym $mod+Shift+k move down
  53. bindsym $mod+Shift+l move up
  54. bindsym $mod+Shift+semicolon move right
  55.  
  56. # alternatively, you can use the cursor keys:
  57. bindsym $mod+Shift+Left move left
  58. bindsym $mod+Shift+Down move down
  59. bindsym $mod+Shift+Up move up
  60. bindsym $mod+Shift+Right move right
  61.  
  62. # split in horizontal orientation
  63. bindsym $mod+h split h
  64.  
  65. # split in vertical orientation
  66. bindsym $mod+v split v
  67.  
  68. # enter fullscreen mode for the focused container
  69. bindsym $mod+f fullscreen
  70.  
  71. # change container layout (stacked, tabbed, toggle split)
  72. bindsym $mod+s layout stacking
  73. bindsym $mod+w layout tabbed
  74. bindsym $mod+e layout toggle split
  75.  
  76. # toggle tiling / floating
  77. bindsym $mod+Shift+space floating toggle
  78.  
  79. # change focus between tiling / floating windows
  80. bindsym $mod+space focus mode_toggle
  81.  
  82. # focus the parent container
  83. bindsym $mod+a focus parent
  84.  
  85. # focus the child container
  86. #bindsym $mod+d focus child
  87.  
  88. # switch to workspace
  89. bindsym $mod+1 workspace 1
  90. bindsym $mod+2 workspace 2
  91. bindsym $mod+3 workspace 3
  92. bindsym $mod+4 workspace 4
  93. bindsym $mod+5 workspace 5
  94. bindsym $mod+6 workspace 6
  95. bindsym $mod+7 workspace 7
  96. bindsym $mod+8 workspace 8
  97. bindsym $mod+9 workspace 9
  98. bindsym $mod+0 workspace 10
  99.  
  100. # move focused container to workspace
  101. bindsym $mod+Shift+1 move container to workspace 1
  102. bindsym $mod+Shift+2 move container to workspace 2
  103. bindsym $mod+Shift+3 move container to workspace 3
  104. bindsym $mod+Shift+4 move container to workspace 4
  105. bindsym $mod+Shift+5 move container to workspace 5
  106. bindsym $mod+Shift+6 move container to workspace 6
  107. bindsym $mod+Shift+7 move container to workspace 7
  108. bindsym $mod+Shift+8 move container to workspace 8
  109. bindsym $mod+Shift+9 move container to workspace 9
  110. bindsym $mod+Shift+0 move container to workspace 10
  111.  
  112. # reload the configuration file
  113. bindsym $mod+Shift+c reload
  114. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  115. bindsym $mod+Shift+r restart
  116. # exit i3 (logs you out of your X session)
  117. 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'"
  118.  
  119. # resize window (you can also use the mouse for that)
  120. mode "resize" {
  121. # These bindings trigger as soon as you enter the resize mode
  122.  
  123. # Pressing left will shrink the window’s width.
  124. # Pressing right will grow the window’s width.
  125. # Pressing up will shrink the window’s height.
  126. # Pressing down will grow the window’s height.
  127. bindsym j resize shrink width 10 px or 10 ppt
  128. bindsym k resize grow height 10 px or 10 ppt
  129. bindsym l resize shrink height 10 px or 10 ppt
  130. bindsym semicolon resize grow width 10 px or 10 ppt
  131.  
  132. # same bindings, but for the arrow keys
  133. bindsym Left resize shrink width 10 px or 10 ppt
  134. bindsym Down resize grow height 10 px or 10 ppt
  135. bindsym Up resize shrink height 10 px or 10 ppt
  136. bindsym Right resize grow width 10 px or 10 ppt
  137.  
  138. # back to normal: Enter or Escape
  139. bindsym Return mode "default"
  140. bindsym Escape mode "default"
  141. }
  142.  
  143. bindsym $mod+r mode "resize"
  144.  
  145. # Start i3bar to display a workspace bar (plus the system information i3status
  146. # finds out, if available)
  147. bar {
  148. position top
  149. status_command i3status
  150. }
  151.  
  152. # remove window border
  153. new_window normal 0 px
  154.  
  155. # suspend screen after 10 minutes
  156. exec --no-startup-id xset dpms 600
  157.  
  158. # set wallpaper
  159. exec --no-startup-id feh --bg-fill /home/jonathan/Pictures/wallpapers/1391349268934.png
  160.  
  161. # enable volume buttons
  162. bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute
  163. bindsym XF86AudioLowerVolume exec amixer -q set Master 2dB- unmute
  164. bindsym XF86AudioMute exec amixer -q set Master toggle
  165.  
  166. # start network and sound applet
  167. exec --no-startup-id nm-applet
  168. exec --no-startup-id volumeicon
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement