domsson / succade

Run, feed and style your Lemonbar with ease
Creative Commons Zero v1.0 Universal
55 stars 3 forks source link

Issue when using second subscribe #55

Open RestlessLizard opened 3 years ago

RestlessLizard commented 3 years ago

Here is my config. If I enable [volume] block my desktop block will hand and not update at all after initial render

[bar]
name = "testbar"
blocks = "desktop | | volume ram cpu datetime "
height = 30
foreground = "#fff"
background = "#222"
font = "Hack Nerd Font"

separator = "|"
#areas = 16

[default]
label-foreground = "#fff"
affix-foreground = "#555555"
margin = 8

[desktop]
command = "~/scripts/bar/workspaces.sh"
trigger = "bspc subscribe desktop_focus"
margin-left = 16
raw = true

[datetime]
command = "date +'%T %a %F'"
interval = 1
margin-right = 16

[cpu]
label = "CPU "
command = "~/scripts/bar/cpu.sh"
interval = 3

[ram]
label = "RAM "
command = "~/scripts/bar/ram.sh"
interval = 3

[volume]
label = "VOL "
trigger = "pactl subscribe"
command = "~/scripts/bar/vol.sh"
RestlessLizard commented 3 years ago

Also, this issue happens if I try to use another bspc subscribe

domsson commented 3 years ago

Thank you very much for reporting this! I'll look into it and will let you know once I figure out what's going on.

While I'm trying to sort this out, here is a possible workaround: you could use a volume script that doesn't require a trigger and instead keeps printing the volume whenever it changes. I've written one myself, but a quick search also brings up this one. Then you could remove trigger and instead put live = true.

RestlessLizard commented 3 years ago

Wow, thanks for quick response! I love succade so much, props to you buddy!

domsson commented 3 years ago

Only little time recently, just started looking into it now. Haven't figured it out yet, but one interesting finding:

midirhee12 commented 2 years ago

I have the same issue with multiple bspc subscribes. And putting a block before the desktop block does not change behavior in the case of multiple subscribes.

midirhee12 commented 2 years ago

Update: Found some interesting behavior:

[bar]
name = "bar0"
blocks = "foo desktops test | test foo baz | cpu memory datetime"
height = 24
areas = 16
foreground = "#eeeeee"
background = "#00000000"
line-color ="#081e35"
line-width = 2

[default]
label-foreground = "#dddddd"
background = "#88000000"
affix-foreground = "#555555"
margin = 8
padding-left = 1
padding-right = 1
underline = true

[test]
command = "echo test"
trigger = "bsp subscribe"

[foo]
command = "echo foo"
trigger = "bsp subscribe"

[baz]
command = "echo baz"
trigger = "bsp subscribe"

[desktops]
command = "~/.config/succade/desktops.sh"
trigger = "bspc subscribe desktop_focus"
raw = true

[cpu]
command = "~/.config/succade/cpu.sh"
interval = 1
mouse-left = "~/.config/succade/cpups.sh"
mouse-right = "~/.config/succade/cputemp.sh"

[memory]
command = "~/.config/succade/memory.sh"
interval - 1
mouse-left = "~/.config/succade/memoryps.sh"

[datetime]
command = "date +'%y-%m-%d %H:%M'"
interval = 1
margin-right = 8

Not sure if completely related. But I think this expands upon this issue in some way

midirhee12 commented 2 years ago

After a reboot, succaderc deleted itself.

midirhee12 commented 2 years ago

Don't expect me to provide further information. I might be switching b/c this is just ridiculous which I think you can understand.