dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 643a401e43b8c6868b7108bc1301efb0aded9722
parent 7091f3e588f6d7d316be457671bbef8dca308211
Author: Alexander Balgavy <alexander.balgavy@spaceapplications.com>
Date:   Thu,  2 Nov 2023 19:20:13 +0100

dmenu-displays script

Diffstat:
Ascripts/dmenu-displays | 23+++++++++++++++++++++++
1 file changed, 23 insertions(+), 0 deletions(-)

diff --git a/scripts/dmenu-displays b/scripts/dmenu-displays @@ -0,0 +1,23 @@ +#!/bin/sh + +case "$(printf 'Single display\nMirror\nAuto' | dmenu -i -l 5 -p "Display config:")" in + 'Single display') + xrandr \ + --output eDP-1 --off \ + --output HDMI-1 --off \ + --output DP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal \ + --output DP-2 --off + ;; + 'Mirror') + xrandr \ + --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal \ + --output HDMI-1 --off \ + --output DP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal \ + --output DP-2 --off + ;; + 'Auto') + xrandr --auto;; + *);; +esac +# +