[F] Fix Apple_Terminal not identified after the Fig change

https://github.com/dylanaraps/neofetch/pull/2017
https://github.com/dylanaraps/neofetch/pull/2077
This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-07-31 16:15:53 -04:00
parent 4a3cb2b16b
commit bb758237da

View file

@ -3479,7 +3479,7 @@ get_term_font() {
term_font="${term_font//\"}"
;;
"Apple_Terminal")
"Apple_Terminal"*)
term_font="$(osascript <<END
tell application "Terminal" to font name of window frontmost \
& " " & font size of window frontmost
@ -3492,7 +3492,7 @@ END
"${XDG_CONFIG_HOME}/cutefishos/cutefish-terminal.conf")"
;;
"iTerm2")
"iTerm2"*)
# Unfortunately the profile name is not unique, but it seems to be the only thing
# that identifies an active profile. There is the "id of current session of current win-
# dow" though, but that does not match to a guid in the plist.