NoPaste

display_settings.sh

von Rhutos

SNIPPET_TEXT:
  1. #!/bin/sh
  2. Primary_Name="DP-4"
  3. Primary_Width=3840
  4. Primary_Height=2160
  5.  
  6. Secondary_Name="DP-0"
  7. Secondary_Width=3840
  8. Secondary_Height=2160
  9.  
  10. HDTV_Name="HDMI-0"
  11. HDTV_Width=1920
  12. HDTV_Height=1080
  13.  
  14. xrandr \
  15.         --output "$Primary_Name" \
  16.         --primary \
  17.         --mode "${Primary_Width}x$Primary_Height" \
  18.         --pos "`expr $Secondary_Width + $HDTV_Width`x0" \
  19.         --output "$Secondary_Name" \
  20.         --mode "${Secondary_Width}x$Secondary_Height" \
  21.         --left-of "$Primary_Name" \
  22.         --pos "${HDTV_Width}x0" \
  23.         --output "$HDTV_Name" \
  24.         --mode "${HDTV_Width}x$HDTV_Height" \
  25.         --left-of "$Secondary_Name" \

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN