From 1d13d3869c862d75beddcded18b4e29fa952f04a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Fri, 27 Sep 2013 02:08:38 +0200 Subject: [PATCH] Made i3exit.bash multiscreen-aware. --- i3/i3/scripts/i3exit.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i3/i3/scripts/i3exit.bash b/i3/i3/scripts/i3exit.bash index fa9ac01..8a0ae66 100755 --- a/i3/i3/scripts/i3exit.bash +++ b/i3/i3/scripts/i3exit.bash @@ -16,13 +16,13 @@ log() lock() { - resolution=$(xrandr | grep '*' | awk '{ print $1 }') + resolution=$(xrandr | grep '*' | awk '{ print $1 }' | head -n1) log "[I] Resolution found: \"$resolution\"" lockscreen="$HOME/.i3/data/lockscreen_$resolution.png" log "[I] Looking for lockscreen at \"$lockscreen\"" if [[ -f "$lockscreen" ]] ; then log "[I] Lockscreen found, will be used as background image." - background_options="--image $lockscreen" + background_options="--image $lockscreen -t" else log "[W] Lockscreen not found, using color #$FALLBACK_COLOR as background." background_options="--color $FALLBACK_COLOR"