config 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. set $mod Mod4
  2. # Font for window titles. Will also be used by the bar unless a different font
  3. # is used in the bar {} block below. ISO 10646 = Unicode
  4. font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  5. # The font above is very space-efficient, that is, it looks good, sharp and
  6. # clear in small sizes. However, if you need a lot of unicode glyphs or
  7. # right-to-left text rendering, you should instead use pango for rendering and
  8. # chose a FreeType font, such as:
  9. # font pango:DejaVu Sans Mono 10
  10. # Use Mouse+$mod to drag floating windows to their wanted position
  11. floating_modifier $mod
  12. # start a terminal
  13. bindsym $mod+Return exec i3-sensible-terminal
  14. # kill focused window
  15. bindsym $mod+Shift+q kill
  16. # start dmenu (a program launcher)
  17. # bindsym $mod+space exec dmenu_run
  18. # There also is the (new) i3-dmenu-desktop which only displays applications
  19. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  20. # installed.
  21. bindsym $mod+space exec --no-startup-id i3-dmenu-desktop
  22. # change focus
  23. bindsym $mod+h focus left
  24. bindsym $mod+j focus down
  25. bindsym $mod+k focus up
  26. bindsym $mod+l focus right
  27. # alternatively, you can use the cursor keys:
  28. bindsym $mod+Left focus left
  29. bindsym $mod+Down focus down
  30. bindsym $mod+Up focus up
  31. bindsym $mod+Right focus right
  32. # move focused window
  33. bindsym $mod+Shift+h move left
  34. bindsym $mod+Shift+j move down
  35. bindsym $mod+Shift+k move up
  36. bindsym $mod+Shift+l move right
  37. # alternatively, you can use the cursor keys:
  38. bindsym $mod+Shift+Left move left
  39. bindsym $mod+Shift+Down move down
  40. bindsym $mod+Shift+Up move up
  41. bindsym $mod+Shift+Right move right
  42. # split in horizontal orientation
  43. bindsym $mod+Control+h split h
  44. # split in vertical orientation
  45. bindsym $mod+Control+v split v
  46. # enter fullscreen mode for the focused container
  47. bindsym $mod+f fullscreen
  48. # change container layout (stacked, tabbed, toggle split)
  49. bindsym $mod+s layout stacking
  50. bindsym $mod+w layout tabbed
  51. bindsym $mod+e layout toggle split
  52. # toggle tiling / floating
  53. bindsym $mod+Shift+space floating toggle
  54. # change focus between tiling / floating windows
  55. bindsym $mod+ctrl+space focus mode_toggle
  56. # focus the parent container
  57. bindsym $mod+a focus parent
  58. # focus the child container
  59. # bindsym $mod+d focus child
  60. # switch to workspace
  61. bindsym $mod+1 workspace 1
  62. bindsym $mod+2 workspace 2
  63. bindsym $mod+3 workspace 3
  64. bindsym $mod+4 workspace 4
  65. bindsym $mod+5 workspace 5
  66. bindsym $mod+6 workspace 6
  67. bindsym $mod+7 workspace 7
  68. bindsym $mod+8 workspace 8
  69. bindsym $mod+9 workspace 9
  70. bindsym $mod+0 workspace 10
  71. bindsym $mod+Shift+1 workspace 11
  72. bindsym $mod+Shift+2 workspace 12
  73. bindsym $mod+Shift+3 workspace 13
  74. bindsym $mod+Shift+4 workspace 14
  75. bindsym $mod+Shift+5 workspace 15
  76. bindsym $mod+Shift+6 workspace 16
  77. bindsym $mod+Shift+7 workspace 17
  78. bindsym $mod+Shift+8 workspace 18
  79. bindsym $mod+Shift+9 workspace 19
  80. bindsym $mod+Shift+0 workspace 20
  81. # move focused container to workspace
  82. bindsym $mod+Ctrl+1 move container to workspace 1
  83. bindsym $mod+Ctrl+2 move container to workspace 2
  84. bindsym $mod+Ctrl+3 move container to workspace 3
  85. bindsym $mod+Ctrl+4 move container to workspace 4
  86. bindsym $mod+Ctrl+5 move container to workspace 5
  87. bindsym $mod+Ctrl+6 move container to workspace 6
  88. bindsym $mod+Ctrl+7 move container to workspace 7
  89. bindsym $mod+Ctrl+8 move container to workspace 8
  90. bindsym $mod+Ctrl+9 move container to workspace 9
  91. bindsym $mod+Ctrl+0 move container to workspace 10
  92. bindsym $mod+Ctrl+Shift+1 move container to workspace 1
  93. bindsym $mod+Ctrl+Shift+2 move container to workspace 2
  94. bindsym $mod+Ctrl+Shift+3 move container to workspace 3
  95. bindsym $mod+Ctrl+Shift+4 move container to workspace 4
  96. bindsym $mod+Ctrl+Shift+5 move container to workspace 5
  97. bindsym $mod+Ctrl+Shift+6 move container to workspace 6
  98. bindsym $mod+Ctrl+Shift+7 move container to workspace 7
  99. bindsym $mod+Ctrl+Shift+8 move container to workspace 8
  100. bindsym $mod+Ctrl+Shift+9 move container to workspace 9
  101. bindsym $mod+Ctrl+Shift+0 move container to workspace 10
  102. # volume control
  103. bindcode $mod+123 exec amixer set Master 5%+
  104. bindcode $mod+122 exec amixer set Master 5%-
  105. # reload the configuration file
  106. bindsym $mod+Shift+c reload
  107. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  108. bindsym $mod+Shift+r restart
  109. # exit i3 (logs you out of your X session)
  110. 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'"
  111. # resize window (you can also use the mouse for that)
  112. mode "resize" {
  113. # These bindings trigger as soon as you enter the resize mode
  114. # Pressing left will shrink the window’s width.
  115. # Pressing right will grow the window’s width.
  116. # Pressing up will shrink the window’s height.
  117. # Pressing down will grow the window’s height.
  118. bindsym j resize shrink width 10 px or 10 ppt
  119. bindsym k resize grow height 10 px or 10 ppt
  120. bindsym l resize shrink height 10 px or 10 ppt
  121. bindsym semicolon resize grow width 10 px or 10 ppt
  122. # same bindings, but for the arrow keys
  123. bindsym Left resize shrink width 10 px or 10 ppt
  124. bindsym Down resize grow height 10 px or 10 ppt
  125. bindsym Up resize shrink height 10 px or 10 ppt
  126. bindsym Right resize grow width 10 px or 10 ppt
  127. # back to normal: Enter or Escape
  128. bindsym Return mode "default"
  129. bindsym Escape mode "default"
  130. }
  131. bindsym $mod+r mode "resize"
  132. # Start i3bar to display a workspace bar (plus the system information i3status
  133. # finds out, if available)
  134. bar {
  135. status_command /home/daemoneye/.i3/conky_bar.sh
  136. position bottom
  137. }