config 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. # i3 config file (v4)
  2. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  3. #
  4. # This config file uses keycodes (bindsym) and was written for the QWERTY
  5. # layout.
  6. #
  7. # To get a config file with the same key positions, but for your current
  8. # layout, use the i3-config-wizard
  9. #
  10. # Font for window titles. Will also be used by the bar unless a different font
  11. # is used in the bar {} block below.
  12. font pango:monospace 8
  13. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  14. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  15. #font pango:DejaVu Sans Mono 8
  16. # Before i3 v4.8, we used to recommend this one as the default:
  17. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  18. # The font above is very space-efficient, that is, it looks good, sharp and
  19. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  20. # X core fonts rendering does not support right-to-left and this being a bitmap
  21. # font, it doesn’t scale on retina/hidpi displays.
  22. # use these keys for focus, movement, and resize directions when reaching for
  23. # the arrows is not convenient
  24. set $up k
  25. set $down j
  26. set $left h
  27. set $right l
  28. # use Mouse+Mod4 to drag floating windows to their wanted position
  29. floating_modifier Mod4
  30. # kill focused window
  31. bindsym Mod4+Shift+q kill
  32. bindsym Mod1+F4 kill
  33. # change focus
  34. bindsym Mod4+$left focus left
  35. bindsym Mod4+$down focus down
  36. bindsym Mod4+$up focus up
  37. bindsym Mod4+$right focus right
  38. # alternatively, you can use the cursor keys:
  39. bindsym Mod4+Left focus left
  40. bindsym Mod4+Down focus down
  41. bindsym Mod4+Up focus up
  42. bindsym Mod4+Right focus right
  43. # move focused window - yes, vim bindings.
  44. bindsym Mod4+Shift+$left move left
  45. bindsym Mod4+Shift+$down move down
  46. bindsym Mod4+Shift+$up move up
  47. bindsym Mod4+Shift+$right move right
  48. # alternatively, you can use the cursor keys:
  49. bindsym Mod4+Shift+Left move left
  50. bindsym Mod4+Shift+Down move down
  51. bindsym Mod4+Shift+Up move up
  52. bindsym Mod4+Shift+Right move right
  53. # split in horizontal orientation
  54. bindsym Mod4+shift+v split h
  55. # split in vertical orientation
  56. bindsym Mod4+v split v
  57. # enter fullscreen mode for the focused container
  58. bindsym Mod4+f fullscreen toggle
  59. # change container layout (stacked, tabbed, toggle split)
  60. bindsym Mod4+s layout stacking
  61. bindsym Mod4+w layout tabbed
  62. bindsym Mod4+Shift+w layout toggle split
  63. # toggle tiling / floating
  64. bindsym Mod4+Shift+space floating toggle
  65. # change focus between tiling / floating windows
  66. bindsym Mod4+space focus mode_toggle
  67. # focus the parent container
  68. bindsym Mod4+a focus parent
  69. # focus the child container
  70. bindsym Mod4+d focus child
  71. # move the currently focused window to the scratchpad
  72. bindsym Mod4+Shift+minus move scratchpad
  73. # Show the next scratchpad window or hide the focused scratchpad window.
  74. # If there are multiple scratchpad windows, this command cycles through them.
  75. bindsym Mod4+minus scratchpad show
  76. # switch to workspace
  77. bindsym Mod4+1 workspace 1
  78. bindsym Mod4+2 workspace 2
  79. bindsym Mod4+3 workspace 3
  80. bindsym Mod4+4 workspace 4
  81. bindsym Mod4+5 workspace 5
  82. bindsym Mod4+6 workspace 6
  83. bindsym Mod4+7 workspace 7
  84. bindsym Mod4+8 workspace 8
  85. bindsym Mod4+9 workspace 9
  86. bindsym Mod4+0 workspace 10
  87. bindsym Mod4+Tab workspace next
  88. bindsym Mod4+Shift+Tab workspace prev
  89. # move focused container to workspace
  90. bindsym Mod4+Shift+1 move container to workspace 1
  91. bindsym Mod4+Shift+2 move container to workspace 2
  92. bindsym Mod4+Shift+3 move container to workspace 3
  93. bindsym Mod4+Shift+4 move container to workspace 4
  94. bindsym Mod4+Shift+5 move container to workspace 5
  95. bindsym Mod4+Shift+6 move container to workspace 6
  96. bindsym Mod4+Shift+7 move container to workspace 7
  97. bindsym Mod4+Shift+8 move container to workspace 8
  98. bindsym Mod4+Shift+9 move container to workspace 9
  99. bindsym Mod4+Shift+0 move container to workspace 10
  100. # resize window (you can also use the mouse for that)
  101. mode "resize" {
  102. # These bindings trigger as soon as you enter the resize mode
  103. # Pressing left will shrink the window’s width.
  104. # Pressing right will grow the window’s width.
  105. # Pressing up will shrink the window’s height.
  106. # Pressing down will grow the window’s height.
  107. bindsym $left resize shrink width 10 px or 10 ppt
  108. bindsym $down resize shrink height 10 px or 10 ppt
  109. bindsym $up resize grow height 10 px or 10 ppt
  110. bindsym $right resize grow width 10 px or 10 ppt
  111. # same bindings, but for the arrow keys
  112. bindsym Left resize shrink width 10 px or 10 ppt
  113. bindsym Down resize shrink height 10 px or 10 ppt
  114. bindsym Up resize grow height 10 px or 10 ppt
  115. bindsym Right resize grow width 10 px or 10 ppt
  116. # back to normal: Enter or Escape
  117. bindsym Return mode "default"
  118. bindsym Escape mode "default"
  119. }
  120. bindsym Mod4+r mode "resize"
  121. # reload the configuration file
  122. bindsym Mod4+Shift+c reload
  123. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  124. bindsym Mod4+Shift+r restart
  125. # exit i3 (logs you out of your X session)
  126. bindsym Mod4+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'"
  127. # program shortcuts
  128. # bindsym Mod4+Return exec i3-sensible-terminal
  129. bindsym Mod4+Shift+Return exec xterm
  130. bindsym Mod4+Return exec st
  131. bindsym Mod4+Shift+f exec firefox
  132. bindsym Mod4+Shift+m exec midori
  133. bindsym Mod4+e exec thunar
  134. #I wonder how I could map this to other buttons
  135. #bindsym Mod3+Up exec --no-startup-id pactl set-sink-volume 0 +10%
  136. ##bindsym Mod2+Up exec "pactl set-sink-volume 0 +10%"
  137. #bindsym Mod1+Up exec "pactl set-sink-volume 0 +10%"
  138. #bindsym Mod3+F9 exec "pactl set-sink-volume 0 +10%"
  139. #bindsym Mod3+Down exec "pactl set-sink-volume 0 -10%"
  140. #bindsym Mod3+F8 exec "pactl set-sink-volume 0 -10%"
  141. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +10%
  142. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -10%
  143. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 1 toggle
  144. new_window 1pixel
  145. # just some cosmetic options
  146. #class border backgr. text indicator child_border
  147. client.background #222222 #222222
  148. client.focused #FFDD11 #222222 #FFFFFF #FFDD11 #FFDD11
  149. #toggle colors
  150. bindysm Mod4+c exec sed -En 's/^client.background #[A-Fa-f-1-9]{6} #[A-Fa-f-1-9]{6}/client.background #222222 #222222/gp' ~/.i3/config | sed -Eni 's/client.focused #[A-Fa-f-1-9]{6} #[A-Fa-f-1-9]{6} #[A-Fa-f-1-9]{6} #[A-Fa-f-1-9]{6} ##[A-Fa-f-1-9]{6}/client.focused #FF1111 #222222 #FFFFFF #FF1111 #FF1111/gp'; reload
  151. bindysm Mod4+ctrl+c exec sed -En 's/^client.background #[A-Fa-f-1-9]{6} #[A-Fa-f-1-9]{6}/client.background #FFFFFF #FFFFFF/gp' ~/.i3/config | sed -Eni 's/client.focused #[A-Fa-f-1-9]{6} #[A-Fa-f-1-9]{6} #[A-Fa-f-1-9]{6} #[A-Fa-f-1-9]{6} ##[A-Fa-f-1-9]{6}/client.focused #001111 #222222 #000000 #001111 #001111/gp'; reload
  152. exec --no-startup-id feh --randomize --bg-fill ~Wallpapers/* &