My personal dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. exec "xinput set-button-map 14 1 2 3 5 4 6 7 8 9 10 11 12"
  2. exec "setxkbmap -option 'caps:ctrl_modifier'"
  3. exec "xcape -e 'Caps_Lock=Escape'"
  4. exec "xsetroot -cursor_name left_ptr"
  5. exec --no-startup-id dropbox start
  6. exec --no-startup-id ~/bin/battery_notify
  7. exec --no-startup-id powertop --auto-tune
  8. exec --no-startup-id tlp start
  9. exec --no-startup-id xset r rate 225 30
  10. # Disable window borders
  11. for_window [class="^.*"] border pixel 0
  12. # Matrix Labritory
  13. for_window [title="^Figure \d+$"] floating enable
  14. # Adds gaps
  15. gaps inner 12
  16. gaps outer 0
  17. smart_gaps on
  18. # volume keys
  19. bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 2%+
  20. bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 2%-
  21. bindsym ctrl+Mod1+Left exec amixer set Master toggle
  22. bindsym ctrl+Mod1+Right exec amixer set Master toggle
  23. # brightness keys
  24. bindsym XF86MonBrightnessUp exec xbacklight -inc 5
  25. bindsym XF86MonBrightnessDown exec xbacklight -dec 5
  26. set $mod Mod4
  27. # Font for window titles. Will also be used by the bar unless a different font
  28. # is used in the bar {} block below.
  29. font pango:monospace 8
  30. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  31. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  32. #font pango:DejaVu Sans Mono 8
  33. # Before i3 v4.8, we used to recommend this one as the default:
  34. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  35. # The font above is very space-efficient, that is, it looks good, sharp and
  36. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  37. # X core fonts rendering does not support right-to-left and this being a bitmap
  38. # font, it doesn’t scale on retina/hidpi displays.
  39. # Use Mouse+$mod to drag floating windows to their wanted position
  40. floating_modifier $mod
  41. # start a terminal
  42. bindsym $mod+Return exec i3-sensible-terminal
  43. bindsym $mod+backslash exec emacs
  44. # kill focused window
  45. bindsym $mod+Shift+q kill
  46. # start dmenu (a program launcher)
  47. bindsym $mod+d exec rofi -show run -font "snap 10" -o 85
  48. bindsym $mod+p exec "~/bin/toggle-layout"
  49. bindsym $mod+c exec chromium
  50. # change focus
  51. bindsym $mod+h focus left
  52. bindsym $mod+j focus down
  53. bindsym $mod+k focus up
  54. bindsym $mod+l focus right
  55. # alternatively, you can use the cursor keys:
  56. bindsym $mod+Left focus left
  57. bindsym $mod+Down focus down
  58. bindsym $mod+Up focus up
  59. bindsym $mod+Right focus right
  60. # move focused window
  61. bindsym $mod+Shift+h move left
  62. bindsym $mod+Shift+j move down
  63. bindsym $mod+Shift+k move up
  64. bindsym $mod+Shift+l move right
  65. # alternatively, you can use the cursor keys:
  66. bindsym $mod+Shift+Left move left
  67. bindsym $mod+Shift+Down move down
  68. bindsym $mod+Shift+Up move up
  69. bindsym $mod+Shift+Right move right
  70. # split in horizontal orientation
  71. bindsym $mod+g split h
  72. # split in vertical orientation
  73. bindsym $mod+v split v
  74. # enter fullscreen mode for the focused container
  75. bindsym $mod+f fullscreen toggle
  76. # change container layout (stacked, tabbed, toggle split)
  77. bindsym $mod+s layout stacking
  78. bindsym $mod+w layout tabbed
  79. bindsym $mod+e layout toggle split
  80. # toggle tiling / floating
  81. bindsym $mod+Shift+space floating toggle
  82. # change focus between tiling / floating windows
  83. bindsym $mod+space focus mode_toggle
  84. # focus the parent container
  85. bindsym $mod+a focus parent
  86. bindsym $mod+t exec "terminator -e '~/bin/myclock'"
  87. # focus the child container
  88. #bindsym $mod+d focus child
  89. # switch to workspace
  90. bindsym $mod+percent workspace 1
  91. bindsym $mod+bracketleft workspace 2
  92. bindsym $mod+braceleft workspace 3
  93. bindsym $mod+braceright workspace 4
  94. bindsym $mod+parenleft workspace 5
  95. bindsym $mod+asterisk workspace 6
  96. bindsym $mod+astericks workspace 7
  97. bindsym $mod+parenright workspace 8
  98. bindsym $mod+plus workspace 9
  99. bindsym $mod+bracketright workspace 10
  100. bindsym $mod+Shift+percent move container to workspace 1
  101. bindsym $mod+Shift+bracketleft move container to workspace 2
  102. bindsym $mod+Shift+braceleft move container to workspace 3
  103. bindsym $mod+Shift+braceright move container to workspace 4
  104. bindsym $mod+Shift+parenleft move container to workspace 5
  105. bindsym $mod+Shift+asterisk move container to workspace 6
  106. bindsym $mod+Shift+astericks move container to workspace 7
  107. bindsym $mod+Shift+parenright move container to workspace 8
  108. bindsym $mod+Shift+plus move container to workspace 9
  109. bindsym $mod+Shift+bracketright move container to workspace 10
  110. # move focused container to workspace
  111. #bindsym $mod+Shift+1 move container to workspace 1
  112. #bindsym $mod+Shift+2 move container to workspace 2
  113. #bindsym $mod+Shift+3 move container to workspace 3
  114. #bindsym $mod+Shift+4 move container to workspace 4
  115. #bindsym $mod+Shift+5 move container to workspace 5
  116. #bindsym $mod+Shift+6 move container to workspace 6
  117. #bindsym $mod+Shift+7 move container to workspace 7
  118. #bindsym $mod+Shift+8 move container to workspace 8
  119. #bindsym $mod+Shift+9 move container to workspace 9
  120. #bindsym $mod+Shift+0 move container to workspace 10
  121. # reload the configuration file
  122. bindsym $mod+Shift+c reload
  123. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  124. bindsym $mod+Shift+r restart
  125. # exit i3 (logs you out of your X session)
  126. 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'"
  127. # resize window (you can also use the mouse for that)
  128. mode "resize" {
  129. # These bindings trigger as soon as you enter the resize mode
  130. # Pressing left will shrink the window’s width.
  131. # Pressing right will grow the window’s width.
  132. # Pressing up will shrink the window’s height.
  133. # Pressing down will grow the window’s height.
  134. bindsym h resize shrink width 5 px or 5 ppt
  135. bindsym j resize grow height 5 px or 5 ppt
  136. bindsym k resize shrink height 5 px or 5 ppt
  137. bindsym l resize grow width 5 px or 5 ppt
  138. # same bindings, but for the arrow keys
  139. bindsym Left resize shrink width 5 px or 5 ppt
  140. bindsym Down resize grow height 5 px or 5 ppt
  141. bindsym Up resize shrink height 5 px or 5 ppt
  142. bindsym Right resize grow width 5 px or 5 ppt
  143. # back to normal: Enter or Escape
  144. bindsym Return mode "default"
  145. bindsym Escape mode "default"
  146. }
  147. bindsym $mod+r mode "resize"
  148. exec_always feh --bg-scale ~/Pictures/calvin-and-hobbes-night-sky-wallpaper.jpg
  149. #exec --no-startup-id polybar wolfe