My dotfiles. Period.

config 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  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. # ⓿ ❶ ❷ ❸ ❹ ❺ ❻ ❼ ❽ ❾
  122. set $neutral "<span></span> %title"
  123. set $runn "<span foreground='cyan'></span> %title"
  124. set $pass "<span foreground='lime'></span> %title"
  125. set $warn "<span foreground='orange'></span> %title"
  126. set $fail "<span foreground='#992222'></span> %title"
  127. set $num1 "❶ %title"
  128. set $num2 "❷ %title"
  129. set $num3 "❸ %title"
  130. set $num4 "❹ %title"
  131. set $num5 "❺ %title"
  132. set $num6 "❻ %title"
  133. set $num7 "❼ %title"
  134. set $num8 "❽ %title"
  135. set $num9 "❾ %title"
  136. set $num0 "⓿ %title"
  137. set $strike "<s>%title</s>"
  138. set $unders "<u>%title</u>"
  139. set $italic "<i>%title</i>"
  140. set $normal "%title"
  141. set $list "<span></span> %title"
  142. set $item "<span></span> %title"
  143. set $favorite "<span></span> %title"
  144. bindsym Page_Up [workspace=__focused__] \
  145. title_format $neutral; mode "default"
  146. bindsym Page_Down [workspace=__focused__] \
  147. title_format $normal ; mode "default"
  148. bindsym p title_format $pass ; mode "default"
  149. bindsym bracketleft title_format $warn ; mode "default"
  150. bindsym bracketright title_format $fail ; mode "default"
  151. bindsym apostrophe title_format $runn ; mode "default"
  152. bindsym semicolon title_format $neutral; mode "default"
  153. bindsym comma title_format $favorite ; mode "default"
  154. bindsym period title_format $item ; mode "default"
  155. bindsym slash title_format $list ; mode "default"
  156. bindsym BackSpace title_format $strike ; mode "default"
  157. bindsym equal title_format $unders ; mode "default"
  158. bindsym minus title_format $italic ; mode "default"
  159. bindsym space title_format $normal ; mode "default"
  160. bindsym backslash title_format $normal ; mode "default"
  161. bindsym 1 title_format $num1; mode "default"
  162. bindsym 2 title_format $num2; mode "default"
  163. bindsym 3 title_format $num3; mode "default"
  164. bindsym 4 title_format $num4; mode "default"
  165. bindsym 5 title_format $num5; mode "default"
  166. bindsym 6 title_format $num6; mode "default"
  167. bindsym 7 title_format $num7; mode "default"
  168. bindsym 8 title_format $num8; mode "default"
  169. bindsym 9 title_format $num9; mode "default"
  170. bindsym 0 title_format $num0; mode "default"
  171. bindsym $mod+backslash mode "default"
  172. bindsym Escape mode "default"
  173. bindsym Return mode "default"
  174. }
  175. bindsym $mod+r mode "resize"
  176. mode "resize" {
  177. bindsym Left resize shrink width 200 px or 12 ppt
  178. bindsym Down resize grow height 200 px or 12 ppt
  179. bindsym Up resize shrink height 200 px or 12 ppt
  180. bindsym Right resize grow width 200 px or 12 ppt
  181. bindsym Shift+Left resize shrink width 25 px or 2 ppt
  182. bindsym Shift+Down resize grow height 25 px or 2 ppt
  183. bindsym Shift+Up resize shrink height 25 px or 2 ppt
  184. bindsym Shift+Right resize grow width 25 px or 2 ppt
  185. bindsym $mod+r mode "default"
  186. bindsym Return mode "default"
  187. bindsym Escape mode "default"
  188. }
  189. bar {
  190. id clementine
  191. status_command "~/.i3/bin/cstatus"
  192. workspace_buttons no
  193. tray_output none
  194. mode hide
  195. hidden_state hide
  196. modifier none
  197. output eDP-1
  198. }
  199. bar {
  200. id main
  201. status_command "~/.i3/bin/i3staplus"
  202. bindsym button2 exec thunar
  203. bindsym button3 exec "$spn xclose"
  204. separator_symbol "•"
  205. # other suggestions:
  206. # ‧•┇╻╹╹╿═╎╏◆◾║︙⎪∣∕⟘⟙∙∼⦀⦑⦒⦚⧸⧹▓▒░⧻⧺┆˘͡͡ːˌ˷|・፧።
  207. }
  208. bindsym Caps_Lock mode "caps"
  209. bindsym Shift+Caps_Lock mode "caps"
  210. bindsym Ctrl+Caps_Lock mode "caps"
  211. bindsym $mod+Caps_Lock mode "caps"
  212. mode "caps" {
  213. bindsym Caps_Lock mode "default"
  214. bindsym Shift+Caps_Lock mode "default"
  215. bindsym Ctrl+Caps_Lock mode "default"
  216. bindsym $mod+Caps_Lock mode "default"
  217. }
  218. #------------------------------------------------------------------------#
  219. ## Openers ##
  220. #------------------------------------------------------------------------#
  221. bindsym $mod+Return exec "urxvt"
  222. bindsym $mod+Shift+Return exec "xfce4-terminal"
  223. bindsym $mod+Home exec "$spn bmo menu home"
  224. bindsym $mod+Shift+Home exec "thunar"
  225. bindsym $mod+p exec "$spn bmo menu run"
  226. bindsym $mod+Shift+p exec "$spn bmo menu run_hist"
  227. #------------------------------------------------------------------------#
  228. ## WWW magic mind readers ##
  229. #------------------------------------------------------------------------#
  230. bindsym $mod+b exec "$spn bmo wish -c -1 -a"
  231. bindsym $mod+c exec "$spn bmo wish -c -1 -a -B"
  232. bindsym $mod+Shift+b exec "$spn bmo wish -c"
  233. bindsym $mod+Shift+c exec "$spn bmo wish -c -B"
  234. bindsym $mod+i exec "$spn bmo menu uris"
  235. bindsym $mod+Shift+i exec "$spn bmo menu www_hist"
  236. bindsym $mod+q exec "$spn bmo wish -c -q g"
  237. bindsym $mod+Shift+q exec "$spn bmo wish -c -Q"
  238. bindsym $mod+t exec "acclive"
  239. #------------------------------------------------------------------------#
  240. ## Killers ##
  241. #------------------------------------------------------------------------#
  242. bindsym $mod+Delete kill
  243. 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'"
  244. #------------------------------------------------------------------------#
  245. ## Desktop states ##
  246. #------------------------------------------------------------------------#
  247. bindsym $mod+Escape exec "$spn bmo iam afk"
  248. bindsym $mod+Shift+Escape exec "$spn bmo iam gone"
  249. bindsym $mod+m exec "$spn bmo menu status"
  250. bindsym $mod+Shift+m exec "i3-dmenu-desktop --dmenu='bmo dmenu'"
  251. bindsym $mod+o exec "$spn bmo menu context"
  252. bindsym $mod+Print exec "newfeh"
  253. bindsym $mod+grave exec "$spn bmo menu windows"
  254. #------------------------------------------------------------------------#
  255. ## Desktop-ey other stuff ##
  256. #------------------------------------------------------------------------#
  257. bindsym $mod+n exec "$spn bmo kb home"
  258. bindsym $mod+Shift+n exec "$spn bmo kb next"
  259. bindsym $mod+Insert exec "$spn bmo clip save"
  260. bindsym $mod+Shift+Insert exec "$spn bmo clip open"
  261. bindsym $mod+d exec "xbacklight -dec 49"
  262. bindsym $mod+Shift+d exec "xbacklight -inc 5"
  263. bindsym XF86AudioRaiseVolume exec "$spn bmo au up"
  264. bindsym XF86AudioLowerVolume exec "$spn bmo au down"
  265. bindsym XF86AudioMute exec "$spn bmo au flip"
  266. #------------------------------------------------------------------------#
  267. ## Typing macros wow ##
  268. #------------------------------------------------------------------------#
  269. bindsym --release $mod+Ctrl+apostrophe exec "xdotool .i3/macros/apostrophe.xdotool"
  270. bindsym --release $mod+Ctrl+asterisk exec "xdotool .i3/macros/asterisk.xdotool"
  271. bindsym --release $mod+Ctrl+slash exec "xdotool .i3/macros/slash.xdotool"
  272. bindsym --release $mod+Ctrl+comma exec "xdotool .i3/macros/comma.xdotool"
  273. bindsym --release $mod+Ctrl+semicolon exec "xdotool .i3/macros/semicolon.xdotool"
  274. bindsym --release $mod+Ctrl+period exec "xdotool .i3/macros/period.xdotool"
  275. bindsym --release $mod+Ctrl+9 exec "xdotool .i3/macros/9.xdotool"
  276. bindsym --release $mod+Ctrl+grave exec "xdotool .i3/macros/grave.xdotool"
  277. bindsym --release $mod+Ctrl+bracketleft exec "xdotool .i3/macros/bracketleft.xdotool"
  278. bindsym --release $mod+Ctrl+bracketright exec "xdotool .i3/macros/bracketright.xdotool"
  279. #------------------------------------------------------------------------#
  280. ## Less smart apps ##
  281. #------------------------------------------------------------------------#
  282. for_window [class="Shutter"] floating enable
  283. for_window [class="Orage"] floating enable
  284. #------------------------------------------------------------------------#
  285. ## autoexec.bat ##
  286. #------------------------------------------------------------------------#
  287. exec "newfeh"
  288. exec "dunst"
  289. exec "psi-plus"
  290. exec "dropbox start"
  291. exec "urxvt -e weechat"
  292. exec "nm-applet"
  293. exec "shutter --min_at_startup"
  294. exec "/opt/keybase/Keybase"