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 7.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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 nm-applet
  7. exec --no-startup-id ~/bin/battery_notify
  8. exec --no-startup-id powertop --auto-tune
  9. exec --no-startup-id tlp start
  10. exec --no-startup-id xset r rate 225 30
  11. # Disable window borders
  12. for_window [class="^.*"] border pixel 2
  13. hide_edge_borders smart
  14. # Base 16 Config
  15. set $base00 #181818
  16. set $base01 #282828
  17. set $base02 #383838
  18. set $base03 #585858
  19. set $base04 #b8b8b8
  20. set $base05 #d8d8d8
  21. set $base06 #e8e8e8
  22. set $base07 #f8f8f8
  23. set $base08 #ab4642
  24. set $base09 #dc9656
  25. set $base0A #f7ca88
  26. set $base0B #a1b56c
  27. set $base0C #86c1b9
  28. set $base0D #7cafc2
  29. set $base0E #ba8baf
  30. set $base0F #a16946
  31. client.focused $base0D $base0D $base00 $base01
  32. client.focused_inactive $base02 $base02 $base03 $base01
  33. client.unfocused $base01 $base01 $base03 $base01
  34. client.urgent $base02 $base08 $base07 $base08
  35. # Matrix Labritory
  36. for_window [title="^Figure \d+$"] floating enable
  37. for_window [title="^QEMU$"] floating enable
  38. # Adds gaps
  39. #gaps inner 12
  40. #gaps outer 0
  41. #smart_gaps on
  42. # volume keys
  43. bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 2%+
  44. bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 2%-
  45. bindsym XF86AudioMute exec amixer set Master toggle
  46. bindsym --release Print exec ~/bin/shot_upload
  47. # brightness keys
  48. bindsym XF86MonBrightnessUp exec xbacklight -inc 2
  49. bindsym XF86MonBrightnessDown exec xbacklight -dec 2
  50. bindsym XF86KbdBrightnessUp exec "asus-kbd-backlight up"
  51. bindsym XF86KbdBrightnessDown exec "asus-kbd-backlight down"
  52. set $mod Mod4
  53. # Font for window titles. Will also be used by the bar unless a different font
  54. # is used in the bar {} block below.
  55. font pango:monospace 8
  56. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  57. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  58. #font pango:DejaVu Sans Mono 8
  59. # Before i3 v4.8, we used to recommend this one as the default:
  60. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  61. # The font above is very space-efficient, that is, it looks good, sharp and
  62. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  63. # X core fonts rendering does not support right-to-left and this being a bitmap
  64. # font, it doesn’t scale on retina/hidpi displays.
  65. # Use Mouse+$mod to drag floating windows to their wanted position
  66. floating_modifier $mod
  67. # start a terminal
  68. bindsym $mod+Return exec urxvt
  69. bindsym $mod+backslash exec emacs
  70. # kill focused window
  71. bindsym $mod+Shift+q kill
  72. # start dmenu (a program launcher)
  73. bindsym $mod+space exec rofi -show combi
  74. bindsym $mod+p exec "~/bin/toggle-layout"
  75. bindsym $mod+c exec google-chrome-stable
  76. bindsym $mod+n exec "~/bin/lock.sh"
  77. # change focus
  78. bindsym $mod+h focus left
  79. bindsym $mod+j focus down
  80. bindsym $mod+k focus up
  81. bindsym $mod+l focus right
  82. # alternatively, you can use the cursor keys:
  83. bindsym $mod+Left focus left
  84. bindsym $mod+Down focus down
  85. bindsym $mod+Up focus up
  86. bindsym $mod+Right focus right
  87. # move focused window
  88. bindsym $mod+Shift+h move left
  89. bindsym $mod+Shift+j move down
  90. bindsym $mod+Shift+k move up
  91. bindsym $mod+Shift+l move right
  92. # alternatively, you can use the cursor keys:
  93. bindsym $mod+Shift+Left move left
  94. bindsym $mod+Shift+Down move down
  95. bindsym $mod+Shift+Up move up
  96. bindsym $mod+Shift+Right move right
  97. # split in horizontal orientation
  98. bindsym $mod+g split h
  99. # split in vertical orientation
  100. bindsym $mod+v split v
  101. # enter fullscreen mode for the focused container
  102. bindsym $mod+f fullscreen toggle
  103. # change container layout (stacked, tabbed, toggle split)
  104. bindsym $mod+s layout stacking
  105. bindsym $mod+w layout tabbed
  106. bindsym $mod+e layout toggle split
  107. # toggle tiling / floating
  108. bindsym $mod+Shift+space floating toggle
  109. # change focus between tiling / floating windows
  110. #bindsym $mod+space focus mode_toggle
  111. # focus the parent container
  112. bindsym $mod+a focus parent
  113. bindsym $mod+t exec "terminator -e '~/bin/myclock'"
  114. # focus the child container
  115. #bindsym $mod+d focus child
  116. # switch to workspace
  117. bindsym $mod+percent workspace 1
  118. bindsym $mod+bracketleft workspace 2
  119. bindsym $mod+braceleft workspace 3
  120. bindsym $mod+braceright workspace 4
  121. bindsym $mod+parenleft workspace 5
  122. bindsym $mod+equal workspace 6
  123. bindsym $mod+astericks workspace 7
  124. bindsym $mod+parenright workspace 8
  125. bindsym $mod+plus workspace 9
  126. bindsym $mod+bracketright workspace 10
  127. bindsym $mod+Shift+percent move container to workspace 1
  128. bindsym $mod+Shift+bracketleft move container to workspace 2
  129. bindsym $mod+Shift+braceleft move container to workspace 3
  130. bindsym $mod+Shift+braceright move container to workspace 4
  131. bindsym $mod+Shift+parenleft move container to workspace 5
  132. bindsym $mod+Shift+equal move container to workspace 6
  133. bindsym $mod+Shift+astericks move container to workspace 7
  134. bindsym $mod+Shift+parenright move container to workspace 8
  135. bindsym $mod+Shift+plus move container to workspace 9
  136. bindsym $mod+Shift+bracketright move container to workspace 10
  137. # move focused container to workspace
  138. #bindsym $mod+Shift+1 move container to workspace 1
  139. #bindsym $mod+Shift+2 move container to workspace 2
  140. #bindsym $mod+Shift+3 move container to workspace 3
  141. #bindsym $mod+Shift+4 move container to workspace 4
  142. #bindsym $mod+Shift+5 move container to workspace 5
  143. #bindsym $mod+Shift+6 move container to workspace 6
  144. #bindsym $mod+Shift+7 move container to workspace 7
  145. #bindsym $mod+Shift+8 move container to workspace 8
  146. #bindsym $mod+Shift+9 move container to workspace 9
  147. #bindsym $mod+Shift+0 move container to workspace 10
  148. # reload the configuration file
  149. bindsym $mod+Shift+c reload
  150. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  151. bindsym $mod+Shift+r restart
  152. # exit i3 (logs you out of your X session)
  153. 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'"
  154. # resize window (you can also use the mouse for that)
  155. mode "resize" {
  156. # These bindings trigger as soon as you enter the resize mode
  157. # Pressing left will shrink the window’s width.
  158. # Pressing right will grow the window’s width.
  159. # Pressing up will shrink the window’s height.
  160. # Pressing down will grow the window’s height.
  161. bindsym h resize shrink width 5 px or 5 ppt
  162. bindsym j resize grow height 5 px or 5 ppt
  163. bindsym k resize shrink height 5 px or 5 ppt
  164. bindsym l resize grow width 5 px or 5 ppt
  165. # same bindings, but for the arrow keys
  166. bindsym Left resize shrink width 5 px or 5 ppt
  167. bindsym Down resize grow height 5 px or 5 ppt
  168. bindsym Up resize shrink height 5 px or 5 ppt
  169. bindsym Right resize grow width 5 px or 5 ppt
  170. # back to normal: Enter or Escape
  171. bindsym Return mode "default"
  172. bindsym Escape mode "default"
  173. }
  174. bindsym $mod+r mode "resize"
  175. bar {
  176. status_command i3status
  177. position top
  178. mode hide
  179. hidden_state hide
  180. modifier $mod
  181. font pango:Inconsolata 12
  182. colors {
  183. separator $base03
  184. background $base01
  185. statusline $base05
  186. focused_workspace $base0C $base0D $base00
  187. active_workspace $base02 $base02 $base07
  188. inactive_workspace $base01 $base01 $base03
  189. urgent_workspace $base08 $base08 $base07
  190. }
  191. }
  192. exec_always feh --bg-scale ~/Pictures/gnuslashlinux.png
  193. #exec --no-startup-id polybar wolfe