From 08946d0527266dd820c0cfcc71519102d7eb0b4d Mon Sep 17 00:00:00 2001 From: Von Random Date: Tue, 13 Jun 2017 17:52:17 +0300 Subject: [PATCH] dmenu_laptop_screens --- dmenu_laptop_screens | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 dmenu_laptop_screens diff --git a/dmenu_laptop_screens b/dmenu_laptop_screens new file mode 100755 index 0000000..e441c39 --- /dev/null +++ b/dmenu_laptop_screens @@ -0,0 +1,12 @@ +#!/usr/bin/env zsh +variants=(int ext both) +selection=$(printf "%s\n" $variants|dmenu -p display "$@") +case $selection in + ('int') xrandr --output HDMI1 --off --output eDP1 --auto ;; + ('ext') xrandr --output eDP1 --off --output HDMI1 --auto ;; + ('both') xrandr --output eDP1 --auto --output HDMI1 --auto --right-of eDP1 ;; + (*) exit 0 ;; +esac +feh --bg-scale ${HOME}/.wallpaper.png +sleep 1 +exit 0