config 9.7 KB

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