gdctl(1)

πŸ‘‘ gdctl β€” GNOME Display Controller πŸ’…

okay bestie, welcome to gdctl, the GNOME Display Controller ✨ β€” it lives in the User Commands corner of your man pages and it is literally here to make your monitors behave. πŸ–₯️🌸

🐚 SYNOPSIS

gdctl [-h] COMMAND ...

πŸ’– DESCRIPTION

so gdctl gives you the means to show your active monitor configuration, and to set a whole new monitor configuration using command line arguments. no cap, from the terminal. πŸŽ€

it requires a compositor that supports the org.gnome.Mutter.DisplayConfig D-Bus API, such as GNOME Shell. if your compositor doesn't speak that API, this whole thing is giving nothing, sorry babe 😭


πŸ› οΈ COMMANDS

  • show β€” Show the current display configuration ✨ (the vibe check of your setup)
  • set β€” Set a new display configuration πŸ’… (glow-up time)
  • pref β€” Set display related preferences. 🎚️

πŸ” SHOW OPTIONS

  • --help, -h β€” Show a help message and exit. πŸ†˜
  • --modes, -m β€” List available monitor modes.
  • --properties, -p β€” List properties.
  • --verbose, -v β€” Display all available information (equivalent to --modes --properties). πŸ—£οΈ the spill everything option, we stan

βš™οΈ SET OPTIONS

  • --help, -h β€” Show a help message and exit. πŸ†˜
  • --persistent, -P β€” Store applied configuration on persistent storage and restore when applicable. πŸ“Œ it remembers, unlike some people
  • --verbose, -v β€” Print configuration to standard out before applying it.
  • --verify, -V β€” Only verify, without applying, the configuration. πŸ‘€ a dry run, a little peek, no commitment
  • --layout-mode LAYOUT-MODE, -l β€” Specify the layout mode the configuration should use. Either logical, or physical.
  • --logical-monitor, -L β€” Add and configure a logical monitor. See LOGICAL MONITOR OPTIONS. 🧠
  • --for-lease-monitor CONNECTOR, -e CONNECTOR β€” Set a monitor, that is not part of any logical monitor, available for lease. πŸ”‘

πŸͺž LOGICAL MONITOR OPTIONS

  • --monitor CONNECTOR, -M CONNECTOR β€” Add a monitor to the currently configured logical monitor. All monitors within the same logical monitor must have the same monitor resolution. ⚠️ same resolution or it's not happening
  • --primary, -p β€” Mark currently configured logical monitor as primary. 🌟 main character energy, literally
  • --scale SCALE, -s SCALE β€” Scale monitors within the currently configured logical monitor with SCALE. Must be a scale supported by all monitors and their configured modes.
  • --transform TRANSFORM, -t TRANSFORM β€” Transform monitors within the currently configured logical monitor using TRANSFORM. Possible transforms are normal, 90, 180, 270, flipped, flipped-90, flipped-270 and flipped-180. πŸ”„
  • --x X, -x X β€” Set the X position of the currently configured logical monitor.
  • --y Y, -y Y β€” Set the Y position of the currently configured logical monitor.
  • --right-of CONNECTOR β€” Place the logical monitor to the right of the logical monitor CONNECTOR belongs to. ➑️
  • --left-of CONNECTOR β€” Place left of other monitor. Place the logical monitor to the left of the logical monitor CONNECTOR belongs to. ⬅️
  • --above CONNECTOR β€” Place the logical monitor above the logical monitor CONNECTOR belongs to. ⬆️
  • --below CONNECTOR β€” Place the logical monitor below the logical monitor CONNECTOR belongs to. ⬇️

πŸ–₯️ MONITOR OPTIONS

  • --mode MODE, -m MODE β€” Set the mode of the monitor.
  • --color-mode COLOR-MODE, -c COLOR-MODE β€” Set the color mode of the monitor. Available color modes are default, sdr-native and bt2100. 🌈
  • --rgb-range RGB-RANGE, -r RGB-RANGE β€” Set the RGB quantization range of the monitor. Available ranges are auto, full and limited (16:235).

πŸŽ€ PREFS OPTIONS

  • --monitor CONNECTOR, -M CONNECTOR β€” Change monitor preferences. See MONITOR PREFS OPTIONS. πŸ’–

🧸 MONITOR PREFS OPTIONS

  • --luminance LUMINANCE, -l LUMINANCE β€” Set the luminance of the monitor for the current color mode. ✨
  • --reset-luminance β€” Reset the luminance of the monitor for the current color mode to its default. ↩️ back to factory vibes

🌟 EXAMPLES

Mirror DP-1 and eDP-1, and place DP-2, transformed by 270 degrees, to the right of the two mirrored monitors.

gdctl set --logical-monitor
          --primary
          --monitor DP-1
          --monitor eDP-1
          --logical-monitor
          --monitor DP-2
          --right-of DP-1
          --transform 270

Set eDP-1 and DP-2 as available for lease.

gdctl set --logical-monitor
          --primary
          --monitor DP-1
          --for-lease-monitor eDP-1
          --for-lease-monitor DP-2

πŸ’€ BUGS

The bug tracker can be reached by visiting the website <https://gitlab.gnome.org/GNOME/mutter/-/issues>. πŸ›

Before sending a bug report, please verify that you have the latest version of gnome-shell. Many bugs (major and minor) are fixed at each release, and if yours is out of date, the problem may already have been solved. bestie. pls. check first πŸ™ˆ

πŸ”— ADDITIONAL INFORMATION

For further information, visit the website <https://gitlab.gnome.org/GNOME/mutter/-/blob/main/README.md>. πŸ“š


and that's the whole page, fr fr 🫢 this came straight out of the gdctl(1) man page, filed under User Commands like the little icon it is β€” so go configure something gorgeous, bestie, and remember: check your gnome-shell version before you file anything. periodt. πŸ‘‘βœ¨πŸ’œ

πŸ“¦ where this page comes from