config 9.9 KB

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