🖥️xrandr

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the xrandr command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#                ██╗  ██╗██████╗  █████╗ ███╗   ██╗██████╗ 
#                ╚██╗██╔╝██╔══██╗██╔══██╗████╗  ██║██╔══██╗
#                 ╚███╔╝ ██████╔╝███████║██╔██╗ ██║██║  ██║
#                 ██╔██╗ ██╔══██╗██╔══██║██║╚██╗██║██║  ██║
#                ██╔╝ ██╗██║  ██║██║  ██║██║ ╚████║██████╔╝
#                ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═══╝╚═════╝ 
                                                          
                                                          
# To enable HDMI2 output with maximal resolution:
xrandr --output HDMI2 --auto

# To enable HDMI2 output with specific resolution:
xrandr --output HDMI2 --mode 1280x800

# To enable HDMI2 output next to HDMI1 output:
xrandr --output HDMI2 --auto --right-of HDMI1

# To disable HDMI2 output:
xrandr --output HDMI2 --off

# Project your desktop using xrandr -  HDMI-1 is the interface in the example, which can be obtained just by typing xrandr and surfing through the output. There are a hell lot of configurations that can be done but I prefer auto because it works in most cases. Lifesaver Show Sample Output
xrandr --output < interface-name > --auto

xrandr --output DVI-I-2 --right-of DVI-I-3 
# When you do not want to restart X to setup a another display and expand the desktop.

#==============================##==============================#
# CMD XRAND						       #
#==============================##==============================#
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░