config 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. ##### i3-config / RESLOVED #######################
  2. ##### GENERAL #####################################
  3. set $mod Mod4
  4. font pango:Go Mono 10
  5. # APP VARIABLES
  6. set $browser qutebrowser
  7. set $solobrowser surf
  8. set $term kitty
  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. # 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 7
  31. set $outer 10
  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 rofi -show ssh
  50. bindsym $mod+Shift+Return exec $term
  51. bindsym $mod+BackSpace exec $term --working-directory ~/src/github.com/15five/fifteen5/
  52. #bindsym $mod+Shift+BackSpace floating enable, move position 48 px 48 px, move scratchpad
  53. #bindsym $mod+Ctrl+BackSpace exec $term -e tmux new-session -A -s scratch
  54. # KILL
  55. bindsym $mod+Shift+q kill
  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. # WORKSPACES
  67. bindsym $mod+Ctrl+Shift+h move workspace to output left
  68. bindsym $mod+Ctrl+Shift+l move workspace to output right
  69. bindsym $mod+Ctrl+Shift+j move workspace to output down
  70. bindsym $mod+Ctrl+Shift+k move workspace to output up
  71. # FOCUS
  72. bindsym $mod+h focus left
  73. bindsym $mod+j focus down
  74. bindsym $mod+k focus up
  75. bindsym $mod+l focus right
  76. bindsym $mod+Left focus left
  77. bindsym $mod+Down focus down
  78. bindsym $mod+Up focus up
  79. bindsym $mod+Right focus right
  80. # MOVE
  81. bindsym $mod+Ctrl+h move left
  82. bindsym $mod+Ctrl+j move down
  83. bindsym $mod+Ctrl+k move up
  84. bindsym $mod+Ctrl+l move right
  85. bindsym $mod+Ctrl+Left move left
  86. bindsym $mod+Ctrl+Down move down
  87. bindsym $mod+Ctrl+Up move up
  88. bindsym $mod+Ctrl+Right move right
  89. # RESIZE
  90. bindsym $mod+Shift+h resize shrink width 20px or 20 ppt
  91. bindsym $mod+Shift+j resize shrink height 20px or 20 ppt
  92. bindsym $mod+Shift+k resize grow height 20px or 20 ppt
  93. bindsym $mod+Shift+l resize grow width 20px or 20 ppt
  94. bindsym $mod+Shift+Left resize shrink width 10px or 10 ppt
  95. bindsym $mod+Shift+Down resize shrink height 10px or 10 ppt
  96. bindsym $mod+Shift+Up resize grow height 10px or 10 ppt
  97. bindsym $mod+Shift+Right resize grow width 10px or 10 ppt
  98. # VERTICAL SPLIT
  99. bindsym $mod+v split v
  100. # HORIZONTAL SPLIT
  101. bindsym $mod+b split h
  102. # FULLSCREEN
  103. bindsym $mod+f fullscreen toggle
  104. # TOGGLE FLOATING
  105. ##bindsym $mod+escape floating toggle; $center
  106. # MODE TOGGLE
  107. bindsym $mod+Shift+space focus mode_toggle
  108. # PAPER MODE
  109. bindsym $mod+Ctrl+space floating toggle; resize set 780px 880px;
  110. # Small PAPER MODE
  111. bindsym $mod+Ctrl+p floating toggle; resize set 480px 580px;
  112. # CENTER FLOATING
  113. bindsym $mod+c $center
  114. # DISPLAYS
  115. bindsym $mod+F1 exec ~/.screenlayout/titan-one.sh
  116. bindsym $mod+F2 exec ~/.screenlayout/titan-two.sh
  117. bindsym $mod+F3 exec ~/.screenlayout/titan-three.sh
  118. bindsym $mod+F4 exec ~/.screenlayout/titan-three-vert.sh
  119. ##### WORKSPACES ##################################
  120. # WORKSPACES
  121. set $ws1 number 1
  122. set $ws2 number 2
  123. set $ws3 number 3
  124. set $ws4 number 4
  125. set $ws5 number 5
  126. set $ws6 number 6
  127. set $ws7 number 7
  128. set $ws8 number 8
  129. set $ws9 number 9
  130. #assign [class="Firefox"] $ws1
  131. #assign [class="emacs"] $ws2
  132. #assign [class="^Zoom"] $ws5
  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 "#FF0F00"
  181. set $bg "#FFFFFF"
  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 screencap
  195. bindsym $mod+Shift+Print exec pkill ffmpeg
  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. # Sreen brightness controls
  201. #bindsym $mod+F5 exec intel_backlight decr
  202. #bindsym $mod+F6 exec intel_backlight incr
  203. bindsym XF86MonBrightnessUp exec ~/.config/i3/bright.sh -u # increase screen brightness
  204. bindsym XF86MonBrightnessDown exec ~/.config/i3/bright.sh -d # decrease screen brightness
  205. bindsym XF86Search exec ~/.config/i3/bright.sh 1 # decrease screen brightness
  206. # ROFI
  207. bindsym $mod+space exec rofi -show combi -display-window "W"
  208. bindsym $mod+P exec --no-startup-id ~/.config/rofi/rofi-pass.sh
  209. bindsym $mod+Shift+p exec --no-startup-id ~/.config/rofi/rofi-otp.sh
  210. bindsym $mod+o exec --no-startup-id ~/.config/rofi/www.sh
  211. bindsym $mod+Shift+o exec --no-startup-id ~/.config/rofi/www-incognito.sh
  212. bindsym $mod+s exec --no-startup-id ~/.config/rofi/web-search.sh
  213. bindsym $mod+Shift+b exec --no-startup-id ~/.config/rofi/books-search.sh
  214. bindsym $mod+Shift+s exec --no-startup-id ~/.config/rofi/slack.sh
  215. # Lock with
  216. bindsym $mod+Shift+F12 exec --no-startup-id i3lock -i ~/var/media/backgrounds/astrobin/`ls -Ar ~/var/media/backgrounds/astrobin/ | tail -n 1` -t
  217. # BACKGROUND
  218. exec hsetroot -cover ~/var/media/backgrounds/bing/`ls -A ~/var/media/backgrounds/bing | tail -n 1`
  219. ##### APP BINDS ###################################
  220. bindsym $mod+n exec $brwoser --target window
  221. bindsym $mod+Shift+n exec $browser --target private-window
  222. bindsym $mod+Shift+c exec org-capture
  223. bindsym $mod+Shift+y exec xfreerdp /u:powellc /p:mainroot /v:telesto.local /w:1200 /h:700
  224. bindsym $mod+Ctrl+y exec pkill xfreerdp
  225. bindsym Print exec --no-startup-id flameshot gui
  226. bindsym $mod+F5 exec --no-startup-id $solobrowser https://15five.15five.com/report/current/
  227. bindsym $mod+F6 exec --no-startup-id $solobrowser https://www.quip.com
  228. bindsym $mod+F7 exec --no-startup-id $solobrowser https://15five-dev.atlassian.net/secure/Dashboard.jspa
  229. bindsym $mod+F8 exec --no-startup-id $solobrowser https://15five.slack.com
  230. bindsym $mod+F9 exec --no-startup-id $solobrowser https://podcasts.unbl.ink/episodes
  231. bindsym $mod+F10 exec --no-startup-id $solobrowser https://goat-cam.unbl.ink/stream
  232. bindsym $mod+F11 exec --no-startup-id $solobrowser https://weather-cam.unbl.ink/stream
  233. bindsym $mod+F12 exec --no-startup-id $solobrowser https://garden-cam.unbl.ink/stream
  234. bindsym $mod+Insert exec --no-startup-id zathura ~/var/documents/15five/strengths.pdf
  235. bindsym $mod+e exec emacsclient -cnq
  236. bindsym $mod+Shift+e exec emacs --daemon
  237. bindsym $mod+Ctrl+e exec pkill emacs
  238. ##### LAUNCH ######################################
  239. # STARTUP
  240. exec --no-startup-id unclutter -grab
  241. # RELOAD
  242. #exec_always --no-startup-id picom --config ~/.config/compton/compton.conf
  243. exec_always --no-startup-id dunst
  244. exec_always --no-startup-id syncthing -no-browser
  245. exec_always xrdb --merge ~/.Xresoureces
  246. # Set wallpaper and keyboard mappings
  247. exec_always --no-startup-id changepaper
  248. exec_always setxkbmap -model pc105 -layout us,ru -option grp:ctrls_toggle -option caps:escape -option compose:ralt
  249. ## Volume control
  250. # Pulse Audio controls
  251. bindsym XF86AudioRaiseVolume exec pulseaudio-ctl up
  252. bindsym XF86AudioLowerVolume exec pulseaudio-ctl down
  253. bindsym XF86AudioMute exec pulseaudio-ctl mute
  254. bindsym XF86AudioMicMute exec pulseaudio-ctl mute-input
  255. bindsym $mod+x exec pulseaudio-ctl up
  256. bindsym $mod+z exec pulseaudio-ctl down
  257. bindsym $mod+Home exec --no-startup-id cvlc https://stream.unbl.ink/mopidy
  258. bindsym $mod+Shift+Home exec --no-startup-idcvlc https://playerservices.streamtheworld.com/api/livestream-redirect/WMEAFM.mp3
  259. bindsym $mod+End exec pkill vlc
  260. bindsym $mod+m exec pulseaudio-ctl mute
  261. # Iapetus central volume
  262. #@bindsym $mod+. exec ssh iapetus.local down
  263. #@bindsym $mod+Shift+. exec ssh iapetus.local up
  264. #@bindsym $mod+Alt+. exec ssh iapetus.local playu
  265. #@bindsym $mod+Ctrl+. exec ssh iapetus.local "pkill vlc"
  266. #bindsym $mod+Shift+. exec pulseaudio-ctl up
  267. #bindsym $mod+Shift+, exec pulseaudio-ctl down
  268. #bindsym XF86AudioRaiseVolume exec mixer vol +5
  269. #bindsym XF86AudioLowerVolume exec mixer vol -5
  270. #bindsym XF86AudioMicMute exec mixer mic toggle