Advertisement
Guest User

Untitled

a guest
Oct 5th, 2018
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.08 KB | None | 0 0
  1. # i3 config file (v4)
  2. #
  3. # Please see https://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:monospace 12
  15.  
  16. # Pulse Audio controls
  17. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  18. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  19. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  20.  
  21. # microphone on/off
  22. bindsym XF86AudioMicMute exec amixer set Capture toggle
  23.  
  24. # Sreen brightness controls
  25. bindsym XF86MonBrightnessUp exec xbacklight -inc 8 # increase screen brightness
  26. bindsym XF86MonBrightnessDown exec xbacklight -dec 8 # decrease screen brightness
  27.  
  28.  
  29. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  30. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  31. #font pango:DejaVu Sans Mono 8
  32.  
  33. # Before i3 v4.8, we used to recommend this one as the default:
  34. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  35. # The font above is very space-efficient, that is, it looks good, sharp and
  36. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  37. # X core fonts rendering does not support right-to-left and this being a bitmap
  38. # font, it doesn’t scale on retina/hidpi displays.
  39.  
  40. # use these keys for focus, movement, and resize directions when reaching for
  41. # the arrows is not convenient
  42. set $up l
  43. set $down k
  44. set $left j
  45. set $right semicolon
  46.  
  47. # use Mouse+Mod1 to drag floating windows to their wanted position
  48. floating_modifier Mod1
  49.  
  50. # start a terminal
  51. bindsym Mod1+Return exec i3-sensible-terminal
  52.  
  53. # kill focused window
  54. bindsym Mod1+Shift+q kill
  55.  
  56. # start dmenu (a program launcher)
  57. bindsym Mod1+d exec dmenu_run
  58. # There also is the (new) i3-dmenu-desktop which only displays applications
  59. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  60. # installed.
  61. # bindsym Mod1+d exec --no-startup-id i3-dmenu-desktop
  62.  
  63. # change focus
  64. bindsym Mod1+$left focus left
  65. bindsym Mod1+$down focus down
  66. bindsym Mod1+$up focus up
  67. bindsym Mod1+$right focus right
  68.  
  69. # alternatively, you can use the cursor keys:
  70. bindsym Mod1+Left focus left
  71. bindsym Mod1+Down focus down
  72. bindsym Mod1+Up focus up
  73. bindsym Mod1+Right focus right
  74.  
  75. # move focused window
  76. bindsym Mod1+Shift+$left move left
  77. bindsym Mod1+Shift+$down move down
  78. bindsym Mod1+Shift+$up move up
  79. bindsym Mod1+Shift+$right move right
  80.  
  81. # alternatively, you can use the cursor keys:
  82. bindsym Mod1+Shift+Left move left
  83. bindsym Mod1+Shift+Down move down
  84. bindsym Mod1+Shift+Up move up
  85. bindsym Mod1+Shift+Right move right
  86.  
  87. # split in horizontal orientation
  88. bindsym Mod1+h split h
  89.  
  90. # split in vertical orientation
  91. bindsym Mod1+v split v
  92.  
  93. # enter fullscreen mode for the focused container
  94. bindsym Mod1+f fullscreen toggle
  95.  
  96. # change container layout (stacked, tabbed, toggle split)
  97. bindsym Mod1+s layout stacking
  98. bindsym Mod1+w layout tabbed
  99. bindsym Mod1+e layout toggle split
  100.  
  101. # toggle tiling / floating
  102. bindsym Mod1+Shift+space floating toggle
  103.  
  104. # change focus between tiling / floating windows
  105. bindsym Mod1+space focus mode_toggle
  106.  
  107. # focus the parent container
  108. bindsym Mod1+a focus parent
  109.  
  110. # focus the child container
  111. #bindsym Mod1+d focus child
  112.  
  113. # move the currently focused window to the scratchpad
  114. bindsym Mod1+Shift+minus move scratchpad
  115.  
  116. # Show the next scratchpad window or hide the focused scratchpad window.
  117. # If there are multiple scratchpad windows, this command cycles through them.
  118. bindsym Mod1+minus scratchpad show
  119.  
  120. # switch to workspace
  121. bindsym Mod1+1 workspace 1
  122. bindsym Mod1+2 workspace 2
  123. bindsym Mod1+3 workspace 3
  124. bindsym Mod1+4 workspace 4
  125. bindsym Mod1+5 workspace 5
  126. bindsym Mod1+6 workspace 6
  127. bindsym Mod1+7 workspace 7
  128. bindsym Mod1+8 workspace 8
  129. bindsym Mod1+9 workspace 9
  130. bindsym Mod1+0 workspace 10
  131.  
  132. # move focused container to workspace
  133. bindsym Mod1+Shift+1 move container to workspace 1
  134. bindsym Mod1+Shift+2 move container to workspace 2
  135. bindsym Mod1+Shift+3 move container to workspace 3
  136. bindsym Mod1+Shift+4 move container to workspace 4
  137. bindsym Mod1+Shift+5 move container to workspace 5
  138. bindsym Mod1+Shift+6 move container to workspace 6
  139. bindsym Mod1+Shift+7 move container to workspace 7
  140. bindsym Mod1+Shift+8 move container to workspace 8
  141. bindsym Mod1+Shift+9 move container to workspace 9
  142. bindsym Mod1+Shift+0 move container to workspace 10
  143.  
  144. # reload the configuration file
  145. bindsym Mod1+Shift+c reload
  146. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  147. bindsym Mod1+Shift+r restart
  148. # exit i3 (logs you out of your X session)
  149. 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'"
  150.  
  151. # resize window (you can also use the mouse for that)
  152. mode "resize" {
  153. # These bindings trigger as soon as you enter the resize mode
  154.  
  155. # Pressing left will shrink the window’s width.
  156. # Pressing right will grow the window’s width.
  157. # Pressing up will shrink the window’s height.
  158. # Pressing down will grow the window’s height.
  159. bindsym $left resize shrink width 10 px or 10 ppt
  160. bindsym $down resize grow height 10 px or 10 ppt
  161. bindsym $up resize shrink height 10 px or 10 ppt
  162. bindsym $right resize grow width 10 px or 10 ppt
  163.  
  164. # same bindings, but for the arrow keys
  165. bindsym Left resize shrink width 10 px or 10 ppt
  166. bindsym Down resize grow height 10 px or 10 ppt
  167. bindsym Up resize shrink height 10 px or 10 ppt
  168. bindsym Right resize grow width 10 px or 10 ppt
  169.  
  170. # back to normal: Enter or Escape
  171. bindsym Return mode "default"
  172. bindsym Escape mode "default"
  173. }
  174.  
  175. bindsym Mod1+r mode "resize"
  176.  
  177. # Start i3bar to display a workspace bar (plus the system information i3status
  178. # finds out, if available)
  179. bar {
  180. status_command i3status
  181. }
  182.  
  183. #######################################################################
  184. # automatically start i3-config-wizard to offer the user to create a
  185. # keysym-based config which used their favorite modifier (alt or windows)
  186. #
  187. # i3-config-wizard will not launch if there already is a config file
  188. # in ~/.i3/config.
  189. #
  190. # Please remove the following exec line:
  191. #######################################################################
  192.  
  193. # natural trackpad scrolling
  194. # when I put my laptop to sleep the scroll stops working.
  195. # even if I disable the script this problem still happens
  196. # I don't think the script causes the problem.
  197. # Probably something isn't being set correctly after the computer comes back from sleep mode.
  198. exec ~/.i3/scripts/inverse-scroll.sh
  199.  
  200. # exec i3-config-wizard
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement