Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Improved CutefishOS support #2054

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 28 additions & 1 deletion neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -1863,6 +1863,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 @@ -3327,6 +3328,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 @@ -3376,6 +3378,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 @@ -4177,6 +4184,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 @@ -5146,7 +5158,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, Endless,
EuroLinux, Exherbo, Fedora, Feren, FreeBSD, FreeMiNT, Frugalware,
Funtoo, GalliumOS, Garuda, Gentoo, Pentoo, gNewSense, GNOME, GNU,
Expand Down Expand Up @@ -6977,6 +6989,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