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.

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