You are not logged in.

#1 2017-01-07 14:02:30

tostermaize
Member
Registered: 2016-11-13
Posts: 6

[SOLVED] Volume in i3bar not updating automatically (using i3blocks)

Hello,

I installed i3blocks and use it instead of i3status. Here is a fragment from ~/.i3/config

bindsym XF86AudioRaiseVolume exec amixer set Master 5%+
bindsym XF86AudioLowerVolume exec amixer set Master 5%-

...

bar {
    status_command exec i3blocks
    position top
    font pango: DejaVu Sans Mono 12
}

Here is a fragment from ~/.i3blocks.conf

[volume]
label=VOL
instance=Master
interval=once
signal=2

Raising and lowering volume with those buttons works fine, and the .i3blocks.conf file is also read correctly (when I restart i3, volume in i3 is set correctly), but information in bar is not updating when volume is changed.

It seems that i3blocks ignores the signals or even no signals appear at all. I tried changing signals to vairous values from 1 to 31, but it didn't help. How to make i3bar update automatically when volume is changed?


While on the same road, can you explain what these signals are? I tried to read http://vivien.github.io/i3blocks/ , http://man7.org/linux/man-pages/man7/signal.7.html , https://i3wm.org/docs/userguide.html 5.2 and https://wiki.archlinux.org/index.php/Re … management, but with no results.

Last edited by tostermaize (2017-01-11 11:11:06)

Offline

#2 2017-01-07 22:41:24

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: [SOLVED] Volume in i3bar not updating automatically (using i3blocks)

if your interval is set to once, isn't that telling it to only update when it receives an -RTMIN+# signal?

Offline

#3 2017-01-08 22:56:03

tostermaize
Member
Registered: 2016-11-13
Posts: 6

Re: [SOLVED] Volume in i3bar not updating automatically (using i3blocks)

Hi,

Yes, it should be that way. But how can I make sure those signals are sent to i3blocks?

Offline

#4 2017-01-08 23:24:27

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: [SOLVED] Volume in i3bar not updating automatically (using i3blocks)

you add it after your command, such as

bindsym yourKey exec "yourCommand; pkill yourSignal processName"

Offline

#5 2017-01-10 22:56:56

tostermaize
Member
Registered: 2016-11-13
Posts: 6

Re: [SOLVED] Volume in i3bar not updating automatically (using i3blocks)

Thank you, it works.

Offline

#6 2017-01-11 06:21:43

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: [SOLVED] Volume in i3bar not updating automatically (using i3blocks)

remember to mark it as solved so that others know you found a solution and can benefit

Offline

Board footer

Powered by FluxBB