Skip to content

Commit 128d870

Browse files
[PR] dylanaraps/neofetch#2054 from leapofazzam123 - Improved CutefishOS support
Upstream PR: dylanaraps/neofetch#2054 Thanks to @leapofazzam123 Co-authored-by: Leap of Azzam <leapofazzam@gmail.com>
2 parents fbd327f + 20a0584 commit 128d870

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

neofetch

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1896,6 +1896,7 @@ get_de() {
18961896
Cinnamon*) de_ver=$(cinnamon --version) ;;
18971897
Deepin*) de_ver=$(awk -F'=' '/MajorVersion/ {print $2}' /etc/os-version) ;;
18981898
Budgie*) de_ver=$(budgie-desktop --version) ;;
1899+
Cutefish*) de_ver=$(awk -F'=' '/Version/ {print $2}' /etc/cutefish) ;;
18991900
LXQt*) de_ver=$(lxqt-session --version) ;;
19001901
Lumina*) de_ver=$(lumina-desktop --version 2>&1) ;;
19011902
Trinity*) de_ver=$(tde-config --version) ;;
@@ -3411,6 +3412,7 @@ get_term() {
34113412
;;
34123413

34133414
"gnome-terminal-") term="gnome-terminal" ;;
3415+
"cutefish-termin") term="cutefish-terminal" ;;
34143416
"urxvtd") term="urxvt" ;;
34153417
*"nvim") term="Neovim Terminal" ;;
34163418
*"NeoVimServer"*) term="VimR Terminal" ;;
@@ -3460,6 +3462,11 @@ END
34603462
)"
34613463
;;
34623464

3465+
"cutefish-terminal")
3466+
term_font="$(awk -F '=' '/fontName=/ {a=$2} /fontPointSize=/ {b=$2} END {print a,b}' \
3467+
"${XDG_CONFIG_HOME}/cutefishos/cutefish-terminal.conf")"
3468+
;;
3469+
34633470
"iTerm2")
34643471
# Unfortunately the profile name is not unique, but it seems to be the only thing
34653472
# that identifies an active profile. There is the "id of current session of current win-
@@ -4270,6 +4277,11 @@ END
42704277
image=$(awk -F '=' '$1 == "Image" { print $2 }' "$image")
42714278
;;
42724279

4280+
"Cutefish"*)
4281+
image="$XDG_CONFIG_HOME/cutefishos/theme.conf"
4282+
image="$(awk -F '=' '$1 == "Wallpaper" {print $2}' "$image")"
4283+
;;
4284+
42734285
"LXQt"*)
42744286
image="$XDG_CONFIG_HOME/pcmanfm-qt/lxqt/settings.conf"
42754287
image="$(awk -F '=' '$1 == "Wallpaper" {print $2}' "$image")"
@@ -5239,7 +5251,7 @@ ASCII:
52395251
BlackArch, BLAG, BlankOn, BlueLight, Bodhi, bonsai, BSD, BunsenLabs,
52405252
Calculate, Carbs, CentOS, Chakra, ChaletOS, Chapeau, Chrom,
52415253
Cleanjaro, ClearOS, Clear_Linux, Clover, Condres, Container_Linux,
5242-
Crystal Linux, CRUX, Cucumber, dahlia, Debian, Deepin, DesaOS, Devuan,
5254+
Crystal Linux, CRUX, Cucumber, CutefishOS, dahlia, Debian, Deepin, DesaOS, Devuan,
52435255
DracOS, DarkOs, Itc, DragonFly, Drauger, Elementary, EndeavourOS, EncryptOS, Endless,
52445256
EuroLinux, Exherbo, Fedora, Feren, Finnix, FreeBSD, FreeMiNT, Frugalware,
52455257
Funtoo, GalliumOS, Garuda, Gentoo, Pentoo, gNewSense, GNOME, GNU,
@@ -7178,6 +7190,21 @@ o/${c2}--...::-:/::/:-......-::::::-/-...-${c1}:/o
71787190
EOF
71797191
;;
71807192

7193+
"CutefishOS"*)
7194+
set_colors 6 7 4
7195+
read -rd '' ascii_data <<'EOF'
7196+
${c1} ___ww___
7197+
_ _wwMMM@M^^^^MMMMww_
7198+
M0w_ _wMMM~~ ~~MMm_
7199+
~MMy _ww0M~ ~MMy
7200+
~MMMM~ o "MM
7201+
${c3} jw0M~~MMMw_ _wMM'
7202+
wMM~ ~~MMmw__ __w0M~
7203+
~ ~~MM0MmwwwwwwwwwMMM~
7204+
~~~~^^~~~
7205+
EOF
7206+
;;
7207+
71817208
"CyberOS"*)
71827209
set_colors 50 32 57
71837210
read -rd '' ascii_data <<'EOF'

0 commit comments

Comments
 (0)