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.

639 lines
23 KiB

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