wok annotate screenfetch/stuff/slitaz.patch @ rev 16965

linux-zram: use half of total memory as defaut value
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Jul 31 21:59:15 2014 +0200 (2014-07-31)
parents
children
rev   line source
paul@16867 1 --- screenfetch-dev.orig 2014-07-09 18:56:48.000000000 +0100
paul@16867 2 +++ screenfetch-dev 2014-07-13 13:17:37.000000000 +0100
paul@16867 3 @@ -207,8 +207,8 @@
paul@16867 4 printf " CrunchBang, Raspbian, elementary OS, Fedora, Frugalware, Fuduntu, Gentoo,\n"
paul@16867 5 printf " Funtoo, Jiyuu Linux, LinuxDeepin, Kali Linux, Mageia, Mandriva, Manjaro,\n"
paul@16867 6 printf " Linux Mint, LMDE, openSUSE, Parabola GNU/Linux-libre, Peppermint,\n"
paul@16867 7 - printf " Red Hat Enterprise Linux, Sabayon, Scientific Linux, Slackware, SolusOS,\n"
paul@16867 8 - printf " TinyCore, Trisquel, Ubuntu and Viperr.\n\n"
paul@16867 9 + printf " Red Hat Enterprise Linux, Sabayon, Scientific Linux, Slackware, SliTaz,\n"
paul@16867 10 + printf " SolusOS, TinyCore, Trisquel, Ubuntu and Viperr.\n\n"
paul@16867 11 printf "${underline}Other Supported Systems${c0}:\n"
paul@16867 12 printf " Mac OS X, FreeBSD, DragonFlyBSD, NetBSD, OpenBSD, Android and Cygwin.\n\n"
paul@16867 13 printf "${underline}Supported Desktop Managers${c0}:\n"
paul@16867 14 @@ -440,6 +440,8 @@
paul@16867 15 distro="Sabayon"
paul@16867 16 elif [[ "${distro_detect}" == "SolusOS" ]]; then
paul@16867 17 distro="SolusOS"
paul@16867 18 + elif [[ "${distro_detect}" == "SliTaz" ]]; then
paul@16867 19 + distro="SliTaz"
paul@16867 20 elif [[ "${distro_detect}" == "Trisquel" ]]; then
paul@16867 21 distro="Trisquel"
paul@16867 22 elif [[ "${distro_detect}" == "Ubuntu" ]]; then
paul@16867 23 @@ -535,6 +537,7 @@
paul@16867 24 elif [ -f /etc/redhat-release ] && grep -q "Red Hat" /etc/redhat-release; then distro="Red Hat Enterprise Linux"
paul@16867 25 elif [ -f /etc/redhat-release ] && grep -q "CentOS" /etc/redhat-release; then distro="CentOS"
paul@16867 26 elif [ -f /etc/slackware-version ]; then distro="Slackware"
paul@16867 27 + elif [ -f /etc/slitaz-release ]; then distro="SliTaz"
paul@16867 28 elif [ -f /usr/share/doc/tc/release.txt ]; then distro="TinyCore"
paul@16867 29 elif [ -f /etc/sabayon-edition ]; then distro="Sabayon"; fi
paul@16867 30 else
paul@16867 31 @@ -645,6 +648,7 @@
paul@16867 32 gentoo) distro="Gentoo" ;;
paul@16867 33 funtoo) distro="Funtoo" ;;
paul@16867 34 slackware) distro="Slackware" ;;
paul@16867 35 + slitaz) distro="SliTaz" ;;
paul@16867 36 frugalware) distro="Frugalware" ;;
paul@16867 37 peppermint) distro="Peppermint" ;;
paul@16867 38 solusos) distro="SolusOS" ;;
paul@16867 39 @@ -729,6 +733,7 @@
paul@16867 40 case $distro in
paul@16867 41 'Arch Linux'|'Parabola GNU/Linux-libre'|'Chakra'|'Manjaro'|'Antergos'|'KaOS') pkgs=$(pacman -Qq | wc -l) ;;
paul@16867 42 'Frugalware') pkgs=$(pacman-g2 -Q | wc -l) ;;
paul@16867 43 + 'SliTaz') pkgs=$(tazpkg list | wc -l) ;;
paul@16867 44 'Fuduntu'|'Ubuntu'|'Mint'|'SolusOS'|'Debian'|'Raspbian'|'LMDE'|'CrunchBang'|'Peppermint'|'LinuxDeepin'|'Kali Linux'|'Trisquel'|'elementary OS') pkgs=$(dpkg --get-selections | wc -l) ;;
paul@16867 45 'Slackware') pkgs=$(ls -1 /var/log/packages | wc -l) ;;
paul@16867 46 'Gentoo'|'Sabayon'|'Funtoo') pkgs=$(ls -d /var/db/pkg/*/* | wc -l) ;;
paul@16867 47 @@ -2967,6 +2972,33 @@
paul@16867 48 "${c2} ............... %s")
paul@16867 49 ;;
paul@16867 50
paul@16867 51 + "#SliTaz")
paul@16867 52 + if [[ "$no_color" != "1" ]]; then
paul@16867 53 + c1=$(getColor 'light grey') # Light Grey
paul@16867 54 + fi
paul@16867 55 + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
paul@16867 56 + startline="0"
paul@16867 57 + fulloutput=(
paul@16867 58 +"${c1} # # %s"
paul@16867 59 +"${c1} # ## # %s"
paul@16867 60 +"${c1} ## ## ### ## %s"
paul@16867 61 +"${c1} ## ### ### ## %s"
paul@16867 62 +"${c1} ## ### ## ## %s"
paul@16867 63 +"${c1} ### #### ##### #### ###%s"
paul@16867 64 +"${c1} #### ##### ####### ##### ####%s"
paul@16867 65 +"${c1} ############################ %s"
paul@16867 66 +"${c1} ###################### %s"
paul@16867 67 +"${c1} ################################# %s"
paul@16867 68 +"${c1} ## ################ #### ## %s"
paul@16867 69 +"${c1} # ### ############ ### ## %s"
paul@16867 70 +"${c1} # ## ########### ### # %s"
paul@16867 71 +"${c1} # # ########### # %s"
paul@16867 72 +"${c1} ######## %s"
paul@16867 73 +" %s"
paul@16867 74 +" %s"
paul@16867 75 +" %s")
paul@16867 76 + ;;
paul@16867 77 +
paul@16867 78
paul@16867 79 "KaOS")
paul@16867 80 if [[ "$no_color" != "1" ]]; then
paul@16867 81 @@ -3086,7 +3118,7 @@
paul@16867 82 if [[ "$no_color" != "1" ]]; then
paul@16867 83 c1=$(getColor 'white') # White
paul@16867 84 c2=$(getColor 'dark grey') # Light Gray
paul@16867 85 - c3=$(getColor 'yellow') # Light Yellow
paul@16867 86 + c3=$(getColor 'light red') # Light Red
paul@16867 87 fi
paul@16867 88 if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; fi
paul@16867 89 startline="0"
paul@16867 90 @@ -3188,7 +3220,7 @@
paul@16867 91 "Arch Linux - Old"|"Fedora"|"Mandriva"|"Mandrake"|"Chakra"|"Sabayon"|"Slackware"|"Mac OS X"|"Trisquel"|"Kali Linux"|"Jiyuu Linux"|"Antergos"|"KaOS") labelcolor=$(getColor 'light blue');;
paul@16867 92 "Arch Linux"|"Frugalware"|"Mageia") labelcolor=$(getColor 'light cyan');;
paul@16867 93 "Mint"|"LMDE"|"openSUSE"|"LinuxDeepin"|"DragonflyBSD"|"Manjaro"|"Manjaro-tree"|"Android") labelcolor=$(getColor 'light green');;
paul@16867 94 - "Ubuntu-3color"|"FreeBSD"|"Debian"|"Raspbian"|"BSD"|"Red Hat Enterprise Linux"|"Peppermint"|"Cygwin"|"Fuduntu"|"NetBSD"|"Scientific Linux"|"DragonFlyBSD"|"BackTrack Linux") labelcolor=$(getColor 'light red');;
paul@16867 95 + "Ubuntu-3color"|"FreeBSD"|"Debian"|"Raspbian"|"BSD"|"Red Hat Enterprise Linux"|"Peppermint"|"Cygwin"|"Fuduntu"|"NetBSD"|"Scientific Linux"|"DragonFlyBSD"|"SliTaz"|"BackTrack Linux") labelcolor=$(getColor 'light red');;
paul@16867 96 "CrunchBang"|"SolusOS"|"Viperr"|"elementary"*) labelcolor=$(getColor 'dark grey');;
paul@16867 97 "Gentoo"|"Parabola GNU/Linux-libre"|"Funtoo"|"Funtoo-text") labelcolor=$(getColor 'light purple');;
paul@16867 98 "CentOS"|"Ubuntu"|*) labelcolor=$(getColor 'yellow');;