Skip to content

Commit

Permalink
[PR] dylanaraps/neofetch#2054 from leapofazzam123 - Improved Cutefish…
Browse files Browse the repository at this point in the history
…OS support

Upstream PR: dylanaraps/neofetch#2054
Thanks to @leapofazzam123

Co-authored-by: Leap of Azzam <leapofazzam@gmail.com>
  • Loading branch information
hykilpikonna and leap0x7b committed Jul 31, 2022
2 parents fbd327f + 20a0584 commit 128d870
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -1896,6 +1896,7 @@ get_de() {
Cinnamon*) de_ver=$(cinnamon --version) ;;
Deepin*) de_ver=$(awk -F'=' '/MajorVersion/ {print $2}' /etc/os-version) ;;
Budgie*) de_ver=$(budgie-desktop --version) ;;
Cutefish*) de_ver=$(awk -F'=' '/Version/ {print $2}' /etc/cutefish) ;;
LXQt*) de_ver=$(lxqt-session --version) ;;
Lumina*) de_ver=$(lumina-desktop --version 2>&1) ;;
Trinity*) de_ver=$(tde-config --version) ;;
Expand Down Expand Up @@ -3411,6 +3412,7 @@ get_term() {
;;

"gnome-terminal-") term="gnome-terminal" ;;
"cutefish-termin") term="cutefish-terminal" ;;
"urxvtd") term="urxvt" ;;
*"nvim") term="Neovim Terminal" ;;
*"NeoVimServer"*) term="VimR Terminal" ;;
Expand Down Expand Up @@ -3460,6 +3462,11 @@ END
)"
;;

"cutefish-terminal")
term_font="$(awk -F '=' '/fontName=/ {a=$2} /fontPointSize=/ {b=$2} END {print a,b}' \
"${XDG_CONFIG_HOME}/cutefishos/cutefish-terminal.conf")"
;;

"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-
Expand Down Expand Up @@ -4270,6 +4277,11 @@ END
image=$(awk -F '=' '$1 == "Image" { print $2 }' "$image")
;;

"Cutefish"*)
image="$XDG_CONFIG_HOME/cutefishos/theme.conf"
image="$(awk -F '=' '$1 == "Wallpaper" {print $2}' "$image")"
;;

"LXQt"*)
image="$XDG_CONFIG_HOME/pcmanfm-qt/lxqt/settings.conf"
image="$(awk -F '=' '$1 == "Wallpaper" {print $2}' "$image")"
Expand Down Expand Up @@ -5239,7 +5251,7 @@ ASCII:
BlackArch, BLAG, BlankOn, BlueLight, Bodhi, bonsai, BSD, BunsenLabs,
Calculate, Carbs, CentOS, Chakra, ChaletOS, Chapeau, Chrom,
Cleanjaro, ClearOS, Clear_Linux, Clover, Condres, Container_Linux,
Crystal Linux, CRUX, Cucumber, dahlia, Debian, Deepin, DesaOS, Devuan,
Crystal Linux, CRUX, Cucumber, CutefishOS, dahlia, Debian, Deepin, DesaOS, Devuan,
DracOS, DarkOs, Itc, DragonFly, Drauger, Elementary, EndeavourOS, EncryptOS, Endless,
EuroLinux, Exherbo, Fedora, Feren, Finnix, FreeBSD, FreeMiNT, Frugalware,
Funtoo, GalliumOS, Garuda, Gentoo, Pentoo, gNewSense, GNOME, GNU,
Expand Down Expand Up @@ -7178,6 +7190,21 @@ o/${c2}--...::-:/::/:-......-::::::-/-...-${c1}:/o
EOF
;;

"CutefishOS"*)
set_colors 6 7 4
read -rd '' ascii_data <<'EOF'
${c1} ___ww___
_ _wwMMM@M^^^^MMMMww_
M0w_ _wMMM~~ ~~MMm_
~MMy _ww0M~ ~MMy
~MMMM~ o "MM
${c3} jw0M~~MMMw_ _wMM'
wMM~ ~~MMmw__ __w0M~
~ ~~MM0MmwwwwwwwwwMMM~
~~~~^^~~~
EOF
;;

"CyberOS"*)
set_colors 50 32 57
read -rd '' ascii_data <<'EOF'
Expand Down

0 comments on commit 128d870

Please sign in to comment.