Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-09-12 15:54:35

FlachyJoe
Member
Registered: 2025-09-12
Posts: 1
LinuxFirefox 128.0

[Solved] Dual monitor: when the right is stopped icons are rearranged

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  roll

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

#2 2025-09-12 20:26:04

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 12,190
LinuxFirefox 142.0

Re: [Solved] Dual monitor: when the right is stopped icons are rearranged

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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 528.26 KiB (Peak: 529.1 KiB) ]