i3config 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. # This file has been auto-generated by i3-config-wizard(1).
  2. # It will not be overwritten, so edit it as you like.
  3. #
  4. # Should you change your keyboard layout some time, delete
  5. # this file and re-run i3-config-wizard(1).
  6. #
  7. # i3 config file (v4)
  8. #
  9. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  10. gaps inner 25
  11. gaps outer 10
  12. new_window none
  13. set $mod Mod4
  14. # Font for window titles. Will also be used by the bar unless a different font
  15. # is used in the bar {} block below.
  16. font pango:monospace 8
  17. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  18. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  19. #font pango:DejaVu Sans Mono 8
  20. # Before i3 v4.8, we used to recommend this one as the default:
  21. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  22. # The font above is very space-efficient, that is, it looks good, sharp and
  23. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  24. # X core fonts rendering does not support right-to-left and this being a bitmap
  25. # font, it doesn’t scale on retina/hidpi displays.
  26. # Use Mouse+$mod to drag floating windows to their wanted position
  27. floating_modifier $mod
  28. # start a terminal
  29. #bindsym $mod+Return exec i3-sensible-terminal
  30. bindsym $mod+Return exec urxvt
  31. # kill focused window
  32. bindsym $mod+Shift+q kill
  33. # "Minimize windows"
  34. bindsym $mod+Shift+minus move scratchpad
  35. bindsym $mod+minus scratchpad show
  36. # start dmenu (a program launcher)
  37. #bindsym $mod+d exec dmenu_run
  38. # There also is the (new) i3-dmenu-desktop which only displays applications
  39. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  40. # installed.
  41. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  42. # change focus
  43. bindsym $mod+j focus left
  44. bindsym $mod+k focus down
  45. bindsym $mod+l focus up
  46. bindsym $mod+semicolon focus right
  47. # alternatively, you can use the cursor keys:
  48. bindsym $mod+Left focus left
  49. bindsym $mod+Down focus down
  50. bindsym $mod+Up focus up
  51. bindsym $mod+Right focus right
  52. # move focused window
  53. bindsym $mod+Shift+j move left
  54. bindsym $mod+Shift+k move down
  55. bindsym $mod+Shift+l move up
  56. bindsym $mod+Shift+semicolon move right
  57. # alternatively, you can use the cursor keys:
  58. bindsym $mod+Shift+Left move left
  59. bindsym $mod+Shift+Down move down
  60. bindsym $mod+Shift+Up move up
  61. bindsym $mod+Shift+Right move right
  62. # split in horizontal orientation
  63. bindsym $mod+h split h
  64. # split in vertical orientation
  65. bindsym $mod+v split v
  66. # enter fullscreen mode for the focused container
  67. bindsym $mod+f fullscreen toggle
  68. # change container layout (stacked, tabbed, toggle split)
  69. bindsym $mod+s layout stacking
  70. bindsym $mod+w layout tabbed
  71. bindsym $mod+e layout toggle split
  72. # toggle tiling / floating
  73. bindsym $mod+Shift+space floating toggle
  74. # change focus between tiling / floating windows
  75. bindsym $mod+space focus mode_toggle
  76. # focus the parent container
  77. bindsym $mod+a focus parent
  78. # focus the child container
  79. #bindsym $mod+d focus child
  80. workspace 1 output DisplayPort-0
  81. workspace 2 output DisplayPort-0
  82. workspace 3 output DisplayPort-0
  83. workspace 4 output DisplayPort-2
  84. workspace 5 output DisplayPort-2
  85. workspace 6 output DisplayPort-2
  86. workspace 7 output DisplayPort-3
  87. workspace 8 output DisplayPort-3
  88. workspace 9 output DisplayPort-3
  89. # switch to workspace
  90. bindsym $mod+1 workspace 1
  91. bindsym $mod+2 workspace 2
  92. bindsym $mod+3 workspace 3
  93. bindsym $mod+4 workspace 4
  94. bindsym $mod+5 workspace 5
  95. bindsym $mod+6 workspace 6
  96. bindsym $mod+7 workspace 7
  97. bindsym $mod+8 workspace 8
  98. bindsym $mod+9 workspace 9
  99. bindsym $mod+0 workspace 10
  100. # move focused container to workspace
  101. bindsym $mod+Shift+1 move container to workspace 1
  102. bindsym $mod+Shift+2 move container to workspace 2
  103. bindsym $mod+Shift+3 move container to workspace 3
  104. bindsym $mod+Shift+4 move container to workspace 4
  105. bindsym $mod+Shift+5 move container to workspace 5
  106. bindsym $mod+Shift+6 move container to workspace 6
  107. bindsym $mod+Shift+7 move container to workspace 7
  108. bindsym $mod+Shift+8 move container to workspace 8
  109. bindsym $mod+Shift+9 move container to workspace 9
  110. bindsym $mod+Shift+0 move container to workspace 10
  111. # reload the configuration file
  112. bindsym $mod+Shift+c reload
  113. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  114. bindsym $mod+Shift+r restart
  115. # exit i3 (logs you out of your X session)
  116. bindsym $mod+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'"
  117. # resize window (you can also use the mouse for that)
  118. mode "resize" {
  119. # These bindings trigger as soon as you enter the resize mode
  120. # Pressing left will shrink the window’s width.
  121. # Pressing right will grow the window’s width.
  122. # Pressing up will shrink the window’s height.
  123. # Pressing down will grow the window’s height.
  124. bindsym j resize shrink width 10 px or 10 ppt
  125. bindsym k resize grow height 10 px or 10 ppt
  126. bindsym l resize shrink height 10 px or 10 ppt
  127. bindsym semicolon resize grow width 10 px or 10 ppt
  128. # same bindings, but for the arrow keys
  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. # back to normal: Enter or Escape
  134. bindsym Return mode "default"
  135. bindsym Escape mode "default"
  136. }
  137. bindsym $mod+r mode "resize"
  138. # Start i3bar to display a workspace bar (plus the system information i3status
  139. # finds out, if available)
  140. bar {
  141. output DisplayPort-2
  142. status_command i3status
  143. #status_command exec /home/swatson/.config/i3/scripts/bar.sh
  144. colors {
  145. background #001014
  146. statusline #1da049
  147. }
  148. }