tGrrab a single line for term font - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 0315336ca9bea2ca8171716b7365c34cd737374d
(DIR) parent ab8995d8af31c4346c3b7bab4f0c7f68f0f5c08d
(HTM) Author: z3bra <willy@mailoo.org>
Date: Tue, 27 May 2014 09:04:13 +0200
Grrab a single line for term font
Diffstat:
M info.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/info.sh b/info.sh
t@@ -30,7 +30,7 @@ system=`sed 's/\s*[\(\\]\+.*$//' /etc/issue`
if [ -n "$DISPLAY" ]; then
wmname=`xprop -root WM_NAME|cut -d\" -f2`
- termfn=`sed -n 's/^.*\*font:\s* -\*-\([^-]*\)-.*/\1/p' ~/.Xresources`
+ termfn=`sed -n 's/^.*\*font:\s* -\*-\([^-]*\)-.*/\1/p' ~/.Xresources|sed 1q`
systfn=`sed -n 's/^.*font.*"\(.*\)".*$/\1/p' ~/.gtkrc-2.0`
else
wmname="none"