diff --git a/neofetch b/neofetch index cd45b9d9..c5377ed2 100755 --- a/neofetch +++ b/neofetch @@ -3774,6 +3774,10 @@ get_term() { break ;; + "."*"-wrap"*) + [[ $name =~ \.(.*)-wrap.* ]] && term=${BASH_REMATCH[1]} + ;; + "gnome-terminal-") term="gnome-terminal" ;; "cutefish-termin") term="cutefish-terminal" ;; "urxvtd") term="urxvt" ;; @@ -4046,6 +4050,16 @@ END "termite") [[ -f "${XDG_CONFIG_HOME}/termite/config" ]] && \ termite_config="${XDG_CONFIG_HOME}/termite/config" + + XDG_DIR="/etc/xdg" + OLD_IFS=$IFS + IFS=":" + for directory in $XDG_CONFIG_DIRS; do + if [[ -f "$directory/termite/config" ]]; then + XDG_DIR="$directory" + break + fi + done term_font="$(awk -F '= ' '/\[options\]/ { opt=1 @@ -4053,7 +4067,7 @@ END /^\s*font/ { if(opt==1) a=$2; opt=0 - } END {print a}' "/etc/xdg/termite/config" \ + } END {print a}' "$XDG_DIR/termite/config" \ "$termite_config")" ;;