Skip to content

Instantly share code, notes, and snippets.

@Vladnev
Created August 22, 2019 11:05
Show Gist options
  • Save Vladnev/cbddbf881a2f30db3449664da3a7edd4 to your computer and use it in GitHub Desktop.
Save Vladnev/cbddbf881a2f30db3449664da3a7edd4 to your computer and use it in GitHub Desktop.
Comand for toogle dispaly
Before use replace <DisplayOffPort> && <ActiveDisplayPort>
Values you can get by `xrandr | grep " connected " | awk '{ print$1 }'`
xrandr --listactivemonitors | grep <DisplayOffPort> >/dev/null && xrandr --output <DisplayOffPort> --off || xrandr --output eDP1 --below <ActiveDisplayPort> --auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment