My dotfiles. Period.

config 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. #------------------------------------------------------------------------#
  2. ## Some colors have names ##
  3. #------------------------------------------------------------------------#
  4. set $aos_ui_blck #000020
  5. set $aos_ui_orng #f08000
  6. set $aos_ui_blue #0050a0
  7. set $aos_ui_whit #f0f0f0
  8. set $aos_cr_blck #000000
  9. set $aos_cr_dorg #d02020
  10. set $aos_cr_lorg #f0c0a0
  11. set $greenish_black #1d1d1b
  12. set $greenish_red #ecba82
  13. set $greenish_green #2e933c
  14. set $greenish_dgrn #297045
  15. set $greenish_blue #83a598
  16. set $greenish_white #ebdbb2
  17. set $transparent #0000000F
  18. #------------------------------------------------------------------------#
  19. ## Basically basic ##
  20. #------------------------------------------------------------------------#
  21. set $spn PRETTY=notify
  22. set $mod Mod4
  23. floating_modifier $mod
  24. mouse_warping none
  25. hide_edge_borders vertical
  26. font pango:DejaVu Sans Mono 11
  27. # change focus
  28. bindsym $mod+h focus left
  29. bindsym $mod+j focus down
  30. bindsym $mod+k focus up
  31. bindsym $mod+l focus right
  32. # alternatively, you can use the cursor keys:
  33. bindsym $mod+Left focus left
  34. bindsym $mod+Down focus down
  35. bindsym $mod+Up focus up
  36. bindsym $mod+Right focus right
  37. # move focused window
  38. bindsym $mod+Shift+h move left
  39. bindsym $mod+Shift+j move down
  40. bindsym $mod+Shift+k move up
  41. bindsym $mod+Shift+l move right
  42. # alternatively, you can use the cursor keys:
  43. bindsym $mod+Shift+Left move left
  44. bindsym $mod+Shift+Down move down
  45. bindsym $mod+Shift+Up move up
  46. bindsym $mod+Shift+Right move right
  47. # split in horizontal orientation
  48. bindsym $mod+g split h
  49. # split in vertical orientation
  50. bindsym $mod+v split v
  51. # enter fullscreen mode for the focused container
  52. bindsym $mod+f fullscreen
  53. # change container layout (stacked, tabbed, toggle split)
  54. bindsym $mod+s layout stacking
  55. bindsym $mod+w layout tabbed
  56. bindsym $mod+e layout toggle split
  57. # toggle tiling / floating
  58. bindsym $mod+Shift+space floating toggle
  59. # change focus between tiling / floating windows
  60. bindsym $mod+space focus mode_toggle
  61. # focus the parent container
  62. bindsym $mod+a focus parent
  63. bindsym $mod+Shift+a focus child
  64. # assign workspace names
  65. set $w1 1
  66. set $w2 2
  67. set $w3 3
  68. set $w4 4
  69. set $w5 5
  70. set $w6 6
  71. set $w7 7
  72. set $w8 8
  73. set $w9 9
  74. set $w0 10
  75. # switch to workspace
  76. bindsym $mod+1 workspace $w1
  77. bindsym $mod+2 workspace $w2
  78. bindsym $mod+3 workspace $w3
  79. bindsym $mod+4 workspace $w4
  80. bindsym $mod+5 workspace $w5
  81. bindsym $mod+6 workspace $w6
  82. bindsym $mod+7 workspace $w7
  83. bindsym $mod+8 workspace $w8
  84. bindsym $mod+9 workspace $w9
  85. bindsym $mod+0 workspace $w0
  86. bindsym $mod+Page_Up workspace prev_on_output
  87. bindsym $mod+Page_Down workspace next_on_output
  88. # move focused container to workspace
  89. bindsym $mod+Shift+1 move container to workspace $w1
  90. bindsym $mod+Shift+2 move container to workspace $w2
  91. bindsym $mod+Shift+3 move container to workspace $w3
  92. bindsym $mod+Shift+4 move container to workspace $w4
  93. bindsym $mod+Shift+5 move container to workspace $w5
  94. bindsym $mod+Shift+6 move container to workspace $w6
  95. bindsym $mod+Shift+7 move container to workspace $w7
  96. bindsym $mod+Shift+8 move container to workspace $w8
  97. bindsym $mod+Shift+9 move container to workspace $w9
  98. bindsym $mod+Shift+0 move container to workspace $w0
  99. bindsym $mod+Shift+Page_Up move container to workspace prev_on_output
  100. bindsym $mod+Shift+Page_Down move container to workspace next_on_output
  101. bindsym $mod+Shift+Tab move scratchpad
  102. bindsym $mod+Tab scratchpad show
  103. bindsym $mod+Shift+r restart
  104. #------------------------------------------------------------------------#
  105. ## Maybe Modes ##
  106. #------------------------------------------------------------------------#
  107. bindsym $mod+backslash mode "mark"
  108. mode "mark" {
  109. #      
  110. #        
  111. set $neutral "<span foreground='#999999'></span> %title"
  112. set $runn "<span foreground='cyan'></span> %title"
  113. set $pass "<span foreground='lime'></span> %title"
  114. set $warn "<span foreground='orange'></span> %title"
  115. set $fail "<span foreground='#992222'></span> %title"
  116. set $num1 "<span foreground='white'>❶</span> %title"
  117. set $num2 "<span foreground='white'>❷</span> %title"
  118. set $num3 "<span foreground='white'>❸</span> %title"
  119. set $num4 "<span foreground='white'>❹</span> %title"
  120. set $num5 "<span foreground='white'>❺</span> %title"
  121. set $num6 "<span foreground='white'>❻</span> %title"
  122. set $num7 "<span foreground='white'>❼</span> %title"
  123. set $num8 "<span foreground='white'>❽</span> %title"
  124. set $num9 "<span foreground='white'>❾</span> %title"
  125. set $num0 "<span foreground='white'>⓿</span> %title"
  126. set $strike "<s>%title</s>"
  127. set $unders "<u>%title</u>"
  128. set $italic "<i>%title</i>"
  129. set $normal "%title"
  130. set $list "<span foreground='#999999'></span> %title"
  131. set $item "<span foreground='#999999'></span> %title"
  132. set $favorite "<span foreground='red'></span> %title"
  133. bindsym m exec i3-winmark mark ; mode "default"
  134. bindsym u exec i3-winmark unmark ; mode "default"
  135. bindsym g exec i3-winmark goto ; mode "default"
  136. bindsym Page_Up [workspace=__focused__] \
  137. title_format $neutral; mode "default"
  138. bindsym Page_Down [workspace=__focused__] \
  139. title_format $normal ; mode "default"
  140. bindsym p title_format $pass ; mode "default"
  141. bindsym bracketleft title_format $warn ; mode "default"
  142. bindsym bracketright title_format $fail ; mode "default"
  143. bindsym apostrophe title_format $runn ; mode "default"
  144. bindsym semicolon title_format $neutral; mode "default"
  145. bindsym comma title_format $favorite ; mode "default"
  146. bindsym period title_format $item ; mode "default"
  147. bindsym slash title_format $list ; mode "default"
  148. bindsym BackSpace title_format $strike ; mode "default"
  149. bindsym equal title_format $unders ; mode "default"
  150. bindsym minus title_format $italic ; mode "default"
  151. bindsym space title_format $normal ; mode "default"
  152. bindsym backslash title_format $normal ; mode "default"
  153. bindsym 1 title_format $num1; mode "default"
  154. bindsym 2 title_format $num2; mode "default"
  155. bindsym 3 title_format $num3; mode "default"
  156. bindsym 4 title_format $num4; mode "default"
  157. bindsym 5 title_format $num5; mode "default"
  158. bindsym 6 title_format $num6; mode "default"
  159. bindsym 7 title_format $num7; mode "default"
  160. bindsym 8 title_format $num8; mode "default"
  161. bindsym 9 title_format $num9; mode "default"
  162. bindsym 0 title_format $num0; mode "default"
  163. bindsym $mod+backslash mode "default"
  164. bindsym Escape mode "default"
  165. bindsym Return mode "default"
  166. }
  167. bindsym $mod+r mode "resize"
  168. mode "resize" {
  169. bindsym Left resize shrink width 200 px or 12 ppt
  170. bindsym Down resize grow height 200 px or 12 ppt
  171. bindsym Up resize shrink height 200 px or 12 ppt
  172. bindsym Right resize grow width 200 px or 12 ppt
  173. bindsym Shift+Left resize shrink width 25 px or 2 ppt
  174. bindsym Shift+Down resize grow height 25 px or 2 ppt
  175. bindsym Shift+Up resize shrink height 25 px or 2 ppt
  176. bindsym Shift+Right resize grow width 25 px or 2 ppt
  177. bindsym $mod+r mode "default"
  178. bindsym Return mode "default"
  179. bindsym Escape mode "default"
  180. }
  181. bar {
  182. status_command "~/.i3/bin/i3staplus"
  183. bindsym button2 exec thunar
  184. bindsym button3 exec "$spn xclose"
  185. separator_symbol "•"
  186. # other suggestions:
  187. # ‧•┇╻╹╹╿═╎╏◆◾║︙⎪∣∕⟘⟙∙∼⦀⦑⦒⦚⧸⧹▓▒░⧻⧺┆˘͡͡ːˌ˷|・፧።
  188. }
  189. bindsym Caps_Lock mode "caps"
  190. bindsym Shift+Caps_Lock mode "caps"
  191. bindsym Ctrl+Caps_Lock mode "caps"
  192. bindsym $mod+Caps_Lock mode "caps"
  193. mode "caps" {
  194. bindsym Caps_Lock mode "default"
  195. bindsym Shift+Caps_Lock mode "default"
  196. bindsym Ctrl+Caps_Lock mode "default"
  197. bindsym $mod+Caps_Lock mode "default"
  198. }
  199. #------------------------------------------------------------------------#
  200. ## Openers ##
  201. #------------------------------------------------------------------------#
  202. bindsym $mod+Return exec "urxvt"
  203. bindsym $mod+Shift+Return exec "xfce4-terminal"
  204. bindsym $mod+Home exec "$spn bmo menu home"
  205. bindsym $mod+Shift+Home exec "thunar"
  206. bindsym $mod+p exec "$spn bmo menu run"
  207. bindsym $mod+Shift+p exec "$spn bmo menu run_hist"
  208. #------------------------------------------------------------------------#
  209. ## WWW magic mind readers ##
  210. #------------------------------------------------------------------------#
  211. bindsym $mod+b exec "$spn bmo wish -c -1 -a"
  212. bindsym $mod+c exec "$spn bmo wish -c -1 -a -B"
  213. bindsym $mod+Shift+b exec "$spn bmo wish -c"
  214. bindsym $mod+Shift+c exec "$spn bmo wish -c -B"
  215. bindsym $mod+i exec "$spn bmo menu uris"
  216. bindsym $mod+Shift+i exec "$spn bmo menu www_hist"
  217. bindsym $mod+q exec "$spn bmo wish -c -q g"
  218. bindsym $mod+Shift+q exec "$spn bmo wish -c -Q"
  219. bindsym $mod+t exec "acclive"
  220. #------------------------------------------------------------------------#
  221. ## Killers ##
  222. #------------------------------------------------------------------------#
  223. bindsym $mod+Delete kill
  224. bindsym $mod+Shift+Delete 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-msg exit'"
  225. #------------------------------------------------------------------------#
  226. ## Desktop states ##
  227. #------------------------------------------------------------------------#
  228. bindsym $mod+Escape exec "$spn bmo iam afk"
  229. bindsym $mod+Shift+Escape exec "$spn bmo iam gone"
  230. bindsym $mod+m exec "$spn bmo menu status"
  231. bindsym $mod+Shift+m exec "i3-dmenu-desktop --dmenu='bmo dmenu'"
  232. bindsym $mod+o exec "$spn bmo menu context"
  233. bindsym $mod+Print exec "newfeh"
  234. #------------------------------------------------------------------------#
  235. ## Desktop-ey other stuff ##
  236. #------------------------------------------------------------------------#
  237. bindsym $mod+n exec "$spn bmo kb home"
  238. bindsym $mod+Shift+n exec "$spn bmo kb next"
  239. bindsym $mod+Insert exec "$spn bmo clip save"
  240. bindsym $mod+Shift+Insert exec "$spn bmo clip open"
  241. bindsym $mod+d exec "xbacklight -dec 49"
  242. bindsym $mod+Shift+d exec "xbacklight -inc 5"
  243. bindsym XF86AudioRaiseVolume exec "$spn bmo au up"
  244. bindsym XF86AudioLowerVolume exec "$spn bmo au down"
  245. bindsym XF86AudioMute exec "$spn bmo au flip"
  246. #------------------------------------------------------------------------#
  247. ## Typing macros wow ##
  248. #------------------------------------------------------------------------#
  249. bindsym --release $mod+Ctrl+apostrophe exec "xdotool .i3/macros/apostrophe.xdotool"
  250. bindsym --release $mod+Ctrl+asterisk exec "xdotool .i3/macros/asterisk.xdotool"
  251. bindsym --release $mod+Ctrl+slash exec "xdotool .i3/macros/slash.xdotool"
  252. bindsym --release $mod+Ctrl+comma exec "xdotool .i3/macros/comma.xdotool"
  253. bindsym --release $mod+Ctrl+semicolon exec "xdotool .i3/macros/semicolon.xdotool"
  254. bindsym --release $mod+Ctrl+period exec "xdotool .i3/macros/period.xdotool"
  255. bindsym --release $mod+Ctrl+9 exec "xdotool .i3/macros/9.xdotool"
  256. bindsym --release $mod+Ctrl+grave exec "xdotool .i3/macros/grave.xdotool"
  257. bindsym --release $mod+Ctrl+bracketleft exec "xdotool .i3/macros/bracketleft.xdotool"
  258. bindsym --release $mod+Ctrl+bracketright exec "xdotool .i3/macros/bracketright.xdotool"
  259. #------------------------------------------------------------------------#
  260. ## Less smart apps ##
  261. #------------------------------------------------------------------------#
  262. for_window [class="Shutter"] floating enable
  263. for_window [class="Orage"] floating enable
  264. #------------------------------------------------------------------------#
  265. ## autoexec.bat ##
  266. #------------------------------------------------------------------------#
  267. exec "newfeh"
  268. exec "dunst"
  269. exec "psi-plus"
  270. exec "dropbox start"
  271. exec "urxvt -e weechat"
  272. exec "nm-applet"
  273. exec "shutter --min_at_startup"
  274. exec "QSyncthingTray"