From 295029cf43b28192ef916e60946ee627c6031806 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 25 Apr 2023 11:37:19 +0200 Subject: [PATCH] xss-lock: handle wide screens split in two --- bin/xss-lock | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/xss-lock b/bin/xss-lock index ba9e421..771f757 100755 --- a/bin/xss-lock +++ b/bin/xss-lock @@ -36,8 +36,10 @@ case "$1" in dunstctl set-paused true # Then, lock screen env XSECURELOCK_SAVER=$HOME/.config/i3/bin/xsecurelock-saver \ - `# Disable Randr 1.5 support to make screensaver spans accross the whole monitor` \ + `# Disable RandR 1.5 support to make screensaver spans accross the whole monitor` \ XSECURELOCK_NO_XRANDR15=1 \ + `# Disable RandR when we know we have a single monitor` \ + XSECURELOCK_NO_XRANDR=$($(grep -qFwx 1 $XDG_RUNTIME_DIR/i3/outputs.txt 2> /dev/null) && echo 1 || echo 0) \ `# Delay mapping saver window by 500ms to give some time to saver to start` \ XSECURELOCK_SAVER_DELAY_MS=500 \ `# Do not kill screensaver when DPMS is enabled` \