config 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. # This file has been auto-generated by i-4-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. # HELLO THERE
  7. # i3 config file (v4)
  8. #
  9. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  10. set $mod Mod4
  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:inconsolata 11
  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:menlo 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 Mouse+$mod to drag floating windows to their wanted position
  24. floating_modifier $mod
  25. # start a terminal
  26. bindsym $mod+Return exec terminator -p Breezy
  27. # kill focused window
  28. bindsym $mod+Shift+q kill
  29. # shutdown
  30. bindsym $mod+Shift+o exec poweroff
  31. # reboot
  32. bindsym $mod+Shift+b exec reboot
  33. # start dmenu (a program launcher)
  34. bindsym $mod+d exec dmenu_run
  35. # There also is the (new) i3-dmenu-desktop which only displays applications
  36. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  37. # installed.
  38. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  39. # change focus
  40. bindsym $mod+j focus left
  41. bindsym $mod+k focus down
  42. bindsym $mod+l focus up
  43. bindsym $mod+semicolon focus right
  44. # alternatively, you can use the cursor keys:
  45. bindsym $mod+Left focus left
  46. bindsym $mod+Down focus down
  47. bindsym $mod+Up focus up
  48. bindsym $mod+Right focus right
  49. #Screenshot
  50. bindsym $mod+Shift+s exec scrot -s 'screenshot_%Y%m%d_%H%M%S.png' -e 'mkdir -p ~/Pictures/screenshots && mv $f ~/Pictures/screenshots && xclip -selection clipboard -t image/png -i ~/Pictures/screenshots/`ls -1 -t ~/Pictures/screenshots | head -1`'
  51. # move focused window
  52. bindsym $mod+Shift+j move left
  53. bindsym $mod+Shift+k move down
  54. bindsym $mod+Shift+l move up
  55. bindsym $mod+Shift+semicolon move right
  56. # alternatively, you can use the cursor keys:
  57. bindsym $mod+Shift+Left move left
  58. bindsym $mod+Shift+Down move down
  59. bindsym $mod+Shift+Up move up
  60. bindsym $mod+Shift+Right move right
  61. # split in horizontal orientation
  62. bindsym $mod+h split h
  63. # split in vertical orientation
  64. bindsym $mod+v split v
  65. # enter fullscreen mode for the focused container
  66. bindsym $mod+f fullscreen toggle
  67. # change container layout (stacked, tabbed, toggle split)
  68. bindsym $mod+s layout stacking
  69. bindsym $mod+w layout tabbed
  70. bindsym $mod+e layout toggle split
  71. # toggle tiling / floating
  72. bindsym $mod+Shift+space floating toggle
  73. # change focus between tiling / floating windows
  74. bindsym $mod+space focus mode_toggle
  75. # focus the parent container
  76. bindsym $mod+a focus parent
  77. # focus the child container
  78. #bindsym $mod+d focus child
  79. # Define names for default workspaces for which we configure key bindings later on.
  80. # We use variables to avoid repeating the names in multiple places.
  81. set $ws1 "1: Terminals"
  82. set $ws2 "2: Editor"
  83. set $ws3 "3: Browser"
  84. set $ws4 "4: Gimp"
  85. set $ws5 "5: Steam"
  86. set $ws6 "6: Game"
  87. set $ws7 "7:"
  88. set $ws8 "8"
  89. set $ws9 "9"
  90. set $ws10 "10"
  91. # switch to workspace
  92. bindsym $mod+1 workspace $ws1
  93. bindsym $mod+2 workspace $ws2
  94. bindsym $mod+3 workspace $ws3
  95. bindsym $mod+4 workspace $ws4
  96. bindsym $mod+5 workspace $ws5
  97. bindsym $mod+6 workspace $ws6
  98. bindsym $mod+7 workspace $ws7
  99. bindsym $mod+8 workspace $ws8
  100. bindsym $mod+9 workspace $ws9
  101. bindsym $mod+0 workspace $ws10
  102. # switch to next workspace
  103. bindsym $mod+0x2e workspace next_on_output
  104. bindsym $mod+0x2c workspace prev_on_output
  105. bindsym $mod+Shift+0x2e move window to output right
  106. bindsym $mod+Shift+0x2c move window to output left
  107. # move focused container to workspace
  108. bindsym $mod+Shift+1 move container to workspace $ws1
  109. bindsym $mod+Shift+2 move container to workspace $ws2
  110. bindsym $mod+Shift+3 move container to workspace $ws3
  111. bindsym $mod+Shift+4 move container to workspace $ws4
  112. bindsym $mod+Shift+5 move container to workspace $ws5
  113. bindsym $mod+Shift+6 move container to workspace $ws6
  114. bindsym $mod+Shift+7 move container to workspace $ws7
  115. bindsym $mod+Shift+8 move container to workspace $ws8
  116. bindsym $mod+Shift+9 move container to workspace $ws9
  117. bindsym $mod+Shift+0 move container to workspace $ws10
  118. # assigning workspaces
  119. assign [class="qutebrowser"] $ws3
  120. assign [class="Firefox"] $ws3
  121. assign [class="Steam"] $ws5
  122. assign [class="kate"] $ws2
  123. assign [class="jetbrains-idea-ce"] $ws2
  124. assign [class="Gimp"] $ws4
  125. assign [class="net-minecraft-bootstrap-Bootstrap"] $ws6
  126. assign [class="Phoenix"] $ws6
  127. assign [class="Code"] $ws2
  128. assign [class="love"] $ws2
  129. #Brightness
  130. bindsym XF86MonBrightnessUp exec xbacklight -inc 5
  131. bindsym XF86MonBrightnessDown exec xbacklight -dec 5
  132. # reload the configuration file
  133. bindsym $mod+Shift+c reload
  134. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  135. bindsym $mod+Shift+r restart
  136. # exit i3 (logs you out of your X session)
  137. 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'"
  138. # resize window (you can also use the mouse for that)
  139. mode "resize" {
  140. # These bindings trigger as soon as you enter the resize mode
  141. # Pressing left will shrink the window’s width.
  142. # Pressing right will grow the window’s width.
  143. # Pressing up will shrink the window’s height.
  144. # Pressing down will grow the window’s height.
  145. bindsym j resize shrink width 5 px or 5 ppt
  146. bindsym k resize grow height 5 px or 5 ppt
  147. bindsym l resize shrink height 5 px or 5 ppt
  148. bindsym semicolon resize grow width 5 px or 5 ppt
  149. # same bindings, but for the arrow keys
  150. bindsym Left resize shrink width 5 px or 5 ppt
  151. bindsym Down resize grow height 5 px or 5 ppt
  152. bindsym Up resize shrink height 5 px or 5 ppt
  153. bindsym Right resize grow width 5 px or 5 ppt
  154. # back to normal: Enter or Escape or $mod+r
  155. bindsym Return mode "default"
  156. bindsym Escape mode "default"
  157. bindsym $mod+r mode "default"
  158. }
  159. bindsym $mod+r mode "resize"
  160. # Application shortcuts
  161. bindsym $mod+q exec qutebrowser.sh
  162. bindsym $mod+End exec scrot -s
  163. bindsym $mod+m exec java -jar ~/home-programs/minecraft/Minecraft.jar & disown & exit
  164. bindsym $mod+y exec love ~/work/Talro
  165. bindsym $mod+o bar hidden_state toggle
  166. set $bg-color #2C2C2C
  167. set $inactive-bg-color #2f343f
  168. set $text-color #79e5cc
  169. set $inactive-text-color #3a3a3a
  170. set $urgent-bg-color #E53935
  171. # Start i3bar to display a workspace bar (plus the system information i3status
  172. # finds out, if available)
  173. bar {
  174. mode hide
  175. status_command i3status
  176. colors {
  177. background $bg-color
  178. separator #757575
  179. # border background text
  180. focused_workspace $bg-color $bg-color $text-color
  181. inactive_workspace $bg-color $bg-color $inactive-text-color
  182. urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
  183. }
  184. font pango: Liberation Mono 11
  185. }
  186. for_window [class="^.*"] border pixel 1
  187. gaps outer 5
  188. gaps inner 10
  189. #Sound controls
  190. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5%
  191. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5%
  192. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
  193. #Setup
  194. #exec_always ~/home-programs/i3-autodisplay
  195. exec_always ~/.config/i3/set-screens.sh
  196. exec terminator -p Breezy
  197. exec i3 fullscreen toggle