Feature suggestion: Automatic handling of monitor hotplugging
Peggy Kutyla
peggy.kutyla at laposte.net
Wed Dec 21 17:47:06 CET 2011
Hi,
Until this is done (or not) you could write your own script and launch
it via alt+F2 or a custom launcher.
Here's mine:
LAPTOPSCREEN=LVDS-1
EXTSCREEN=VGA-1
xrandr -q | grep -q "$EXTSCREEN connected"
if [[ $? = 1 ]]
then
xrandr --output $EXTSCREEN --auto --off
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -s true
notify-send -i video-display " " "ViewSonic unconnected"
else
xrandr --output $EXTSCREEN --auto --right-of $LAPTOPSCREEN
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -s false
notify-send -i video-display " " "ViewSonic configured"
fi
Le 20/12/2011 16:05, Michael Seiwald a écrit :
> Hello all,
>
> what I really like about GNOME is that it handles hotplugging of
> external monitors automatically at runtime. This is especially important
> when using a docking station. When I come home and plug my laptop into
> the docking station I want my desktop environment to disable the
> laptop's display and configure the external monitor with my preferred
> resolution instead. And vice versa.
>
> GNOME handles this through the RandR-plugin of gnome-settings-daemon
> [1][2] quite nicely. I would really like to see that in XFCE too. From
> what I understand the best place for this would be xfsettingsd because
> it runs in the background and could react to RRScreenChangeNotify events
> of the X server.
>
> I'm conviced this would be a valuable addition to XFCE for a lot of users.
>
> Kind regards
>
> Michael
>
> [1] https://live.gnome.org/RandR#RANDR_policies_in_GNOME
> [2] http://git.gnome.org/browse/gnome-settings-daemon/tree/plugins/xrandr
>
>
>
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> https://mail.xfce.org/mailman/listinfo/xfce
> http://www.xfce.org
More information about the Xfce
mailing list