Open Le-Kat opened 1 year ago
Since eww gives an error if you don't specify a :monitor
, but works when you pass the --screen
argument when opening a bar, it seemed intuitive to me that you would leave off a hardcoded :monitor
definition in the config and just run a loop over your monitors to launch a bar on every monitor. But it does not work.
That's exactly how it works with polybar (for example). This is a snippet of a script I wrote to launch my bars on every monitor:
local monitors="$(polybar -m | sort -r | awk -F: '{ print $1 }')"
for m in $monitors; do
MONITOR=$m polybar top &
MONITOR=$m polybar bottom &
sleep 1
done
Is this really not possible with eww? I found this issue while trying to figure out what I was missing.
This still is a problem in 2024...
Description of the requested feature
when setting a bar to be visible, you need to have a segment that says
:monitor 0
(or whatever monitor number you use). However, for a multi-head setup, it would be usefull to be able to display the same bar on all monitors, without having to copy/paste the current bar definition multiple times.Proposed configuration syntax
This is the part where I'm not sure if there's already a syntax for this, but I tried
:monitor *
(and also not including the segment at all), I figure a sensible syntax would be either using a wildcard to signify all monitors, and an array to signify specific monitors.Additional context
No response