Improved CutefishOS support

This commit is contained in:
Leap of Azzam 2022-02-17 08:34:06 +00:00
parent ccd5d9f526
commit 20a0584264

View file

@ -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) ;;
@ -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" ;;
@ -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-
@ -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")"
@ -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,
@ -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'