mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 11:39:53 +00:00
Termfont: Simpler awk commands
This commit is contained in:
4
neofetch
4
neofetch
@@ -1520,11 +1520,11 @@ gettermfont() {
|
||||
;;
|
||||
|
||||
"xfce4-terminal")
|
||||
termfont="$(awk -F '=' '!/^($|\/\/)/ && /FontName/ {printf $2}' "${XDG_CONFIG_HOME}/xfce4/terminal/terminalrc")"
|
||||
termfont="$(awk -F '=' '/^FontName/ {a=$2} END{print a}' "${XDG_CONFIG_HOME}/xfce4/terminal/terminalrc")"
|
||||
;;
|
||||
|
||||
"termite")
|
||||
termfont="$(awk -F '= ' '/^font/ {a=$0} END{print $2}' "${XDG_CONFIG_HOME}/termite/config")"
|
||||
termfont="$(awk -F '= ' '/^font/ {a=$2} END{print a}' "${XDG_CONFIG_HOME}/termite/config")"
|
||||
;;
|
||||
|
||||
"mintty")
|
||||
|
||||
Reference in New Issue
Block a user