mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 12:32:32 +00:00
termfont: Parse xrdb instead of .XresourceS
This commit is contained in:
2
neofetch
2
neofetch
@@ -1781,7 +1781,7 @@ gettermfont () {
|
||||
|
||||
case "$term" in
|
||||
"urxvt" | "urxvtd" | "xterm")
|
||||
termfont="$(grep -i "${term/d}\*font" "$HOME/.Xresources")"
|
||||
termfont="$(grep -i "${term/d}\*font" <<< $(xrdb -query))"
|
||||
termfont=${termfont/*font: }
|
||||
|
||||
# Xresources has two different font syntax, this checks which
|
||||
|
||||
Reference in New Issue
Block a user