vivien on dynamic-properties
json: split generic JSON parsin… map: abstract properties struct… map: support dynamic properties… and 12 more (compare)
Can you try with the
--release bindings? Here's what I use:
bindsym XF86AudioLowerVolume exec BLOCK_BUTTON=5 /usr/local/libexec/i3blocks/volume bindsym XF86AudioMute exec BLOCK_BUTTON=3 /usr/local/libexec/i3blocks/volume bindsym XF86AudioRaiseVolume exec BLOCK_BUTTON=4 /usr/local/libexec/i3blocks/volume bindsym --release XF86AudioLowerVolume exec pkill -SIGRTMIN+10 i3blocks bindsym --release XF86AudioMute exec pkill -SIGRTMIN+10 i3blocks bindsym --release XF86AudioRaiseVolume exec pkill -SIGRTMIN+10 i3blocks
(replace my exec command with your pulseaudio-ctl command for sure)
My related i3blocks config is:
[volume] label=VOL instance=Master interval=once signal=10
Thank you for your message. I tried with
--release and it does work, but it doesn't seem to be as responsive as what I used in my previous message. My blocks isn't always updated and is sometimes out of sync with the real state of the sound (Displays mute when it isn't). If I then refresh i3, it displays the correct state.
Do have I to use the
BLOCK_BUTTON=X in the first 3 lines?
command? Simply clicking on the block should trigger the command and sync the sound status
BLOCK_INSTANCE='/home' /usr/lib/i3blocks/diskon the command line but I'd trying to reproduce the same thing in my configuration.