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.

568 lines
19 KiB

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