From 031938a792ac3107a512e89504929ef9e3e8ed6a Mon Sep 17 00:00:00 2001 From: Dominik Date: Sat, 4 Nov 2023 13:33:18 +0100 Subject: [PATCH] Update dmenurecord (#1370) --- .local/bin/dmenurecord | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/dmenurecord b/.local/bin/dmenurecord index 990b7b3..ca6b011 100755 --- a/.local/bin/dmenurecord +++ b/.local/bin/dmenurecord @@ -9,7 +9,7 @@ # # If there is already a running instance, user will be prompted to end it. -getdim() { xrandr | sed -n "s/\s*\([0-9]\+x[0-9]\+\).*\*.*/\1/p" ;} +getdim() { xrandr | grep -oP '(?<=current ).*(?=,)' | tr -d ' ' ;} updateicon() { \ echo "$1" > /tmp/recordingicon