Skip to content

Instantly share code, notes, and snippets.

@hadihammurabi
Last active July 23, 2019 09:02
Show Gist options
  • Save hadihammurabi/1b0ba980bc4f8876b5fbbc2d578cb900 to your computer and use it in GitHub Desktop.
Save hadihammurabi/1b0ba980bc4f8876b5fbbc2d578cb900 to your computer and use it in GitHub Desktop.
Multiscreen control from CLI using XRandR
#!/bin/bash
# connect to screen using HDMI
xrandr --output HDMI-1 --mode 1360x768 --auto --above eDP-1
# disconnect
xrandr --output HDMI-1 --off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment