Created
August 22, 2019 11:05
-
-
Save Vladnev/cbddbf881a2f30db3449664da3a7edd4 to your computer and use it in GitHub Desktop.
Comand for toogle dispaly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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