Skip to content

Instantly share code, notes, and snippets.

@gammy
Created February 11, 2012 23:15
Show Gist options
  • Save gammy/1804957 to your computer and use it in GitHub Desktop.
Save gammy/1804957 to your computer and use it in GitHub Desktop.
pekwm submenu with xrandr two-screen configuration options
Submenu = "Desktop" {
Entry = "Detect & enable screens" { Actions = "Exec xrandr --auto &" }
Entry = "HDMI left of laptop" { Actions = "Exec xrandr --auto --output HDMI1 --right-of LVDS1 --output LVDS1 &" }
Entry = "HDMI right of laptop" { Actions = "Exec xrandr --auto --output HDMI1 --left-of LVDS1 --output LVDS1 &" }
Entry = "HDMI above laptop" { Actions = "Exec xrandr --auto --output HDMI1 --above LVDS1 --output LVDS1 &" }
Entry = "HDMI below laptop" { Actions = "Exec xrandr --auto --output HDMI1 --below LVDS1 --output LVDS1 &" }
Entry = "Disable HDMI" { Actions = "Exec xrandr --output LVDS1 --output HDMI1 --off &" }
Entry = "Disable laptop" { Actions = "Exec xrandr --output HDMI --output LVDS1 --off &" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment