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.

591 lines
21 KiB

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