From d3d4381b296912577550ae1d0310dbc35f7f98cd Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sat, 13 Jan 2024 17:33:24 -0500 Subject: sxhkd housekeeping and debloat --- .config/screenlayout/quick-presentation | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 .config/screenlayout/quick-presentation (limited to '.config/screenlayout/quick-presentation') diff --git a/.config/screenlayout/quick-presentation b/.config/screenlayout/quick-presentation new file mode 100755 index 0000000..8a8123b --- /dev/null +++ b/.config/screenlayout/quick-presentation @@ -0,0 +1,20 @@ +#!/bin/sh + +mainmon="eDP" + +# List monitors with xrandr +# Keep all linues that contain " connected" +# Remove the main monitor from the list +# Remove all disconnected monitors +# Delete empty lines +# Get the first non-main monitor +# Sanitize the output (keep only the monitor name) +othermon="$(xrandr | grep " connected" | + sed "s/.*$mainmon\s.*//g; + /^$/d; + s/\([A-Z0-9]\+\) .*/\1/g" | + head -n 1)" + +xrandr --output "$mainmon" --auto --output "$othermon" --auto --above "$mainmon" + +makewall -- cgit v1.2.3