dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 58871caf0695b0965ef6ad1d15e267d5296a4f3a
parent 7793c8736dc612b66babda1e7ad43377c4a68684
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 20 Oct 2020 10:48:35 +0200

surf-open.sh: detect resolution on current active screen for scaling text

Diffstat:
M.local/bin/surf-open.sh | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.local/bin/surf-open.sh b/.local/bin/surf-open.sh @@ -14,8 +14,7 @@ fi screen_resolution() { xrandr -q | awk ' - { if (printline) { gsub(/x.*/,"", $0); printline=0; res=$1 } }; - / connected/ { printline=1 } + /\*/ { gsub(/x.*/,"", $1); res=$1 } END { print res }' }