dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit f14306209fe314230be709cf01033fcc21b73f7c
parent cfea52e1aa94a00173efd092cf543f9a70934407
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri, 25 Sep 2020 14:16:01 +0200

displayselect: clean up script and reorder prompts

Diffstat:
M.local/bin/displayselect | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/.local/bin/displayselect b/.local/bin/displayselect @@ -6,13 +6,11 @@ ext_screens="$(xrandr | awk '{if (match($0, / connected/)) {if (i>0) {print $1}; if [ -z "$ext_screens" ]; then mon int else - mode="$(printf 'ext\ndual\nmirror' | dmenu -i -p "mode:")" - printf '"%s"\n' "$mode" if [ "$(printf '%s' "$ext_screens" | wc -w)" -eq 1 ]; then ext="${ext_screens}" else ext="$(printf '%s' "$ext_screens" | dmenu -i -p "external:")" fi - printf '"%s"\n' "$ext" + mode="$(printf 'ext\ndual\nmirror' | dmenu -i -p "$ext mode:")" EXT="$ext" mon "$mode" fi