Raketenwilli: Linux: xrandr „hardcore“

Beitrag lesen

„Gespiegelt“ meint: Du siehst auf beiden Monitoren den gleichen Inhalt.

/home/$USER/bin/Nebeneinander:

#!/usr/bin/xrandr --output LVDS1 --primary --scale 1.0 --mode 1366x768  -r 60 --pos 0x0 --rotate normal --output HDMI1 --mode 1920x1080  -r 60 --scale 1.0 --pos 1366x0 --rotate normal

/home/$USER/bin/GespiegeltLowRes:

#!/usr/bin/xrandr --output LVDS1 --primary --scale 1.0 --mode 1366x768  -r 60 --pos 0x0 --rotate normal --output HDMI1 --mode 1920x1080  -r 60 --scale-from 1366x768 --pos 0x0 --rotate normal

/home/$USER/bin/GespiegeltFullHD:

#!/usr/bin/xrandr --output LVDS1 --primary --mode 1366x768 -r 60 --pos 0x0 --scale-from 1920x1080 --rotate normal --output HDMI1 --mode 1920x1080  -r 60 --scale1.0 --pos 0x0 --rotate normal

/home/$USER/bin/NurLaptop:

#!/usr/bin/xrandr --output LVDS1 --primary --scale 1.0 --mode 1366x768 -r 60 --pos 0x0 --rotate normal --output HDMI1 --off

/home/$USER/bin/NurExtMonitor:

#!/usr/bin/xrandr --output LVDS1 --off --output HDMI1 --mode 1920x1080 -r 60 --primary  --scale 1.0 --pos 0x0 --rotate normal

Dateien anlegen (Das sind EINZEILER und müssen EINZEILER werden!), ausführbar machen, aufrufen. Oder: ausführbar machen, als Icons anlegen und anklickbar machen → „Feuer frei“.

Der Ordner /home/$USER/bin hat eine Besonderheit. Existiert dieser (was er nicht „out of the box“ tut), dann wird er beim Anmelden mit in den Suchpfad übernommen. (Quelle: $HOME/.profile) Das heißt, man kann die Skripte im Terminal ohne Pfad aufrufen und die Tab-Taste hilft beim Tippen.

Da ich das hier blind geschrieben habe, nicht testen kann, musst Du das selbst tun.