[Bug 257715] [NEW PORT] x11/betterlockscreen: prettier lockscreen for i3lock-color
Date: Sun, 15 Aug 2021 17:24:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257715
--- Comment #16 from Jan Beich <jbeich@FreeBSD.org> ---
(In reply to Jan Beich from comment #15)
Nevermind, it also has \d aka [[:digit:]] or isdigit(3) but \K isn't directly
translatable. Probably easier to rewrite without preserving regexp quirks e.g.,
- dpi=$(xrdb -q | grep -oP '^\s*Xft.dpi:\s*\K\d+' | bc)
+ dpi=$(xrdb -q | awk -F: '/Xft.dpi/ { gsub("[[:space:]]*",""); print $2 }')
--
You are receiving this mail because:
You are the assignee for the bug.