You are not logged in.
Hi,
I'm using two monitors but only activate the right one when I need it with:
xrandr --output HDMI-0 --auto --primary --output VGA-0 --auto --left-of HDMI-0
Desktop icons are always on the primary left, it's ok.
When I stop the second monitor with:
xrandr --output HDMI-0 --auto --primary --output VGA-0 --off
The icons are rearranged to the right of the left monitor, it's very annoying.
Could you please help me?
Added later 35 min 54 s:
Found ! It's only needed to ask and then you find the solution
My script to stop VGA is now
#!/bin/bash
# save desktop icons placement
cp ~/.config/xfce4/desktop/icons.screen0.yaml ~/.config/xfce4/desktop/icons.screen0.yaml.save
# stop VGA
xrandr --output VGA-0 --off --output HDMI-0 --auto --primary
# restore icons placement
cp ~/.config/xfce4/desktop/icons.screen0.yaml ~/.config/xfce4/desktop/icons.screen0.yaml.save
# restart xfdesktop
pgrep xfdesktop && (xfdesktop -Q; xfdesktop &) || xfdesktop &
Thank to https://forum.xfce.org/viewtopic.php?id=18016
Last edited by FlachyJoe (2025-09-12 16:31:05)
Offline
Welcome to the forum.
Found ! It's only needed to ask and then you find the solution
I find the same happens to me.
Thanks for posting back your solution.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 528.26 KiB (Peak: 529.1 KiB) ]