toggle monitors configuration from commandline
if xrandr | grep 'HDMI-3 connected.*1920x1080' > /dev/null; then
# HDMI-3 is active, switch to single display
xrandr --output eDP-1 --mode 1680x1050 --scale 1x1 --output HDMI-3 --off
echo "Switched to single display (eDP-1)"
e...
abdallahalsamman.hashnode.dev1 min read