-
-
Notifications
You must be signed in to change notification settings - Fork 30
Description
Describe the bug
Looks like on the last versions of sway and wlroots, virtual outputs (like those on a thunderbolt dock) are named randomly. I have two displays on a thunderbolt dock that keep changing X
where DP-X
. Those outputs are virtual (one is in fact VGA and the other HDMI, but from the system's point of view they're displayport).
Anyhow the net result is that sometimes, when an output name is changed at random, I won't have a background image in there. For instance, this is the azotebg script before after I fixed it this morning because one of the displays somehow changed DP number after resuming from sleep:
# Before
~ cat .azotebg
#!/usr/bin/env bash
pkill swaybg
swaybg -o DP-8 -i '/home/luis/Pictures/backgrounds/59853.jpg' -m fill &
swaybg -o eDP-1 -i '/home/luis/Pictures/backgrounds/59853.jpg' -m fill &
swaybg -o DP-7 -i '/home/luis/Pictures/backgrounds/59853.jpg' -m fill &
# After
~ cat .azotebg
#!/usr/bin/env bash
pkill swaybg
swaybg -o DP-7 -i '/home/luis/Pictures/backgrounds/59853.jpg' -m fill &
swaybg -o eDP-1 -i '/home/luis/Pictures/backgrounds/59853.jpg' -m fill &
swaybg -o DP-10 -i '/home/luis/Pictures/backgrounds/59853.jpg' -m fill &
To Reproduce
It's pretty hard to reproduce, unless you have my setup exactly.
Expected behavior
The output names change, but obviously the display names remain the same. Perhaps the script could use these instead?
So instead of
swaybg -o DP-7 -i '/home/luis/Pictures/backgrounds/59853.jpg' -m fill
We could have:
swaybg -o "Iiyama North America PL2410HD 11046A0B03094" -i '/home/luis/Pictures/backgrounds/59853.jpg' -m fill
This is in fact the recommended method of configuring your display layouts in Kanshi so that you can have different setups off the same hardware ports (eg built in HDMI and eDP) as it's the only effective way to identify a particular screen.
Desktop (please complete the following information):
- Linux distribution: Ubuntu 21.04
- WM: Sway 1.6-rc2, wlroots master (pre 0.13)
Azote version (please state it clearly if you use -git version):
v1.9.0