config 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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 8
  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 8
  11. # use these keys for focus, movement, and resize directions when reaching for
  12. # the arrows is not convenient
  13. set $up k
  14. set $down j
  15. set $left h
  16. set $right l
  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 i3-sensible-terminal
  21. # kill focused window
  22. bindsym $mod+Shift+t kill
  23. # start dmenu (a program launcher)
  24. bindsym $mod+d exec dmenu_run
  25. # There also is the (new) i3-dmenu-desktop which only displays applications
  26. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  27. # installed.
  28. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  29. # change focus
  30. bindsym $mod+$left focus left
  31. bindsym $mod+$down focus down
  32. bindsym $mod+$up focus up
  33. bindsym $mod+$right focus right
  34. # alternatively, you can use the cursor keys:
  35. bindsym $mod+Left focus left
  36. bindsym $mod+Down focus down
  37. bindsym $mod+Up focus up
  38. bindsym $mod+Right focus right
  39. # move focused window
  40. bindsym $mod+Shift+$left move left
  41. bindsym $mod+Shift+$down move down
  42. bindsym $mod+Shift+$up move up
  43. bindsym $mod+Shift+$right move right
  44. # alternatively, you can use the cursor keys:
  45. bindsym $mod+Shift+Left move left
  46. bindsym $mod+Shift+Down move down
  47. bindsym $mod+Shift+Up move up
  48. bindsym $mod+Shift+Right move right
  49. # split in horizontal orientation
  50. bindsym $mod+v split h
  51. # split in vertical orientation
  52. bindsym $mod+minus split v
  53. # enter fullscreen mode for the focused container
  54. bindsym $mod+f fullscreen toggle
  55. # change container layout (stacked, tabbed, toggle split)
  56. bindsym $mod+o layout stacking
  57. bindsym $mod+comma layout tabbed
  58. bindsym $mod+period layout toggle split
  59. # toggle tiling / floating
  60. bindsym $mod+Shift+space floating toggle
  61. # change focus between tiling / floating windows
  62. bindsym $mod+space focus mode_toggle
  63. # focus the parent container
  64. bindsym $mod+a focus parent
  65. # focus the child container
  66. bindsym $mod+e focus child
  67. # move the currently focused window to the scratchpad
  68. bindsym $mod+Shift+semicolon move scratchpad
  69. # Show the next scratchpad window or hide the focused scratchpad window.
  70. # If there are multiple scratchpad windows, this command cycles through them.
  71. bindsym $mod+semicolon scratchpad show
  72. # switch to workspace
  73. bindsym $mod+ampersand workspace 1
  74. bindsym $mod+bracketleft workspace 2
  75. bindsym $mod+braceleft workspace 3
  76. bindsym $mod+braceright workspace 4
  77. bindsym $mod+parenleft workspace 5
  78. bindsym $mod+equal workspace 6
  79. bindsym $mod+asterisk workspace 7
  80. bindsym $mod+parenright workspace 8
  81. bindsym $mod+plus workspace 9
  82. bindsym $mod+bracketright workspace 10
  83. # switch to workspace with numpad
  84. bindsym $mod+1 workspace 1
  85. bindsym $mod+2 workspace 2
  86. bindsym $mod+3 workspace 3
  87. bindsym $mod+4 workspace 4
  88. bindsym $mod+5 workspace 5
  89. bindsym $mod+6 workspace 6
  90. bindsym $mod+7 workspace 7
  91. bindsym $mod+8 workspace 8
  92. bindsym $mod+9 workspace 9
  93. bindsym $mod+0 workspace 10
  94. # move focused container to workspace
  95. bindsym $mod+Shift+ampersand move container to workspace 1
  96. bindsym $mod+Shift+bracketleft move container to workspace 2
  97. bindsym $mod+Shift+braceleft move container to workspace 3
  98. bindsym $mod+Shift+braceright move container to workspace 4
  99. bindsym $mod+Shift+parenleft move container to workspace 5
  100. bindsym $mod+Shift+equal move container to workspace 6
  101. bindsym $mod+Shift+asterisk move container to workspace 7
  102. bindsym $mod+Shift+parenright move container to workspace 8
  103. bindsym $mod+Shift+plus move container to workspace 9
  104. bindsym $mod+Shift+bracketright move container to workspace 10
  105. # move focused container to workspace with numpad
  106. bindsym $mod+Shift+1 move container to workspace 1
  107. bindsym $mod+Shift+2 move container to workspace 2
  108. bindsym $mod+Shift+3 move container to workspace 3
  109. bindsym $mod+Shift+4 move container to workspace 4
  110. bindsym $mod+Shift+5 move container to workspace 5
  111. bindsym $mod+Shift+6 move container to workspace 6
  112. bindsym $mod+Shift+7 move container to workspace 7
  113. bindsym $mod+Shift+8 move container to workspace 8
  114. bindsym $mod+Shift+9 move container to workspace 9
  115. bindsym $mod+Shift+0 move container to workspace 10
  116. # reload the configuration file
  117. bindsym $mod+Shift+c reload
  118. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  119. bindsym $mod+Shift+r restart
  120. # exit i3 (logs you out of your X session)
  121. 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'"
  122. # resize window (you can also use the mouse for that)
  123. mode "resize" {
  124. # These bindings trigger as soon as you enter the resize mode
  125. # Pressing left will shrink the window’s width.
  126. # Pressing right will grow the window’s width.
  127. # Pressing up will shrink the window’s height.
  128. # Pressing down will grow the window’s height.
  129. bindsym $left resize shrink width 10 px or 10 ppt
  130. bindsym $down resize grow height 10 px or 10 ppt
  131. bindsym $up resize shrink height 10 px or 10 ppt
  132. bindsym $right resize grow width 10 px or 10 ppt
  133. # same bindings, but for the arrow keys
  134. bindsym Left resize shrink width 10 px or 10 ppt
  135. bindsym Down resize grow height 10 px or 10 ppt
  136. bindsym Up resize shrink height 10 px or 10 ppt
  137. bindsym Right resize grow width 10 px or 10 ppt
  138. # back to normal: Enter or Escape
  139. bindsym Return mode "default"
  140. bindsym Escape mode "default"
  141. }
  142. bindsym $mod+g mode "resize"
  143. # Start i3bar to display a workspace bar (plus the system information i3status
  144. # finds out, if available)
  145. bar {
  146. status_command i3status
  147. }