config 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. ##### i3-config / RESLOVED #######################
  2. ##### GENERAL #####################################
  3. set $mod Mod4
  4. font pango:Go Mono 8
  5. # APP VARIABLES
  6. set $browser qutebrowser
  7. set $solobrowser surf
  8. set $term alacritty
  9. # DIR VARIABLES
  10. set $bin ~/bin
  11. # RESIZE VARIABLES
  12. set $center move absolute position center
  13. # FLOATING
  14. floating_modifier $mod
  15. set $thick 0
  16. #border_radius 2
  17. # DEFAULT BORDER
  18. for_window [class="^.*"] border pixel $thick
  19. for_window [title="^.*"] border pixel $thick
  20. # APPLICATION BORDERS
  21. for_window [class="Emacs"] border pixel $thick
  22. for_window [class="st"] border pixel $thick
  23. # FLOATING APPLICATIONS
  24. #for_window [class="Orca"] floating enable
  25. for_window [class="Foliate"] floating enable
  26. for_window [class="Foliate"] floating_maximum_size 400 x 800
  27. # GAP VARIABLES
  28. set $inner 12
  29. set $outer 12
  30. # SET GAPS
  31. gaps inner $inner
  32. gaps outer $outer
  33. # START POLYBAR
  34. #exec_always --no-startup-id ~/.config/polybar/launch.sh
  35. bar {
  36. position bottom
  37. position top
  38. status_command i3status -c ~/.config/i3status/i3status.conf
  39. colors {
  40. statusline #deedee
  41. separator #777777
  42. }
  43. }
  44. # CUSTOM BINDINGS
  45. #bindsym $mod+shift+m exec --no-startup-id surf https://15five-dev.atlassian.net/secure/Dashboard.jspa
  46. # SCRATCHPAD
  47. bindsym $mod+Return exec $term
  48. #bindsym $mod+BackSpace scratchpad show
  49. #bindsym $mod+Shift+BackSpace floating enable, move position 48 px 48 px, move scratchpad
  50. #bindsym $mod+Ctrl+BackSpace exec $term -e tmux new-session -A -s scratch
  51. # KILL
  52. bindsym $mod+Shift+q kill
  53. bindsym $mod+Ctrl+x exec rofi-exit
  54. bindsym $mod+Shift+x exec exit
  55. # RELOAD
  56. bindsym $mod+Shift+BackSpace reload
  57. # RESTART
  58. bindsym $mod+Shift+r restart
  59. bindsym $mod+w layout toggle split
  60. bindsym $mod+Ctrl+w layout stacked
  61. bindsym $mod+Shift+w layout tabbed
  62. title_align center
  63. ##### MOVEMENT ####################################
  64. # FOCUS
  65. bindsym $mod+h focus left
  66. bindsym $mod+j focus down
  67. bindsym $mod+k focus up
  68. bindsym $mod+l focus right
  69. bindsym $mod+Left focus left
  70. bindsym $mod+Down focus down
  71. bindsym $mod+Up focus up
  72. bindsym $mod+Right focus right
  73. # MOVE
  74. bindsym $mod+Ctrl+h move left
  75. bindsym $mod+Ctrl+j move down
  76. bindsym $mod+Ctrl+k move up
  77. bindsym $mod+Ctrl+l move right
  78. bindsym $mod+Ctrl+Left move left
  79. bindsym $mod+Ctrl+Down move down
  80. bindsym $mod+Ctrl+Up move up
  81. bindsym $mod+Ctrl+Right move right
  82. # RESIZE
  83. bindsym $mod+Shift+h resize shrink width 10px or 10 ppt
  84. bindsym $mod+Shift+j resize shrink height 10px or 10 ppt
  85. bindsym $mod+Shift+k resize grow height 10px or 10 ppt
  86. bindsym $mod+Shift+l resize grow width 10px or 10 ppt
  87. bindsym $mod+Shift+Left resize shrink width 10px or 10 ppt
  88. bindsym $mod+Shift+Down resize shrink height 10px or 10 ppt
  89. bindsym $mod+Shift+Up resize grow height 10px or 10 ppt
  90. bindsym $mod+Shift+Right resize grow width 10px or 10 ppt
  91. bindsym $mod+Shift+Ctrl+h resize shrink width 1px or 1 ppt
  92. bindsym $mod+Shift+Ctrl+j resize shrink height 1px or 1 ppt
  93. bindsym $mod+Shift+Ctrl+k resize grow height 1px or 1 ppt
  94. bindsym $mod+Shift+Ctrl+l resize grow width 1px or 1 ppt
  95. bindsym $mod+Shift+Ctrl+Left resize shrink width 1px or 1 ppt
  96. bindsym $mod+Shift+Ctrl+Down resize shrink height 1px or 1 ppt
  97. bindsym $mod+Shift+Ctrl+Up resize grow height 1px or 1 ppt
  98. bindsym $mod+Shift+Ctrl+Right resize grow width 1px or 1 ppt
  99. # VERTICAL SPLIT
  100. bindsym $mod+v split v
  101. # HORIZONTAL SPLIT
  102. bindsym $mod+b split h
  103. # FULLSCREEN
  104. bindsym $mod+f fullscreen toggle
  105. # TOGGLE FLOATING
  106. #bindsym $mod+escape floating toggle; $center
  107. # MODE TOGGLE
  108. bindsym $mod+Shift+space focus mode_toggle
  109. # PAPER MODE
  110. bindsym $mod+Ctrl+space floating toggle; resize set 780px 880px; $center
  111. # CENTER FLOATING
  112. bindsym $mod+c $center
  113. # DISPLAYS
  114. bindsym $mod+F1 exec ~/.screenlayout/titan-one.sh
  115. bindsym $mod+F2 exec ~/.screenlayout/titan-two.sh
  116. bindsym $mod+F3 exec ~/.screenlayout/titan-three.sh
  117. ##### WORKSPACES ##################################
  118. # WORKSPACES
  119. set $ws1 number 1
  120. set $ws2 number 2
  121. set $ws3 number 3
  122. set $ws4 number 4
  123. set $ws5 number 5
  124. set $ws6 number 6
  125. set $ws7 number 7
  126. set $ws8 number 8
  127. set $ws9 number 9
  128. #set $ws10 "10"
  129. # SWITCH TO WORKSPACE
  130. bindsym $mod+1 workspace $ws1
  131. bindsym $mod+2 workspace $ws2
  132. bindsym $mod+3 workspace $ws3
  133. bindsym $mod+4 workspace $ws4
  134. bindsym $mod+5 workspace $ws5
  135. bindsym $mod+6 workspace $ws6
  136. bindsym $mod+7 workspace $ws7
  137. bindsym $mod+8 workspace $ws8
  138. bindsym $mod+9 workspace $ws9
  139. bindsym $mod+Mod2+KP_1 workspace $ws1
  140. bindsym $mod+Mod2+KP_2 workspace $ws2
  141. bindsym $mod+Mod2+KP_3 workspace $ws3
  142. bindsym $mod+Mod2+KP_4 workspace $ws4
  143. bindsym $mod+Mod2+KP_5 workspace $ws5
  144. bindsym $mod+Mod2+KP_6 workspace $ws6
  145. bindsym $mod+Mod2+KP_7 workspace $ws7
  146. bindsym $mod+Mod2+KP_8 workspace $ws8
  147. bindsym $mod+Mod2+KP_9 workspace $ws9
  148. # MOVE WINDOW TO WORKSPACE
  149. bindsym $mod+Shift+1 move container to workspace $ws1
  150. bindsym $mod+Shift+2 move container to workspace $ws2
  151. bindsym $mod+Shift+3 move container to workspace $ws3
  152. bindsym $mod+Shift+4 move container to workspace $ws4
  153. bindsym $mod+Shift+5 move container to workspace $ws5
  154. bindsym $mod+Shift+6 move container to workspace $ws6
  155. bindsym $mod+Shift+7 move container to workspace $ws7
  156. bindsym $mod+Shift+8 move container to workspace $ws8
  157. bindsym $mod+Shift+9 move container to workspace $ws9
  158. bindsym $mod+Ctrl+Mod2+KP_1 move container to workspace $ws1
  159. bindsym $mod+Ctrl+Mod2+KP_2 move container to workspace $ws2
  160. bindsym $mod+Ctrl+Mod2+KP_3 move container to workspace $ws3
  161. bindsym $mod+Ctrl+Mod2+KP_4 move container to workspace $ws4
  162. bindsym $mod+Ctrl+Mod2+KP_5 move container to workspace $ws5
  163. bindsym $mod+Ctrl+Mod2+KP_6 move container to workspace $ws6
  164. bindsym $mod+Ctrl+Mod2+KP_7 move container to workspace $ws7
  165. bindsym $mod+Ctrl+Mod2+KP_8 move container to workspace $ws8
  166. bindsym $mod+Ctrl+Mod2+KP_9 move container to workspace $ws9
  167. ##=================================================##
  168. # Assign Workspaces:
  169. assign [class="Emacs"] $ws1
  170. assign [class=$browser] $ws2
  171. assign [class=$term] $ws3
  172. assign [class="calibre"] $ws5
  173. assign [class="Foliate"] $ws5
  174. ##### COLORS #######################################
  175. # XRESOURCES
  176. set $fg "#660000"
  177. set $bg "#666666"
  178. set $tx "#FFFFFF"
  179. set $ltx "#CCCCCC"
  180. # CLASS BORDER BACK TEXT INDICATOR
  181. client.focused $fg $fg $tx $fg
  182. client.focused_inactive $bg $bg $tx $fg
  183. client.unfocused $bg $bg $ltx $bg
  184. client.urgent $bg $bg $bg $bg
  185. client.placeholder $bg $bg $bg $bg
  186. ##### TOOLS ########################################
  187. # SCREENSHOT
  188. set $shots ~/var/images
  189. bindsym $mod+Print exec maim --hidecursor $shots/$(date +%s).png
  190. bindsym $mod+Ctrl+Print exec maim -s $shots/$(date +%s).png
  191. bindsym $mod+Shift+Print exec feh $(last $shots)
  192. # CAST
  193. set $casts ~/videos/casts
  194. bindsym $mod+F12 exec cast
  195. bindsym $mod+Ctrl+F12 exec cast -s
  196. #bindsym $mod+Shift+F12 exec
  197. bindsym $mod+Ctrl+F11 exec anypaste -x -s -p streamable $(last $casts)
  198. bindsym $mod+Shift+F11 exec ffplay -loop 0 $(last $casts)
  199. # MEDIA CONTROLS
  200. bindsym $mod+ctrl+comma exec mixer vol 0
  201. bindsym $mod+Ctrl+period exec mixer vol 100
  202. bindsym $mod+comma exec mixer vol -10
  203. bindsym $mod+period exec mixer vol +10
  204. bindsym $mod+Shift+slash exec mixer mic 0
  205. bindsym $mod+Shift+comma exec mixer mic -5
  206. bindsym $mod+Shift+period exec mixer mic +5
  207. bindsym XF86AudioRaiseVolume exec mixer vol +5
  208. bindsym XF86AudioLowerVolume exec mixer vol -5
  209. bindsym XF86AudioMicMute exec mixer mic toggle
  210. # Sreen brightness controls
  211. bindsym $mod+F5 exec intel_backlight decr
  212. bindsym $mod+F6 exec intel_backlight incr
  213. bindsym XF86MonBrightnessUp exec ~/.config/i3/bright.sh -u # increase screen brightness
  214. bindsym XF86MonBrightnessDown exec ~/.config/i3/bright.sh -d # decrease screen brightness
  215. bindsym XF86Search exec ~/.config/i3/bright.sh 1 # decrease screen brightness
  216. # ROFI
  217. bindsym $mod+space exec rofi -show combi -display-window "W"
  218. # BACKGROUND
  219. exec feh --bg-scale ~/var/inbox/astrobin/`ls -Ar ~/var/inbox/astrobin | tail -n 1`
  220. ##### APP BINDS ###################################
  221. bindsym $mod+n exec $browser
  222. bindsym $mod+Shift+n exec ~/.config/rofi/searx-search.sh
  223. bindsym $mod+Ctrl+n exec ~/.config/rofi/web-search.sh
  224. bindsym $mod+Shift+b exec ~/.config/rofi/books-search.sh
  225. bindsym $mod+Shift+c exec ~/.config/rofi/github-repos.sh
  226. bindsym Print exec --no-startup-id gnome-screenshot
  227. bindsym $mod+Ctrl+f exec --no-startup-id $solobrowser https://15five.15five.com/report/current/
  228. bindsym $mod+Ctrl+g exec --no-startup-id $solobrowser https://github.com/15five/fifteen5/pulls
  229. bindsym $mod+Ctrl+p exec --no-startup-id $solobrowser https://github.com/15five/fifteen5/pulls?utf8=%E2%9C%93&q=is%3Aopen+is%3Apr+label%3Abackend+-reviewed-by%3Apowellc
  230. bindsym $mod+Shift+u exec cvlc https://stream.unbl.ink/mopidy
  231. bindsym $mod+Ctrl+u exec pkill vlc
  232. bindsym $mod+Ctrl+a exec $solobrowser https://www.astrobin.com/iotd/archive/
  233. bindsym $mod+Ctrl+m exec $solobrowser https://play.unbl.ink/iris
  234. bindsym $mod+Ctrl+d exec $solobrowser https://15five-dev.atlassian.net/secure/Dashboard.jspa
  235. bindsym $mod+Ctrl+q exec $solobrowser https://15five.quip.com/
  236. bindsym $mod+Ctrl+s exec $solobrowser https://15five.slack.com/
  237. bindsym $mod+Ctrl+r exec $solobrowser https://randomaccessbrewery.slack.com/
  238. bindsym $mod+e exec emacsclient -c
  239. bindsym $mod+o exec rofi-now
  240. bindsym $mod+Ctrl+o exec rofi-vol
  241. bindsym $mod+Shift+o exec rofi-bat
  242. ##### LAUNCH ######################################
  243. # STARTUP
  244. exec --no-startup-id unclutter -grab
  245. # RELOAD
  246. exec_always --no-startup-id compton
  247. exec_always --no-startup-id dunst
  248. exec_always xrdb --merge ~/.Xresoureces
  249. ## Volume control
  250. # Path to volume control, without trailing slash
  251. #set $volumepath ~/.config/i3/i3-volume