Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

677 lines
25 KiB

6 years ago
5 years ago
2 years ago
6 years ago
6 years ago
6 years ago
4 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
1 year ago
10 months ago
2 years ago
2 years ago
4 years ago
5 years ago
6 years ago
5 years ago
  1. # startup [[[ #
  2. set $term kitty
  3. # set $term st
  4. # set $term_alt urxvt
  5. {{ if eq .chezmoi.hostname "x1-carbon" }}
  6. set $term urxvt
  7. # set $term_alt kitty
  8. set $term_alt st
  9. # set $term_alt urxvt
  10. #exec dunst
  11. exec /usr/lib/notification-daemon-1.0/notification-daemon
  12. exec compton
  13. exec imwheel
  14. exec numlockx on
  15. exec xbacklight -set 10
  16. # exec wal -i "$(/home/kevin/scripts/shuffler \"/home/kevin/Pictures/Backgrounds/dim/non-editing\")"
  17. exec wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/editing")
  18. {{ end }}
  19. # exec xrdb ~/.Xresources && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null
  20. # exec --no-startup-id i3-msg 'workspace $ws1; exec $term'
  21. # exec --no-startup-id i3-msg 'workspace $ws2; exec $term -e fish -c "tmux-attach fortnite"'
  22. exec --no-startup-id i3-msg 'workspace $ws3; exec $browser'
  23. # exec --no-startup-id i3-msg 'workspace $ws5; exec $term -e twitchy'
  24. # exec --no-startup-id i3-msg 'workspace $ws5; exec firefox -P nft'
  25. exec --no-startup-id i3-msg workspace $ws6; exec discord
  26. exec --no-startup-id i3-msg 'workspace $ws6; exec signal-desktop'
  27. # exec --no-startup-id i3-msg workspace $ws1; exec $term -e fish -c 'tmux-attach school'
  28. # ]]] startup #
  29. # applications [[[ #
  30. set $mod Mod1
  31. set $browser "firefox"
  32. set $browser_secondary "chromium"
  33. # set $browser "chromium"
  34. # set $browser_secondary "firefox"
  35. set $scripts_path "/home/kevin/scripts"
  36. set $sch_dir "$HOME/Documents/School"
  37. # app shortcuts [[[ #
  38. set $type_delay_cmd sleep .3
  39. bindsym Control+Return exec $term
  40. bindsym Control+Shift+Return exec st -A1
  41. bindsym Control+$mod+Return exec $term_alt
  42. # bindsym Control+$mod+Return exec st
  43. # PROTIP: You can also dynamically set dmenu's colors this way:
  44. bindsym Mod4+Return exec /home/kevin/scripts/dmenu-history -nb "$fg" -nf "$bg" -sb "$bg" -sf "$fg"
  45. # bindsym Mod4+Return exec dmenu_run -nb "$fg" -nf "$bg" -sb "$bg" -sf "$fg"
  46. # bindsym Mod4+Return exec dmenu_run
  47. # There also is the (new) i3-dmenu-desktop which only displays applications
  48. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  49. # installed.
  50. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  51. # bindsym Mod4+b layout tabbed; exec zathura
  52. # bindsym Mod4+c exec $browser
  53. # bindsym Mod4+$mod+c exec chatterino
  54. #bindsym Mod4+c exec chatterino
  55. bindsym Mod4+c exec pass -c finances/metamask
  56. bindsym Mod4+$mod+c exec $browser
  57. # bindsym Mod4+e exec notify-send "HPS Word Count" "$(pdftotext /home/kevin/school/latex-notes/hps/essay.pdf - | wc -w)"
  58. # bindsym Mod4+e exec emacs
  59. # bindsym Mod4+e exec ~/scripts/twem
  60. # bindsym Mod4+f exec firefox
  61. # bindsym Mod4+f exec firefox --private-window
  62. # bindsym Mod4+f exec firefox --private-window google.ca
  63. # bindsym Mod4+$mod+f exec printf 'Kevin@fosstodon.org' | xclip -selection clipboard
  64. # bindsym Mod4+h exec sleep .2 && xdotool type '.hint'
  65. # bindsym Mod4+$mod+h exec $type_delay_cmd && xdotool type 'kevin.mok@live.ca'
  66. bindsym Mod4+h exec $type_delay_cmd && xdotool type 'kevin.mok@live.ca'
  67. # bindsym Mod4+$mod+h exec sleep .2 && xdotool type '.hint'
  68. bindsym Mod4+$mod+i exec sleep .2 && xdotool type '.info latest'
  69. bindsym Mod4+l exec ~/scripts/dmenu-twitch
  70. # bindsym Mod4+m exec $term -e ~/scripts/vim-man
  71. bindsym Mod4+m exec $type_delay_cmd && xdotool type 'me@kevin-mok.com'
  72. # bindsym Mod4+$mod+m exec pass -c uoft/markus
  73. bindsym Mod4+n exec $term -e nvim
  74. # bindsym Mod4+$mod+o exec xset dpms force off
  75. bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail && $type_delay_cmd && xdotool key 'Control_L+v'
  76. bindsym $mod+Mod4+o workspace $ws11; exec obs
  77. # bindsym Mod4+p workspace $ws4; exec pgadmin3
  78. # bindsym Mod4+p exec pycharm
  79. bindsym Mod4+p exec passmenu
  80. # # bindsym Mod4+p exec sleep .2 && xdotool type '.catch '
  81. # bindsym Mod4+$mod+p exec notify-send "ping" "$(ping -c 3 -W 1 8.8.8.8)"
  82. # bindsym Mod4+q exec qdirstat
  83. bindsym Mod4+q exec printf 'emad1 ' | xclip -selection clipboard && $type_delay_cmd && xdotool key 'Control_L+v'
  84. bindsym Mod4+r exec $type_delay_cmd && xdotool type 'kmok@redhat.com'
  85. bindsym Mod4+$mod+r exec pass show -c career/redhat && $type_delay_cmd && xdotool key 'Control_L+v'
  86. # bindsym Mod4+$mod+r exec $term -e ranger
  87. # bindsym Mod4+$mod+r exec notify-send "watson restart" "$(watson restart)"
  88. bindsym Mod4+$mod+s exec $type_delay_cmd && xdotool type 'https://smol.gq/'
  89. bindsym Mod4+$mod+t exec xclip -selection clipboard ~/.password-store/social/trapbot && $type_delay_cmd && xdotool key 'Control_L+v'
  90. bindsym Mod4+u exec $type_delay_cmd && xdotool type 'kevin.mok@mail.utoronto.ca'
  91. # bindsym Mod4+$mod+u exec pass -c uoft/acorn
  92. # bindsym Mod4+w exec notify-send "watson status" "$(watson status)"
  93. # bindsym Mod4+$mod+w exec notify-send "watson stop" "$(watson status && watson stop)"
  94. bindsym Control+Mod4+w exec $term -e nvim /home/kevin/.config/watson/state.tmp
  95. # bindsym Mod4+x exec $swex
  96. bindsym Control+$mod+x exec $type_delay_cmd && xdotool type 'http://codm.ataraxy.tk/'
  97. bindsym Mod4+z exec cliqz
  98. bindsym Pause exec ~/scripts/twem
  99. # screenshot [[[ #
  100. set $screenshot_folder "/home/kevin/Pictures/screenshots/desktop/unsorted"
  101. set $scripts_path "/home/kevin/scripts"
  102. {{ if .ext_kb }}
  103. # bindsym Mod4+x exec ~/scripts/xmodmap-custom
  104. bindsym Mod4+x exec notify-send "xmodmap" "$(~/scripts/xmodmap-custom)"
  105. # bindsym Mod4+e exec notify-send "HPS Word Count" "$(pdftotext /home/kevin/school/latex-notes/hps/essay.pdf - | wc -w)"
  106. # bindsym Print --release exec "scrot -s $screenshot_folder/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
  107. bindsym Print --release exec "maim -su | tee ~/Pictures/screenshots/desktop/unsorted/screenshot-$(date +%F_%T).png | xclip -selection clipboard -t image/png"
  108. bindsym Control+Print --release exec "scrot -u ~/Pictures/screenshots/desktop/unsorted/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
  109. {{ else }}
  110. bindsym Mod4+x exec xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE
  111. bindsym Control+p --release exec "scrot -s ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
  112. bindsym Control+$mod+p --release exec "scrot -u ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
  113. {{ end }}
  114. # ]]] screenshot #
  115. # ]]] app shortcuts #
  116. # redshift [[[ #
  117. bindsym $mod+Mod4+1 exec redshift -x && redshift -O 1100
  118. bindsym $mod+Mod4+2 exec redshift -x && redshift -O 2000
  119. bindsym $mod+Mod4+3 exec redshift -x && redshift -O 3000
  120. bindsym $mod+Mod4+4 exec redshift -x && redshift -O 4000
  121. bindsym $mod+Mod4+5 exec redshift -x && redshift -O 5000
  122. bindsym $mod+Mod4+grave exec redshift -x
  123. # ]]] redshift #
  124. # backlight [[[ #
  125. {{ if eq .chezmoi.hostname "x1-carbon" }}
  126. bindsym Shift+F1 exec xbacklight -set 10
  127. bindsym Shift+F2 exec xbacklight -set 20
  128. bindsym Shift+F3 exec xbacklight -set 30
  129. bindsym Shift+F4 exec xbacklight -set 40
  130. bindsym Shift+F5 exec xbacklight -set 50
  131. bindsym Shift+F6 exec xbacklight -set 60
  132. bindsym Shift+F7 exec xbacklight -set 70
  133. bindsym Shift+F8 exec xbacklight -set 80
  134. bindsym Shift+F9 exec xbacklight -set 90
  135. bindsym Shift+F10 exec xbacklight -set 100
  136. bindsym Control+$mod+plus exec xbacklight -inc 2
  137. bindsym Control+$mod+minus exec xbacklight -dec 2
  138. bindsym Control+$mod+w exec sudo systemctl start netctl-auto@wlp3s0.service
  139. bindsym Control+$mod+q exec sudo systemctl stop netctl-auto@wlp3s0.service
  140. {{ end }}
  141. # ]]] backlight #
  142. for_window [class="chatterino"] floating enable
  143. for_window [class="Peek"] floating enable
  144. for_window [title="Qalculate!"] floating enable
  145. for_window [window_role="alert"] floating enable
  146. no_focus [window_role="alert"]
  147. # ]]] applications #
  148. # container display [[[ #
  149. # Font for window titles
  150. font pango:$sb_font 11
  151. bindsym $mod+s layout stacking
  152. # change container layout (stacked, tabbed, toggle split)
  153. bindsym $mod+t layout tabbed
  154. bindsym $mod+e layout toggle split
  155. # enter fullscreen mode for the focused container
  156. bindsym $mod+f fullscreen toggle
  157. # toggle tiling /floating
  158. bindsym $mod+Shift+space floating toggle
  159. # change focus between tiling / floating windows
  160. bindsym $mod+space focus mode_toggle
  161. # focus the parent container
  162. # bindsym $mod+a focus parent
  163. # focus the child container
  164. #bindsym $mod+d focus child
  165. # gaps [[[ #
  166. set $inner_gaps 20
  167. # set $inner_gaps 7
  168. # set $inner_gaps 0
  169. set $outer_gaps 0
  170. # set $border_radius 15
  171. set $border_radius 0
  172. # remove window titlebars
  173. # for_window [class="^.*"] border pixel 2
  174. for_window [class="^.*"] border pixel 3
  175. # gaps inner $inner_gaps
  176. # gaps outer $outer_gaps
  177. # gaps bottom 0
  178. gaps inner 0
  179. gaps outer 0
  180. {{ if eq .chezmoi.hostname "nzxt" }}
  181. # border_radius $border_radius
  182. {{ end }}
  183. # other gaps [[[ #
  184. # gaps horizontal 20
  185. # gaps vertical 10
  186. # gaps top
  187. # gaps left 20
  188. # gaps right 20
  189. # gaps bottom
  190. # ]]] other gaps #
  191. bindsym Control+shift+plus gaps inner all set $inner_gaps;gaps outer all set $outer_gaps
  192. bindsym Control+shift+0 gaps inner all set 0;gaps outer all set 0
  193. # ]]] gaps #
  194. # colors from pywal [[[ #
  195. set_from_resource $fg i3wm.color7 #f0f0f0
  196. #F0F0F0
  197. # Set colors from Xresources
  198. # Change 'color7' and 'color2' to whatever colors you want i3 to use
  199. # from the generated scheme.
  200. # NOTE: The '#f0f0f0' in the lines below is the color i3 will use if
  201. # it fails to get colors from Xresources.
  202. set_from_resource $bg i3wm.color2 #f0f0f0
  203. # class border backgr. text indicator child_border
  204. client.focused $bg $bg $fg $bg $bg
  205. # client.unfocused $fg $bg $fg $bg $fg
  206. # client.urgent $bg $bg $fg $bg $bg
  207. # client.placeholder $bg $bg $fg $bg $bg
  208. # client.background $bg
  209. # ]]] colors from pywal #
  210. # ]]] container display #
  211. # moving windows [[[ #
  212. # Use Mouse+$mod to drag floating windows to their wanted position
  213. floating_modifier $mod
  214. # change focus
  215. bindsym Control+h focus left
  216. bindsym Control+j focus down
  217. bindsym Control+k focus up
  218. bindsym Control+l focus right
  219. # move workspace to other monitor
  220. bindsym $mod+minus move workspace to output left
  221. bindsym $mod+plus move workspace to output right
  222. # move focused window
  223. {{ if eq .chezmoi.hostname "x1-carbon" }}
  224. bindsym Control+Shift+h move left 50px
  225. bindsym Control+Shift+j move down 50px
  226. bindsym Control+Shift+k move up 50px
  227. bindsym Control+Shift+l move right 50px
  228. {{ else }}
  229. bindsym Control+Shift+h move left
  230. bindsym Control+Shift+j move down
  231. bindsym Control+Shift+k move up
  232. bindsym Control+Shift+l move right
  233. {{ end }}
  234. # split in horizontal orientation
  235. bindsym $mod+b split h
  236. bindsym Control+$mod+b split h; exec $term
  237. # split in vertical orientation
  238. bindsym $mod+v split v
  239. bindsym Mod4+$mod+v split v; exec $term
  240. # resizing windows #
  241. bindsym Control+$mod+h resize grow width 5 px or 5 ppt
  242. bindsym Control+$mod+k resize grow height 5 px or 5 ppt
  243. bindsym Control+$mod+j resize shrink height 5 px or 5 ppt
  244. bindsym Control+$mod+l resize shrink width 5 px or 5 ppt
  245. # bindsym Control+Shift+x kill
  246. bindsym shift+x kill
  247. bindsym Control+$mod+t sticky toggle
  248. # bindsym Control+$mod+a floating enable; resize set 400px 125px; move absolute position 1648 200; sticky enable
  249. bindsym Control+$mod+a floating enable; resize set 400px 150px; move absolute position 424 945; sticky enable
  250. # for_window [class="ada-mario"] floating enable
  251. # for_window [class="ada-mario"] move absolute position 640 0
  252. # ]]] moving windows #
  253. # backgrounds [[[ #
  254. set $make_st_script "/home/kevin/st/make-st.sh"
  255. # test
  256. {{ if eq .chezmoi.hostname "x1-carbon" }}
  257. bindsym Control+Shift+q exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/editing") && $make_st_script
  258. bindsym Control+Shift+w exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") && $make_st_script
  259. bindsym Control+$mod+z exec feh --bg-fill ~/Pictures/Backgrounds/dim/black.jpg
  260. {{ else }}
  261. bindsym Control+$mod+q exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/editing") && $make_st_script
  262. bindsym Control+$mod+w exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") && $make_st_script
  263. {{ end }}
  264. bindsym $mod+r exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/editing") && $make_st_script
  265. bindsym Control+$mod+y exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/non-editing") && $make_st_script
  266. # ]]] backgrounds #
  267. # ws names [[[ #
  268. set $ws1 "1 "
  269. {{ if eq .chezmoi.hostname "x1-carbon" }}
  270. set $secondary "HDMI2"
  271. set $main "eDP1"
  272. {{ else if eq .chezmoi.hostname "nzxt" }}
  273. set $secondary "DVI-I-1"
  274. set $main "HDMI-0"
  275. {{ end }}
  276. # workspace $ws1 output $main
  277. workspace $ws1 output $secondary
  278. bindsym $mod+F1 workspace $ws1; exec $term
  279. bindsym Mod4+$mod+F1 workspace $ws1; exec chatterino
  280. bindsym Control+Shift+F1 workspace $ws1; exec $term -e fish -c 'tmux-attach school'
  281. # bindsym Control+Shift+F1 workspace $ws1; exec $term -e fish -c 'tmux-attach nft'
  282. set $ws2 "2 "
  283. set $work_laptop_ip "192.168.0.11"
  284. workspace $ws2 output $secondary
  285. bindsym $mod+F2 workspace $ws2; exec $term
  286. # bindsym Control+Shift+F2 workspace $ws2; exec $term -e mosh kmok@$work_laptop_ip -- tmux a -t nzxt
  287. # bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach fortnite'
  288. # bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach nft-2'
  289. bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach school-2'
  290. bindsym $mod+Shift+F2 workspace $ws2; exec $term -e mosh kmok@$work_laptop_ip -- tmux a -t nzxt-2
  291. # ws3 [[[ #
  292. set $ws3 "3 "
  293. # set $ws3 "3 "
  294. # workspace $ws3 output $main
  295. # bindsym $mod+F3 workspace $ws3; exec $browser
  296. # bindsym $mod+F3 exec $browser; move container to workspace $ws3; workspace $ws3
  297. bindsym $mod+F3 exec $browser
  298. bindsym Control+Shift+F3 workspace $ws3; exec firefox -P work
  299. # bindsym Mod4+$mod+F3 workspace $ws3; exec $browser_secondary
  300. bindsym Mod4+$mod+F3 workspace $ws3; exec firefox -P default
  301. # bindsym Mod4+$mod+F3 workspace $ws3; exec firefox -P work
  302. # bindsym Mod4+b workspace $ws3; layout stacked; exec $term -e fish -c "buku-fzf"
  303. # bindsym Mod4+$mod+b workspace $ws3; layout stacked; exec $term -e fish -c "buku-fzf fq"
  304. # bindsym Mod4+b layout stacked; exec $term -e fish -c "buku-fzf"
  305. # bindsym Mod4+$mod+b layout stacked; exec $term -e fish -c "buku-fzf fq"
  306. bindsym Mod4+b layout tabbed; exec $term -e fish -c "buku-fzf"
  307. bindsym Mod4+$mod+b layout tabbed; exec $term -e fish -c "buku-fzf fq"
  308. # bindsym Mod4+g workspace $ws3; layout tabbed; exec gimp
  309. # ]]] ws3 #
  310. set $ws4 "4 󱓧"
  311. workspace $ws4 output $secondary
  312. # bindsym $mod+F4 workspace $ws4; exec $term
  313. # bindsym Control+Shift+F4 workspace $ws4; exec $term -e fish -c 'tmux-attach misc'
  314. bindsym $mod+F4 workspace $ws4; exec $term -e fish -c 'tmux-attach misc'
  315. # bindsym Mod4+$mod+F4 workspace $ws4; exec urxvt -e ranger $screenshot_folder
  316. bindsym Mod4+$mod+F4 workspace $ws4; exec kitty ranger $screenshot_folder
  317. bindsym Mod4+e workspace $ws4; exec libreoffice ~/Documents/expenses/investments.ods
  318. bindsym Mod4+g workspace $ws4; layout tabbed; exec gimp
  319. # ws5 [[[ #
  320. set $ws5 "5 "
  321. # workspace $ws5 output $secondary
  322. assign [class="Steam"] $ws5
  323. bindsym $mod+F5 workspace $ws5; exec $browser
  324. # bindsym $mod+Mod4+F5 workspace $ws5; exec firefox -P work
  325. bindsym $mod+Mod4+F5 workspace $ws5; exec firefox -P nft
  326. # bindsym $mod+Mod4+F5 workspace $ws5; exec firefox --private-window
  327. bindsym Control+Shift+F5 workspace $ws5; exec firefox -P work
  328. bindsym Mod4+f workspace $ws5; exec firefox --private-window google.ca
  329. bindsym $mod+Shift+F5 workspace $ws5; exec chromium
  330. # bindsym Mod4+g workspace $ws5; layout stacking; exec $term -e steam
  331. # bindsym Mod4+g workspace $ws5; layout tabbed; exec gimp
  332. # bindsym Mod4+g workspace $ws5; exec mgba-qt
  333. # bindsym Mod4+i workspace $ws5; exec idea
  334. # bindsym Mod4+m workspace $ws5; layout tabbed; exec $term -e ~/.minetest/minetest/bin/minetest
  335. # bindsym Mod4+$mod+t workspace $ws5; exec thunderbird
  336. # bindsym Mod4+$mod+w workspace $ws5; exec $term -e twitchy
  337. # bindsym Mod4+w workspace $ws5; exec $term -e twitchy
  338. bindsym Mod4+5 workspace $ws5; exec godot
  339. bindsym Mod4+F5 workspace $ws5; exec cd ~/coding/ada-mario && godot -e
  340. # for_window [class="Move_mouse_with_head"] floating enable; move absolute position 0 0
  341. for_window [class="Face_detector"] floating enable
  342. for_window [class="Face_detector"] move absolute position 0 0
  343. for_window [class="ada-mario"] floating enable
  344. # for_window [class="ada-mario"] move absolute position 930 480
  345. for_window [class="ada-mario"] move absolute position 640 0
  346. # ]]] ws5 #
  347. # ws6 [[[ #
  348. set $ws6 "6 "
  349. workspace $ws6 output $secondary
  350. assign [class="Slack"] $ws6
  351. bindsym Mod4+d workspace $ws6; exec discord
  352. bindsym Mod4+$mod+d workspace $ws6; exec element-desktop
  353. bindsym Mod4+i workspace $ws6; exec signal-desktop
  354. # bindsym Mod4+d workspace $ws6; exec firefox -new-window https://riot.im/app
  355. bindsym Mod4+k workspace $ws6; exec slack
  356. # bindsym Mod4+i workspace $ws6; exec $term -e fish -c 'mosh kmok@$work_laptop_ip -- tmux a -t weechat'
  357. # bindsym Mod4+i workspace $ws6; exec $term -e fish -c 'mosh kmok@$work_laptop_ip -- tmux a -t weechat'
  358. # bindsym Mod4+i workspace $ws6; exec $term -e fish -c 'tmux-attach weechat'
  359. # ]]] ws6 #
  360. set $ws7 "7 "
  361. workspace $ws7 output $secondary
  362. # bindsym $mod+F7 workspace $ws7; exec $term
  363. # bindsym $mod+F7 workspace $ws7; exec $term -e mosh kmok@$work_laptop_ip -- tmux a -t nzxt
  364. bindsym $mod+F7 workspace $ws7; exec $term
  365. bindsym Mod4+$mod+F7 workspace $ws7; exec $term -e mosh --ssh='ssh -p 399' kevin@165.22.239.234 tmux a
  366. bindsym $mod+Shift+F7 workspace $ws7; exec chromium https://txstreet.com/v/eth
  367. bindsym Mod4+a workspace $ws7; exec android-file-transfer
  368. # bindsym Mod4+v workspace $ws7; exec VBoxManage startvm "369-a1"
  369. set $ws8 "8 "
  370. # assign [class="jetbrains-"] $ws8
  371. workspace $ws8 output $secondary
  372. # bindsym $mod+F8 workspace $ws8; exec $term
  373. # bindsym $mod+F8 workspace $ws8; exec $term -e tmux a -t journal
  374. bindsym $mod+F8 workspace $ws8; exec $term -e fish -c 'tmux-attach journal'
  375. bindsym Mod4+$mod+F8 workspace $ws8; exec libreoffice ~/Documents/sit-stand/sit-stand.ods
  376. bindsym $mod+Shift+F8 workspace $ws8; exec libreoffice ~/Documents/red-hat/workday.ods
  377. set $ws9 "9 "
  378. workspace $ws9 output $secondary
  379. # bindsym $mod+F9 workspace $ws9; exec $term
  380. # bindsym $mod+F9 workspace $ws9; exec $term -e tmux a -t config
  381. bindsym $mod+F9 workspace $ws9; exec $term -e fish -c 'tmux-attach config'
  382. set $ws10 "10 "
  383. # set $ws10 "10 🎵"
  384. assign [class="spotify"] $ws10
  385. workspace $ws10 output $secondary
  386. set $hp 2
  387. # bindsym Mod4+v workspace $ws10; exec $term -e alsamixer -c 0
  388. bindsym Mod4+v workspace $ws10; exec $term -e alsamixer -c 1
  389. # bindsym Mod4+$mod+c workspace $ws10; exec $term -e cava
  390. # bindsym Mod4+h workspace $ws10; exec $term -e alsamixer -c $hp
  391. # bindsym Mod4+s workspace $ws10; exec ~/scripts/spotify-clean
  392. bindsym Mod4+s workspace $ws10; exec spotify
  393. set $ws11 "11 "
  394. # set $ws11 "11 📊"
  395. # assign [class="Summoners War Exporter"] $ws11
  396. workspace $ws11 output $secondary
  397. # bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_CPU
  398. bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_MEM
  399. # bindsym Mod4+$mod+F11 workspace $ws11; exec $term -e fish -c 'tmux-attach backup'
  400. bindsym Control+Shift+F11 workspace $ws11; exec $term -e fish -c 'tmux-attach backup'
  401. bindsym Mod4+t workspace $ws11; exec nordvpn connect && transmission-gtk
  402. # bindsym $mod+F11 workspace $ws11; exec $term -e gotop -m
  403. # bindsym Mod4+a workspace $ws11; exec antimicro
  404. set $ws12 "12 "
  405. bindsym $mod+F12 workspace $ws12; exec $term
  406. set $ws13 "13 "
  407. bindsym Mod4+F3 workspace $ws13; exec $term
  408. set $ws14 "14"
  409. set $ws15 "15"
  410. # ]]] ws names #
  411. # ws bindings [[[ #
  412. # bindsym $mod+h workspace prev
  413. # bindsym $mod+l workspace next
  414. bindsym $mod+1 workspace $ws1
  415. bindsym $mod+2 workspace $ws2
  416. bindsym $mod+3 workspace $ws3
  417. bindsym $mod+4 workspace $ws4
  418. bindsym $mod+5 workspace $ws5
  419. bindsym $mod+6 workspace $ws6
  420. bindsym $mod+7 workspace $ws7
  421. bindsym $mod+8 workspace $ws8
  422. bindsym $mod+9 workspace $ws9
  423. bindsym $mod+0 workspace $ws10
  424. bindsym Mod4+1 workspace $ws11
  425. # bindsym Mod4+2 workspace $ws12
  426. # bindsym Mod4+3 workspace $ws13
  427. # bindsym Mod4+4 workspace $ws14
  428. # bindsym Mod4+5 workspace $ws15
  429. # move container to ws [[[ #
  430. bindsym $mod+Control+1 move container to workspace $ws1; workspace $ws1
  431. bindsym $mod+Control+2 move container to workspace $ws2; workspace $ws2
  432. bindsym $mod+Control+3 move container to workspace $ws3; workspace $ws3
  433. bindsym $mod+Control+4 move container to workspace $ws4; workspace $ws4
  434. bindsym $mod+Control+5 move container to workspace $ws5; workspace $ws5
  435. bindsym $mod+Control+6 move container to workspace $ws6; workspace $ws6
  436. bindsym $mod+Control+7 move container to workspace $ws7; workspace $ws7
  437. bindsym $mod+Control+8 move container to workspace $ws8; workspace $ws8
  438. bindsym $mod+Control+9 move container to workspace $ws9; workspace $ws9
  439. bindsym $mod+Control+0 move container to workspace $ws10; workspace $ws10
  440. bindsym $mod+Shift+1 move container to workspace $ws11; workspace $ws11
  441. bindsym $mod+Shift+2 move container to workspace $ws12; workspace $ws12
  442. bindsym $mod+Shift+3 move container to workspace $ws13; workspace $ws13
  443. bindsym $mod+Shift+4 move container to workspace $ws14; workspace $ws14
  444. bindsym $mod+Shift+5 move container to workspace $ws15; workspace $ws15
  445. # ]]] move container to ws #
  446. # ]]] ws bindings #
  447. # reload config [[[ #
  448. bindsym Control+$mod+r exec i3-msg restart
  449. bindsym $mod+Shift+c reload
  450. # bindsym $mod+Control+r reload
  451. bindsym $mod+Control+u exec xrdb ~/.Xresources && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null
  452. # exit i3 (logs you out of your X session)
  453. bindsym Control+$mod+s exec systemctl suspend
  454. bindsym $mod+Shift+e 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' 'i3-msg exit'"
  455. # ]]] reload config #
  456. # status bar [[[ #
  457. # bar vars [[[ #
  458. # set $sb_font Hack NF Bold
  459. set $sb_font Hack Nerd Font Mono Bold
  460. # set $sb_font EmojiOne
  461. # set $sb_font DejaVuSansMono Nerd Font Mono Bold
  462. set $black #000000
  463. set $white #ffffff
  464. for_window [class="Yad"] floating enable
  465. # set $inactive_ws_bg $white
  466. set $inactive_ws_bg #444c52
  467. #00ffff
  468. # set $inactive_ws_trans 96
  469. set $inactive_ws_trans 00
  470. # set $active_ws_trans 91
  471. set $active_ws_trans 4b
  472. set $focused_ws_text #ffffff
  473. # ]]] bar vars #
  474. # main bar [[[ #
  475. # set $bar_trans 64
  476. set $bar_trans 00
  477. set $main_ws_trans aa
  478. bar {
  479. i3bar_command i3bar -t
  480. {{ if eq .chezmoi.hostname "x1-carbon" }}
  481. font pango:$sb_font 17
  482. {{ else }}
  483. # font pango:$sb_font 17
  484. font pango:$sb_font 16
  485. {{ end }}
  486. colors {
  487. # 0 (transparent) -> 255 (opaque) in hex
  488. background $black$bar_trans
  489. # border, bg, text color
  490. # focused_workspace $inactive_ws_bg $bg $focused_ws_text
  491. focused_workspace $inactive_ws_bg $bg $fg
  492. # active = focused on other screen
  493. active_workspace $inactive_ws_bg $fg$active_ws_trans $fg
  494. inactive_workspace $inactive_ws_bg $inactive_ws_bg$inactive_ws_trans $fg
  495. }
  496. tray_output none
  497. # status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
  498. status_command 2>/tmp/i3blocks.err i3blocks -vvv -c ~/.config/i3blocks/i3blocks.conf | tee /tmp/i3blocks.out
  499. output $main
  500. # output $secondary
  501. wheel_up_cmd nop
  502. wheel_down_cmd nop
  503. }
  504. # ]]] main bar #
  505. # secondary bar [[[ #
  506. bar {
  507. # output $main
  508. output $secondary
  509. {{ if eq .chezmoi.hostname "x1-carbon" }}
  510. font pango:$sb_font 18
  511. {{ else }}
  512. # font pango:$sb_font 21
  513. font pango:$sb_font 20
  514. # font pango:$sb_font 17
  515. {{ end }}
  516. # output $main
  517. i3bar_command i3bar -t
  518. colors {
  519. background $black$bar_trans
  520. # border, bg, text color
  521. # focused_workspace $inactive_ws_bg $bg $focused_ws_text
  522. focused_workspace $inactive_ws_bg $bg $fg
  523. active_workspace $inactive_ws_bg $fg$active_ws_trans $fg
  524. inactive_workspace $inactive_ws_bg $inactive_ws_bg$inactive_ws_trans $fg
  525. }
  526. status_command i3blocks -c ~/.config/i3blocks/i3blocks-secondary.conf
  527. # status_command 2>/tmp/i3blocks-sam.err i3blocks -vvv -c ~/.config/i3blocks/sam-i3blocks.conf | tee /tmp/i3blocks-sam.out
  528. tray_output none
  529. wheel_up_cmd nop
  530. wheel_down_cmd nop
  531. }
  532. # ]]] secondary bar #
  533. # display bar [[[ #
  534. # bar {
  535. # i3bar_command i3bar -t
  536. # font pango:$sb_font 23
  537. # tray_output none
  538. # status_command i3blocks -c ~/.config/i3blocks/i3blocks-display.conf
  539. # output $secondary
  540. # wheel_up_cmd nop
  541. # wheel_down_cmd nop
  542. # }
  543. # ]]] display bar #
  544. # ]]] status bar #
  545. # media keys [[[ #
  546. # sink
  547. bindsym XF86AudioRaiseVolume exec amixer -q -D pulse sset Master 5%+ && pkill -RTMIN+1 i3blocks
  548. bindsym Control+d exec ~/linux-config/scripts/change-sink dac
  549. # bindsym Control+shift+d exec ~/linux-config/scripts/change-sink dac2
  550. bindsym Control+o exec ~/linux-config/scripts/change-sink line-out
  551. # media
  552. # fn key [[[ #
  553. bindsym XF86AudioLowerVolume exec amixer -q -D pulse sset Master 5%- && pkill -RTMIN+1 i3blocks
  554. bindsym XF86AudioMute exec amixer -q -D pulse sset Master toggle && pkill -RTMIN+1 i3blocks
  555. bindsym XF86AudioPlay exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
  556. # bindsym XF86AudioStop exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop"
  557. bindsym XF86AudioPrev exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
  558. bindsym XF86AudioNext exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
  559. # ]]] fn key #
  560. # ]]] media keys #
  561. # vim: fdm=marker ft=i3.go-template