From 8168bbe25374e72a7e1cecebac42dc9b8991788a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sun, 15 Sep 2013 22:19:39 +0200 Subject: [PATCH] Made resolution detection in i3exit.bash more robust. --- i3/i3/scripts/i3exit.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3/i3/scripts/i3exit.bash b/i3/i3/scripts/i3exit.bash index ff05668..fa9ac01 100755 --- a/i3/i3/scripts/i3exit.bash +++ b/i3/i3/scripts/i3exit.bash @@ -16,7 +16,7 @@ log() lock() { - resolution=$(xrandr | grep \* | cut -d " " -f 4) + resolution=$(xrandr | grep '*' | awk '{ print $1 }') log "[I] Resolution found: \"$resolution\"" lockscreen="$HOME/.i3/data/lockscreen_$resolution.png" log "[I] Looking for lockscreen at \"$lockscreen\""