Screen toggle script using xrandr
· β 2 min read · π€ Naresh Mehta
Many of my friends using Linux have serious problems with switching screens, screen resolutions, connecting to projectors, etc. and all of them end up wasting humongous amount of time doing stuff like that. And after banging their heads for 30 minutes they curse Linux and all and put up a request for another meeting! Anyways, below is the code to get screen toggling and switching screens easily done. Of course one needs to modify to suite their own use-cases but I guess the script itself will suffice most people.