Merge branch 'master' of github.com:dylanaraps/neofetch
This commit is contained in:
commit
b6cde78199
11
neofetch
11
neofetch
|
@ -1814,13 +1814,12 @@ get_term_font() {
|
||||||
mate-terminal --save-config="$mateterm_config"
|
mate-terminal --save-config="$mateterm_config"
|
||||||
|
|
||||||
role="$(xprop -id "${WINDOWID}" WM_WINDOW_ROLE)"
|
role="$(xprop -id "${WINDOWID}" WM_WINDOW_ROLE)"
|
||||||
role="${role##*= }"
|
role="${role##* }"
|
||||||
|
role="${role//\"}"
|
||||||
|
|
||||||
term_id="$(grep -A1 "${role//\"}" "$mateterm_config")"
|
profile="$(awk -F '=' -v r="$role" \
|
||||||
term_id="${term_id##*=}"
|
'$0~r {getline; if(/Maximized/) getline; if(/Fullscreen/) getline; id=$2"]"}
|
||||||
|
$0~id {if(id) {getline; print $2; exit}}' "$mateterm_config")"
|
||||||
profile="$(grep -A1 "\[$term_id\]" "$mateterm_config")"
|
|
||||||
profile="${profile##*=}"
|
|
||||||
|
|
||||||
rm -f "$mateterm_config"
|
rm -f "$mateterm_config"
|
||||||
|
|
||||||
|
|
Reference in New Issue