Merge pull request #802 from Vaernil/fix/urxvt-terminal-font
Fix Terminal Font displaying incorrect information in urxvt, if one of the fonts has 'font' in its name
This commit is contained in:
commit
92aa5cf000
2
neofetch
2
neofetch
|
@ -1961,7 +1961,7 @@ get_term_font() {
|
||||||
|
|
||||||
"urxvt" | "urxvtd" | "rxvt-unicode" | "xterm")
|
"urxvt" | "urxvtd" | "rxvt-unicode" | "xterm")
|
||||||
term_font="$(grep -i -F "${term/d}*font" < <(xrdb -query))"
|
term_font="$(grep -i -F "${term/d}*font" < <(xrdb -query))"
|
||||||
term_font="${term_font/*font:}"
|
term_font="${term_font/*"*font:"}"
|
||||||
term_font="$(trim "$term_font")"
|
term_font="$(trim "$term_font")"
|
||||||
|
|
||||||
# Xresources has two different font formats, this checks which
|
# Xresources has two different font formats, this checks which
|
||||||
|
|
Reference in New Issue