summaryrefslogtreecommitdiff
path: root/.screenlayout/quick-presentation.sh
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-01-13 17:33:24 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-01-13 17:33:24 -0500
commitd3d4381b296912577550ae1d0310dbc35f7f98cd (patch)
treea3268f3474f6af6a7a15ef6a763972e89805a96a /.screenlayout/quick-presentation.sh
parent7838c38253bb1a311c8fa96848802402fbf6b9eb (diff)
sxhkd housekeeping and debloat
Diffstat (limited to '.screenlayout/quick-presentation.sh')
-rwxr-xr-x.screenlayout/quick-presentation.sh20
1 files changed, 0 insertions, 20 deletions
diff --git a/.screenlayout/quick-presentation.sh b/.screenlayout/quick-presentation.sh
deleted file mode 100755
index 8a8123b..0000000
--- a/.screenlayout/quick-presentation.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/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