vivien on dynamic-properties
json: split generic JSON parsin… map: abstract properties struct… map: support dynamic properties… and 12 more (compare)
I have the following in my i3 config file and only the XF86 doesn't update my i3blocks. The weird thing is that the Raise and Lower volume both works.... Any idea? Cheers!
Pulse Audio controls
bindsym XF86AudioRaiseVolume exec pulseaudio-ctl up && pkill -SIGRTMIN+1 i3blocks # increase sound volume by 5%
bindsym XF86AudioLowerVolume exec pulseaudio-ctl down && pkill -SIGRTMIN+1 i3blocks # decrease sound volume by 5%
bindsym XF86AudioMute exec pulseaudio-ctl mute && pkill -SIGRTMIN+1 i3blocks # mute sound
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
Hey @vivien,
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/disk
on the command line but I'd trying to reproduce the same thing in my configuration.