config 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. # i3 config file (v4)
  2. #
  3. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  4. set $mod Mod4
  5. # Font for window titles. Will also be used by the bar unless a different font
  6. # is used in the bar {} block below.
  7. # font pango:monospace 12
  8. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  9. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  10. font pango:DejaVu Sans Mono 14
  11. # use these keys for focus, movement, and resize directions when reaching for
  12. # the arrows is not convenient
  13. set $up n
  14. set $down t
  15. set $left h
  16. set $right s
  17. # use Mouse+Mod4 to drag floating windows to their wanted position
  18. floating_modifier $mod
  19. # start a terminal
  20. bindsym $mod+Return exec alacritty
  21. # kill focused window
  22. bindsym $mod+Shift+w kill
  23. # start dmenu (a program launcher)
  24. bindsym $mod+Shift+d exec --no-startup-id dmenu_run
  25. # start dmenu for desktop applications
  26. bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  27. # adjust volume
  28. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +2dB
  29. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -2dB
  30. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
  31. # adjust luminosity
  32. set $lum_step 5
  33. bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc $lum_step
  34. bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec $lum_step
  35. # change focus
  36. bindsym $mod+$left focus left
  37. bindsym $mod+$down focus down
  38. bindsym $mod+$up focus up
  39. bindsym $mod+$right focus right
  40. # alternatively, you can use the cursor keys:
  41. bindsym $mod+Left focus left
  42. bindsym $mod+Down focus down
  43. bindsym $mod+Up focus up
  44. bindsym $mod+Right focus right
  45. # move focused window
  46. bindsym $mod+Shift+$left move left
  47. bindsym $mod+Shift+$down move down
  48. bindsym $mod+Shift+$up move up
  49. bindsym $mod+Shift+$right move right
  50. # alternatively, you can use the cursor keys:
  51. bindsym $mod+Shift+Left move left
  52. bindsym $mod+Shift+Down move down
  53. bindsym $mod+Shift+Up move up
  54. bindsym $mod+Shift+Right move right
  55. # split in horizontal orientation
  56. bindsym $mod+v split h
  57. # split in vertical orientation
  58. bindsym $mod+minus split v
  59. # enter fullscreen mode for the focused container
  60. bindsym $mod+f fullscreen toggle
  61. # change container layout (stacked, tabbed, toggle split)
  62. bindsym $mod+o layout stacking
  63. bindsym $mod+comma layout tabbed
  64. bindsym $mod+period layout toggle split
  65. # toggle tiling / floating
  66. bindsym $mod+Shift+space floating toggle
  67. # change focus between tiling / floating windows
  68. bindsym $mod+space focus mode_toggle
  69. # focus the parent container
  70. bindsym $mod+a focus parent
  71. # focus the child container
  72. bindsym $mod+e focus child
  73. # move the currently focused window to the scratchpad
  74. bindsym $mod+Shift+semicolon move scratchpad
  75. # Show the next scratchpad window or hide the focused scratchpad window.
  76. # If there are multiple scratchpad windows, this command cycles through them.
  77. bindsym $mod+semicolon scratchpad show
  78. # Workspace bindings
  79. set $work1 g
  80. set $work2 c
  81. set $work3 r
  82. set $work4 l
  83. set $work5 parenleft
  84. set $work6 equal
  85. set $work7 asterisk
  86. set $work8 parenright
  87. set $work9 plus
  88. set $work10 bracketright
  89. # Number keypad bindings
  90. set $KP_0 KP_Insert
  91. set $KP_1 KP_End
  92. set $KP_2 KP_Down
  93. set $KP_3 KP_Next
  94. set $KP_4 KP_Left
  95. set $KP_5 KP_Begin
  96. set $KP_6 KP_Right
  97. set $KP_7 KP_Home
  98. set $KP_8 KP_Up
  99. set $KP_9 KP_Prior
  100. set $KP_Decimal KP_Delete
  101. # switch to workspace
  102. bindsym $mod+$work1 workspace 1
  103. bindsym $mod+$work2 workspace 2
  104. bindsym $mod+$work3 workspace 3
  105. bindsym $mod+$work4 workspace 4
  106. bindsym $mod+$work5 workspace 5
  107. bindsym $mod+$work6 workspace 6
  108. bindsym $mod+$work7 workspace 7
  109. bindsym $mod+$work8 workspace 8
  110. bindsym $mod+$work9 workspace 9
  111. bindsym $mod+$work10 workspace 10
  112. # switch to workspace with numpad
  113. bindsym $KP_1 workspace 1
  114. bindsym $KP_2 workspace 2
  115. bindsym $KP_3 workspace 3
  116. bindsym $KP_4 workspace 4
  117. bindsym $KP_5 workspace 5
  118. bindsym $KP_6 workspace 6
  119. bindsym $KP_7 workspace 7
  120. bindsym $KP_8 workspace 8
  121. bindsym $KP_9 workspace 9
  122. bindsym $KP_0 workspace 10
  123. # move focused container to workspace
  124. bindsym $mod+Shift+$work1 move container to workspace 1
  125. bindsym $mod+Shift+$work2 move container to workspace 2
  126. bindsym $mod+Shift+$work3 move container to workspace 3
  127. bindsym $mod+Shift+$work4 move container to workspace 4
  128. bindsym $mod+Shift+$work5 move container to workspace 5
  129. bindsym $mod+Shift+$work6 move container to workspace 6
  130. bindsym $mod+Shift+$work7 move container to workspace 7
  131. bindsym $mod+Shift+$work8 move container to workspace 8
  132. bindsym $mod+Shift+$work9 move container to workspace 9
  133. bindsym $mod+Shift+$work10 move container to workspace 10
  134. # move focused container to workspace with numpad
  135. bindsym $mod+$KP_1 move container to workspace 1
  136. bindsym $mod+$KP_2 move container to workspace 2
  137. bindsym $mod+$KP_3 move container to workspace 3
  138. bindsym $mod+$KP_4 move container to workspace 4
  139. bindsym $mod+$KP_5 move container to workspace 5
  140. bindsym $mod+$KP_6 move container to workspace 6
  141. bindsym $mod+$KP_7 move container to workspace 7
  142. bindsym $mod+$KP_8 move container to workspace 8
  143. bindsym $mod+$KP_9 move container to workspace 9
  144. bindsym $mod+$KP_0 move container to workspace 10
  145. # reload the configuration file
  146. bindsym $mod+Shift+y reload
  147. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  148. bindsym $mod+Shift+x restart
  149. # exit i3 (logs you out of your X session)
  150. bindsym $mod+Escape 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'"
  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. # Pressing left will shrink the window’s width.
  155. # Pressing right will grow the window’s width.
  156. # Pressing up will shrink the window’s height.
  157. # Pressing down will grow the window’s height.
  158. bindsym $left resize shrink width 10 px or 10 ppt
  159. bindsym $down resize grow height 10 px or 10 ppt
  160. bindsym $up resize shrink height 10 px or 10 ppt
  161. bindsym $right resize grow width 10 px or 10 ppt
  162. # same bindings, but for the arrow keys
  163. bindsym Left resize shrink width 10 px or 10 ppt
  164. bindsym Down resize grow height 10 px or 10 ppt
  165. bindsym Up resize shrink height 10 px or 10 ppt
  166. bindsym Right resize grow width 10 px or 10 ppt
  167. # back to normal: Enter or Escape
  168. bindsym Return mode "default"
  169. bindsym Escape mode "default"
  170. }
  171. bindsym $mod+b mode "resize"
  172. # windows style
  173. hide_edge_borders smart
  174. # Start i3bar to display a workspace bar (plus some system information)
  175. bar {
  176. status_command i3status
  177. mode hide
  178. hidden_state hide
  179. modifier $mod
  180. separator_symbol "·"
  181. }
  182. # Background
  183. exec --no-startup-id feh --bg-fill ~/Pictures/Backgrounds/ubuntu_grey.jpg