i3wm-config 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. # Font for window titles. Will also be used by the bar unless a different font
  12. # is used in the bar {} block below.
  13. font pango:monospace 8
  14. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  15. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  16. #font pango:DejaVu Sans Mono 8
  17. # Before i3 v4.8, we used to recommend this one as the default:
  18. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  19. # The font above is very space-efficient, that is, it looks good, sharp and
  20. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  21. # X core fonts rendering does not support right-to-left and this being a bitmap
  22. # font, it doesn't scale on retina/hidpi displays.
  23. # use these keys for focus, movement, and resize directions when reaching for
  24. # the arrows is not convenient
  25. set $up l
  26. set $down k
  27. set $left j
  28. set $right semicolon
  29. # use Mouse+Mod4 to drag floating windows to their wanted position
  30. floating_modifier Mod4
  31. # start a terminal
  32. bindsym Mod4+Return exec xfce4-terminal
  33. # kill focused window
  34. bindsym Mod4+Shift+q kill
  35. # start dmenu (a program launcher)
  36. bindsym Mod4+d exec dmenu_run
  37. # There also is the (new) i3-dmenu-desktop which only displays applications
  38. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  39. # installed.
  40. # bindsym Mod4+d exec --no-startup-id i3-dmenu-desktop
  41. # change focus
  42. bindsym Mod4+$left focus left
  43. bindsym Mod4+$down focus down
  44. bindsym Mod4+$up focus up
  45. bindsym Mod4+$right focus right
  46. # alternatively, you can use the cursor keys:
  47. bindsym Mod4+Left focus left
  48. bindsym Mod4+Down focus down
  49. bindsym Mod4+Up focus up
  50. bindsym Mod4+Right focus right
  51. # move focused window
  52. bindsym Mod4+Shift+$left move left
  53. bindsym Mod4+Shift+$down move down
  54. bindsym Mod4+Shift+$up move up
  55. bindsym Mod4+Shift+$right move right
  56. # alternatively, you can use the cursor keys:
  57. bindsym Mod4+Shift+Left move left
  58. bindsym Mod4+Shift+Down move down
  59. bindsym Mod4+Shift+Up move up
  60. bindsym Mod4+Shift+Right move right
  61. # split in horizontal orientation
  62. bindsym Mod4+h split h
  63. # split in vertical orientation
  64. bindsym Mod4+v split v
  65. # enter fullscreen mode for the focused container
  66. bindsym Mod4+f fullscreen toggle
  67. # change container layout (stacked, tabbed, toggle split)
  68. bindsym Mod4+s layout stacking
  69. bindsym Mod4+w layout tabbed
  70. bindsym Mod4+e layout toggle split
  71. # toggle tiling / floating
  72. bindsym Mod4+Shift+space floating toggle
  73. # change focus between tiling / floating windows
  74. bindsym Mod4+space focus mode_toggle
  75. # focus the parent container
  76. bindsym Mod4+a focus parent
  77. # focus the child container
  78. #bindsym Mod4+d focus child
  79. # move the currently focused window to the scratchpad
  80. bindsym Mod4+Shift+minus move scratchpad
  81. # Show the next scratchpad window or hide the focused scratchpad window.
  82. # If there are multiple scratchpad windows, this command cycles through them.
  83. bindsym Mod4+minus scratchpad show
  84. # Define names for default workspaces for which we configure key bindings later on.
  85. # We use variables to avoid repeating the names in multiple places.
  86. set $ws1 "1"
  87. set $ws2 "2"
  88. set $ws3 "3"
  89. set $ws4 "4"
  90. set $ws5 "5"
  91. set $ws6 "6"
  92. set $ws7 "7"
  93. set $ws8 "8"
  94. set $ws9 "9"
  95. set $ws10 "10"
  96. # switch to workspace
  97. bindsym Mod4+1 workspace $ws1
  98. bindsym Mod4+2 workspace $ws2
  99. bindsym Mod4+3 workspace $ws3
  100. bindsym Mod4+4 workspace $ws4
  101. bindsym Mod4+5 workspace $ws5
  102. bindsym Mod4+6 workspace $ws6
  103. bindsym Mod4+7 workspace $ws7
  104. bindsym Mod4+8 workspace $ws8
  105. bindsym Mod4+9 workspace $ws9
  106. bindsym Mod4+0 workspace $ws10
  107. # move focused container to workspace
  108. bindsym Mod4+Shift+1 move container to workspace $ws1
  109. bindsym Mod4+Shift+2 move container to workspace $ws2
  110. bindsym Mod4+Shift+3 move container to workspace $ws3
  111. bindsym Mod4+Shift+4 move container to workspace $ws4
  112. bindsym Mod4+Shift+5 move container to workspace $ws5
  113. bindsym Mod4+Shift+6 move container to workspace $ws6
  114. bindsym Mod4+Shift+7 move container to workspace $ws7
  115. bindsym Mod4+Shift+8 move container to workspace $ws8
  116. bindsym Mod4+Shift+9 move container to workspace $ws9
  117. bindsym Mod4+Shift+0 move container to workspace $ws10
  118. # reload the configuration file
  119. bindsym Mod4+Shift+c reload
  120. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  121. bindsym Mod4+Shift+r restart
  122. # exit i3 (logs you out of your X session)
  123. 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'"
  124. # resize window (you can also use the mouse for that)
  125. mode "resize" {
  126. # These bindings trigger as soon as you enter the resize mode
  127. # Pressing left will shrink the window’s width.
  128. # Pressing right will grow the window’s width.
  129. # Pressing up will shrink the window’s height.
  130. # Pressing down will grow the window’s height.
  131. bindsym $left resize shrink width 10 px or 10 ppt
  132. bindsym $down resize grow height 10 px or 10 ppt
  133. bindsym $up resize shrink height 10 px or 10 ppt
  134. bindsym $right resize grow width 10 px or 10 ppt
  135. # same bindings, but for the arrow keys
  136. bindsym Left resize shrink width 10 px or 10 ppt
  137. bindsym Down resize grow height 10 px or 10 ppt
  138. bindsym Up resize shrink height 10 px or 10 ppt
  139. bindsym Right resize grow width 10 px or 10 ppt
  140. # back to normal: Enter or Escape or Mod4+r
  141. bindsym Return mode "default"
  142. bindsym Escape mode "default"
  143. bindsym Mod4+r mode "default"
  144. }
  145. bindsym Mod4+r mode "resize"
  146. # Start i3bar to display a workspace bar (plus the system information i3status
  147. # finds out, if available)
  148. bar {
  149. status_command i3status
  150. colors {
  151. background #000000
  152. statusline #06ff00
  153. separator #1200ff
  154. # border backgr. text
  155. focused_workspace #ffba00 #555555 #ffba00
  156. active_workspace #333333 #5f676a #ffffff
  157. inactive_workspace #333333 #222222 #888888
  158. urgent_workspace #2f343a #900000 #ffffff
  159. }
  160. }
  161. for_window [class="^.*"] border pixel 3
  162. gaps inner 5
  163. gaps outer 5
  164. exec --no-startup-id feh --bg-scale /home/slackjeff/Pictures/wallpaper/wallpaper.jpg
  165. client.focused #555555 #fffc00 #ffffff #a300cc #cc0056