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.

567 lines
19 KiB

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