Skip to content

Instantly share code, notes, and snippets.

@jandrewthompson
Created February 22, 2013 14:22
Show Gist options
  • Save jandrewthompson/5013755 to your computer and use it in GitHub Desktop.
Save jandrewthompson/5013755 to your computer and use it in GitHub Desktop.
xrandr scripts for docking and undocking my Dell laptop. I mapped these to global keyboard shortcuts in KDE.
#!/bin/bash
xrandr --output HDMI3 --auto;
sleep 5;
xrandr --output LVDS1 --off;
sleep 5;
xrandr --output VGA1 --right-of HDMI3 --auto --primary;
#!/bin/bash
xrandr --output HDMI3 --off;
sleep 5;
xrandr --output LVDS1 --auto;
sleep 5;
xrandr --output VGA1 --off;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment