My dotfiles. Period.

config 14KB

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