From 46fed67375f5294122210050cc5f549619080ca9 Mon Sep 17 00:00:00 2001 From: r1w1s1 Date: Tue, 28 Jan 2025 21:58:59 -0300 Subject: [PATCH] add ufetch --- ufetch/ufetch-v0.4/LICENSE | 19 ------- ufetch/ufetch-v0.4/README.md | 5 -- ufetch/ufetch-v0.4/ufetch-alpine | 79 ----------------------------- ufetch/ufetch-v0.4/ufetch-antergos | 84 ------------------------------- ufetch/ufetch-v0.4/ufetch-arch | 83 ------------------------------ ufetch/ufetch-v0.4/ufetch-archbang | 83 ------------------------------ ufetch/ufetch-v0.4/ufetch-arco | 83 ------------------------------ ufetch/ufetch-v0.4/ufetch-artix | 83 ------------------------------ ufetch/ufetch-v0.4/ufetch-aux | 42 ---------------- ufetch/ufetch-v0.4/ufetch-centos | 86 ------------------------------- ufetch/ufetch-v0.4/ufetch-crux | 85 ------------------------------- ufetch/ufetch-v0.4/ufetch-debian | 83 ------------------------------ ufetch/ufetch-v0.4/ufetch-devuan | 84 ------------------------------- ufetch/ufetch-v0.4/ufetch-elementary | 84 ------------------------------- ufetch/ufetch-v0.4/ufetch-fedora | 84 ------------------------------- ufetch/ufetch-v0.4/ufetch-freebsd | 84 ------------------------------- ufetch/ufetch-v0.4/ufetch-gentoo | 84 ------------------------------- ufetch/ufetch-v0.4/ufetch-gnewsense | 84 ------------------------------- ufetch/ufetch-v0.4/ufetch-guix | 83 ------------------------------ ufetch/ufetch-v0.4/ufetch-hyperbola | 83 ------------------------------ ufetch/ufetch-v0.4/ufetch-instantos | 83 ------------------------------ ufetch/ufetch-v0.4/ufetch-linux | 85 ------------------------------- ufetch/ufetch-v0.4/ufetch-linuxlite | 84 ------------------------------- ufetch/ufetch-v0.4/ufetch-macos | 81 ------------------------------ ufetch/ufetch-v0.4/ufetch-mageia | 84 ------------------------------- ufetch/ufetch-v0.4/ufetch-manjaro | 83 ------------------------------ ufetch/ufetch-v0.4/ufetch-mint | 85 ------------------------------- ufetch/ufetch-v0.4/ufetch-mx | 83 ------------------------------ ufetch/ufetch-v0.4/ufetch-netbsd | 84 ------------------------------- ufetch/ufetch-v0.4/ufetch-nixos | 89 --------------------------------- ufetch/ufetch-v0.4/ufetch-openbsd | 85 ------------------------------- ufetch/ufetch-v0.4/ufetch-parabola | 83 ------------------------------ ufetch/ufetch-v0.4/ufetch-popos | 83 ------------------------------ ufetch/ufetch-v0.4/ufetch-pureos | 83 ------------------------------ ufetch/ufetch-v0.4/ufetch-raspberrypios | 84 ------------------------------- ufetch/ufetch-v0.4/ufetch-slackware | 81 ------------------------------ ufetch/ufetch-v0.4/ufetch-suse | 84 ------------------------------- ufetch/ufetch-v0.4/ufetch-ubuntu | 83 ------------------------------ ufetch/ufetch-v0.4/ufetch-void | 84 ------------------------------- ufetch/ufetch-v0.4/ufetch-voyager | 83 ------------------------------ 40 files changed, 3159 deletions(-) delete mode 100644 ufetch/ufetch-v0.4/LICENSE delete mode 100644 ufetch/ufetch-v0.4/README.md delete mode 100755 ufetch/ufetch-v0.4/ufetch-alpine delete mode 100755 ufetch/ufetch-v0.4/ufetch-antergos delete mode 100755 ufetch/ufetch-v0.4/ufetch-arch delete mode 100755 ufetch/ufetch-v0.4/ufetch-archbang delete mode 100755 ufetch/ufetch-v0.4/ufetch-arco delete mode 100755 ufetch/ufetch-v0.4/ufetch-artix delete mode 100755 ufetch/ufetch-v0.4/ufetch-aux delete mode 100755 ufetch/ufetch-v0.4/ufetch-centos delete mode 100755 ufetch/ufetch-v0.4/ufetch-crux delete mode 100755 ufetch/ufetch-v0.4/ufetch-debian delete mode 100755 ufetch/ufetch-v0.4/ufetch-devuan delete mode 100755 ufetch/ufetch-v0.4/ufetch-elementary delete mode 100755 ufetch/ufetch-v0.4/ufetch-fedora delete mode 100755 ufetch/ufetch-v0.4/ufetch-freebsd delete mode 100755 ufetch/ufetch-v0.4/ufetch-gentoo delete mode 100755 ufetch/ufetch-v0.4/ufetch-gnewsense delete mode 100755 ufetch/ufetch-v0.4/ufetch-guix delete mode 100755 ufetch/ufetch-v0.4/ufetch-hyperbola delete mode 100755 ufetch/ufetch-v0.4/ufetch-instantos delete mode 100755 ufetch/ufetch-v0.4/ufetch-linux delete mode 100755 ufetch/ufetch-v0.4/ufetch-linuxlite delete mode 100755 ufetch/ufetch-v0.4/ufetch-macos delete mode 100755 ufetch/ufetch-v0.4/ufetch-mageia delete mode 100755 ufetch/ufetch-v0.4/ufetch-manjaro delete mode 100755 ufetch/ufetch-v0.4/ufetch-mint delete mode 100755 ufetch/ufetch-v0.4/ufetch-mx delete mode 100755 ufetch/ufetch-v0.4/ufetch-netbsd delete mode 100755 ufetch/ufetch-v0.4/ufetch-nixos delete mode 100755 ufetch/ufetch-v0.4/ufetch-openbsd delete mode 100755 ufetch/ufetch-v0.4/ufetch-parabola delete mode 100755 ufetch/ufetch-v0.4/ufetch-popos delete mode 100755 ufetch/ufetch-v0.4/ufetch-pureos delete mode 100755 ufetch/ufetch-v0.4/ufetch-raspberrypios delete mode 100755 ufetch/ufetch-v0.4/ufetch-slackware delete mode 100755 ufetch/ufetch-v0.4/ufetch-suse delete mode 100755 ufetch/ufetch-v0.4/ufetch-ubuntu delete mode 100755 ufetch/ufetch-v0.4/ufetch-void delete mode 100755 ufetch/ufetch-v0.4/ufetch-voyager diff --git a/ufetch/ufetch-v0.4/LICENSE b/ufetch/ufetch-v0.4/LICENSE deleted file mode 100644 index f9a9e4e..0000000 --- a/ufetch/ufetch-v0.4/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2015 J Schillinger - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/ufetch/ufetch-v0.4/README.md b/ufetch/ufetch-v0.4/README.md deleted file mode 100644 index eab4fc1..0000000 --- a/ufetch/ufetch-v0.4/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# ufetch - -Tiny system info for Unix-like operating systems. - -![ufetch](https://jschx.gitlab.io/images/ufetch.png) diff --git a/ufetch/ufetch-v0.4/ufetch-alpine b/ufetch/ufetch-v0.4/ufetch-alpine deleted file mode 100755 index 2ab0c4d..0000000 --- a/ufetch/ufetch-v0.4/ufetch-alpine +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/sh -# -# ufetch-alpine - tiny system info for alpine - -## INFO - -# user is already defined -host="$(hostname)" -os='Alpine Linux' -kernel="$(uname -sr)" -uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')" -packages="$(apk info | wc -l)" -shell="$(basename "${SHELL}")" - -## UI DETECTION - -parse_rcs() { - for f in "${@}"; do - wm="$(tail -n 1 "${f}" 2> /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -bold='\033[1m' -black='\033[0;30m' -red='\033[0;31m' -green='\033[0;32m' -yellow='\033[0;33m' -blue='\033[0;34m' -magenta='\033[0;35m' -cyan='\033[0;36m' -white='\033[0;37m' -reset='\033[0m' - -# you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}" # info -c0="${reset}${blue}" # first color - -## OUTPUT - -printf " -${c0} /\\ ${nc}${USER}${ic}@${nc}${host}${reset} -${c0} / \\ ${lc}OS: ${ic}${os}${reset} -${c0} / /\\ \\ /\\ ${lc}KERNEL: ${ic}${kernel}${reset} -${c0} / / \\ \\/ \\ ${lc}UPTIME: ${ic}${uptime}${reset} -${c0} / / \\ \\/\\ \\ ${lc}PACKAGES: ${ic}${packages}${reset} -${c0} / / /| \\ \\ \\ \\ ${lc}SHELL: ${ic}${shell}${reset} -${c0} /_/ /_| \\_\\ \\_\\ ${lc}${uitype}: ${ic}${ui}${reset} - -" diff --git a/ufetch/ufetch-v0.4/ufetch-antergos b/ufetch/ufetch-v0.4/ufetch-antergos deleted file mode 100755 index c2e1c97..0000000 --- a/ufetch/ufetch-v0.4/ufetch-antergos +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/sh -# -# ufetch-antergos - tiny system info for antergos - -## INFO - -# user is already defined -host="$(hostname)" -os='Antergos' -kernel="$(uname -sr)" -uptime="$(uptime -p | sed 's/up //')" -packages="$(pacman -Q | wc -l)" -shell="$(basename "${SHELL}")" - -## UI DETECTION - -parse_rcs() { - for f in "${@}"; do - wm="$(tail -n 1 "${f}" 2> /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}" # info -c0="${reset}${blue}" # first color -c1="${reset}${white}" # second color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}" # info -c0="${reset}${blue}" # first color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}" # info -c0="${reset}${blue}" # first color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}" # info -c0="${reset}${blue}" # first color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}" # info -c0="${reset}${blue}" # first color - -## OUTPUT - -cat < /dev/null` -reset=`tput sgr0 2> /dev/null` - -# you can change these -lc="${reset}${bold}" # labels -nc="${reset}${bold}" # user and hostname -ic="${reset}" # info -c0="${reset}" # first color - -## OUTPUT - -echo "${c0} _${reset} -${c0} (/ ${nc}${USER}${ic}@${nc}${host}${reset} -${c0} .---__--. ${lc}OS: ${ic}${os}${reset} -${c0} / \ ${lc}KERNEL: ${ic}${kernel}${reset} -${c0} | / ${lc}PACKAGES: ${ic}${packages}${reset} -${c0} | \\_ ${lc}UPTIME: ${ic}${uptime}${reset} -${c0} \ / ${lc}SHELL: ${ic}${shell}${reset} -${c0} \`._.-._.\` ${lc}${uitype}: ${ic}${ui}${reset} -" diff --git a/ufetch/ufetch-v0.4/ufetch-centos b/ufetch/ufetch-v0.4/ufetch-centos deleted file mode 100755 index d6fe2d1..0000000 --- a/ufetch/ufetch-v0.4/ufetch-centos +++ /dev/null @@ -1,86 +0,0 @@ -#!/bin/sh - -# ufetch-centos - tiny system info for centos - -## INFO - -# user is already defined -host="$(hostname)" -os="$(cat /etc/centos-release | sed 's/release //')" -kernel="$(uname -sr)" -uptime="$(uptime -p | sed 's/up //')" -packages="$(yum list installed | wc -l)" -shell="$(basename "${SHELL}")" - -## UI DETECTION - -parse_rcs() { - for f in "${@}"; do - wm="$(tail -n 1 "${f}" 2> /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}" # info -c0="${reset}${green}" # first color -c1="${reset}${yellow}" # second color -c2="${reset}${magenta}" # third color -c3="${reset}${blue}" # fourth color - -## OUTPUT - -cat < ${lc}UPTIME: ${ic}${uptime}${reset} -${c3} | / ${c0}|${c1} \\ | ${lc}PACKAGES: ${ic}${packages}${reset} -${c3} |/__${c0}|${c1}__\\| ${lc}SHELL: ${ic}${shell}${reset} -${c0} v ${lc}${uitype}: ${ic}${ui}${reset} - -EOF diff --git a/ufetch/ufetch-v0.4/ufetch-crux b/ufetch/ufetch-v0.4/ufetch-crux deleted file mode 100755 index 5400f22..0000000 --- a/ufetch/ufetch-v0.4/ufetch-crux +++ /dev/null @@ -1,85 +0,0 @@ -#!/bin/sh -# -# ufetch-crux - tiny system info for crux - -## INFO - -# user is already defined -host="$(hostname)" -os="$(crux)" -kernel="$(uname -sr)" -uptime="$(uptime -p | sed 's/up //')" -packages="$(pkginfo -i | wc -l)" -shell="$(basename "${SHELL}")" - -## UI DETECTION - -parse_rcs() { - for f in "${@}"; do - wm="$(tail -n 1 "${f}" 2> /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${cyan}" # labels -nc="${reset}${bold}${cyan}" # user and hostname -ic="${reset}" # info -c0="${reset}${cyan}" # first color -c1="${reset}${white}" # second color -c2="${reset}${yellow}" # third color - -## OUTPUT - -cat < ${c0}| ${lc}KERNEL: ${ic}${kernel}${reset} -${c0} / ${c1}__ ${c0}\\ ${lc}UPTIME: ${ic}${uptime}${reset} -${c0} ( ${c1}/ \\ ${c0}/| ${lc}PACKAGES: ${ic}${packages}${reset} -${c2} _${c0}/\\ ${c1}__)${c0}/${c2}_${c0}) ${lc}SHELL: ${ic}${shell}${reset} -${c2} \/${c0}-____${c2}\/ ${lc}${uitype}: ${ic}${ui}${reset} - -EOF diff --git a/ufetch/ufetch-v0.4/ufetch-debian b/ufetch/ufetch-v0.4/ufetch-debian deleted file mode 100755 index 0e45a78..0000000 --- a/ufetch/ufetch-v0.4/ufetch-debian +++ /dev/null @@ -1,83 +0,0 @@ -#!/bin/sh -# -# ufetch-debian - tiny system info for debian - -## INFO - -# user is already defined -host="$(hostname)" -os="Debian $(cat /etc/debian_version)" -kernel="$(uname -sr)" -uptime="$(uptime -p | sed 's/up //')" -packages="$(dpkg -l | grep -c ^i)" -shell="$(basename "${SHELL}")" - -## UI DETECTION - -parse_rcs() { - for f in "${@}"; do - wm="$(tail -n 1 "${f}" 2> /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${red}" # labels -nc="${reset}${bold}${red}" # user and hostname -ic="${reset}" # info -c0="${reset}${red}" # first color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${magenta}" # labels -nc="${reset}${bold}${magenta}" # user and hostname -ic="${reset}" # info -c0="${reset}${bold}${magenta}" # first color -c1="${reset}${magenta}" # second color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}" # info -c0="${reset}${bold}${blue}" # first color -c1="${reset}${blue}" # second color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}" # info -c0="${reset}${white}" # first color -c1="${reset}${blue}" # second color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput md 2> /dev/null)" - black="$(tput AF 0 2> /dev/null)" - red="$(tput AF 1 2> /dev/null)" - green="$(tput AF 2 2> /dev/null)" - yellow="$(tput AF 3 2> /dev/null)" - blue="$(tput AF 4 2> /dev/null)" - magenta="$(tput AF 5 2> /dev/null)" - cyan="$(tput AF 6 2> /dev/null)" - white="$(tput AF 7 2> /dev/null)" - reset="$(tput me 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${red}" # labels -nc="${reset}${bold}${red}" # user and hostname -ic="${reset}" # info -c0="${reset}${bold}${red}" # first color -c1="${reset}${red}" # second color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${magenta}" # labels -nc="${reset}${bold}${magenta}" # user and hostname -ic="${reset}" # info -c0="${reset}${bold}${magenta}" # first color -c1="${reset}${magenta}" # second color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}" # info -c0="${reset}${blue}" # first color -c1="${reset}${white}" # first color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${yellow}" # labels -nc="${reset}${bold}${yellow}" # user and hostname -ic="${reset}" # info -c0="${reset}${yellow}" # first color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${white}" # labels -nc="${reset}${bold}${white}" # user and hostname -ic="${reset}" # info -c0="${reset}${white}" # first color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${cyan}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}" # info -c0="${reset}${white}" # first color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}" # labels -nc="${reset}${bold}" # user and hostname -ic="${reset}" # info -c0="${reset}${black}" # first color -c1="${reset}${white}" # second color -c2="${reset}${yellow}" # third color - -## OUTPUT - -cat < ${c0}| ${lc}KERNEL: ${ic}${kernel}${reset} -${c0} /${c1}/ \\ ${c0}\\ ${lc}UPTIME: ${ic}${uptime}${reset} -${c0} ( ${c1}| | ${c0}/| ${lc}PACKAGES: ${ic}${packages}${reset} -${c2} _${c0}/\\ ${c1}__)${c0}/${c2}_${c0}) ${lc}SHELL: ${ic}${shell}${reset} -${c2} \/${c0}-____${c2}\/${reset} ${lc}${uitype}: ${ic}${ui}${reset} - -EOF diff --git a/ufetch/ufetch-v0.4/ufetch-linuxlite b/ufetch/ufetch-v0.4/ufetch-linuxlite deleted file mode 100755 index e6d466c..0000000 --- a/ufetch/ufetch-v0.4/ufetch-linuxlite +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/sh -# -# ufetch-linuxlite - tiny system info for linux lite - -## INFO - -# user is already defined -host="$(hostname)" -os="$(lsb_release -ds)" -kernel="$(uname -sr)" -uptime="$(uptime -p | sed 's/up //')" -packages="$(dpkg -l | wc -l)" -shell="$(basename "${SHELL}")" - -## UI DETECTION - -parse_rcs() { - for f in "${@}"; do - wm="$(tail -n 1 "${f}" 2> /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${yellow}" # labels -nc="${reset}${bold}${yellow}" # user and hostname -ic="${reset}" # info -c0="${reset}${yellow}" # first color -c1="${reset}${white}" # second color - -## OUTPUT - -cat < ${c1}/ ${c0}/ ${lc}UPTIME: ${ic}${uptime}${reset} -${c0} \\ ${c1}\\ ${c0}\\ ${lc}PACKAGES: ${ic}${packages}${reset} -${c0} \\_${c1}\\${c0}_\\ ${lc}SHELL: ${ic}${shell}${reset} -${c1} \\ ${lc}${uitype}: ${ic}${ui}${reset} - -EOF diff --git a/ufetch/ufetch-v0.4/ufetch-macos b/ufetch/ufetch-v0.4/ufetch-macos deleted file mode 100755 index 70bb8d0..0000000 --- a/ufetch/ufetch-v0.4/ufetch-macos +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/sh -# -# ufetch-macos - tiny system info for macos - -## INFO - -# user is already defined -host="$(hostname -s)" -os="$(sw_vers -productName) $(sw_vers -productVersion)" -kernel="$(uname -sr)" -uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')" -shell="$(basename "${SHELL}")" - -## PACKAGE MANAGER DETECTION - -if [ -x "$(command -v nix-info)" ]; then - packages="$(ls -d -1 /nix/store/*/ | wc -l)" -elif [ -x "$(command -v pkgin)" ]; then - packages="$(pkgin list | wc -l)" -elif [ -x "$(command -v brew)" ]; then - brew_packages="$(brew list --formulae | wc -l)" - cask_packages="$(brew list --cask 2> /dev/null | wc -l)" - packages="$(( ${brew_packages} + ${cask_packages} ))" -elif [ -x "$(command -v port)" ]; then - packages="$(port installed | wc -l)" -else - packages='unknown' -fi - -packages="$(echo "${packages}" | sed -e 's/^[ /t]*//')" - -## UI DETECTION - -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -else - ui='Aqua' - uitype='UI' -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}" # labels -nc="${reset}${bold}" # user and hostname -ic="${reset}" # info -c0="${reset}" # first color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${cyan}" # labels -nc="${reset}${bold}${cyan}" # user and hostname -ic="${reset}" # info -c0="${reset}${white}" # first color -c1="${reset}${cyan}" # second color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${green}" # labels -nc="${reset}${bold}${green}" # user and hostname -ic="${reset}" # info -c0="${reset}${green}" # first color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${green}" # labels -nc="${reset}${bold}${green}" # user and hostname -ic="${reset}" # info -c0="${reset}${green}" # first color -c1="${reset}${white}" # second color -c2="${reset}${bold}${green}" # third color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}" # labels -nc="${reset}${bold}" # user and hostname -ic="${reset}" # info -c0="${reset}${white}" # first color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${yellow}" # labels -nc="${reset}${bold}${yellow}" # user and hostname -ic="${reset}" # info -c0="${reset}" # first color -c1="${reset}${yellow}" # second color - -## OUTPUT - -cat </dev/null || printf '') | wc -l)))" - fi -done - -## UI DETECTION - -parse_rcs() { - for f in "${@}"; do - wm="$(tail -n 1 "${f}" 2> /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}" # info -c0="${reset}${blue}" # first color -c1="${reset}${bold}${blue}" # second color - -## OUTPUT - -sed 's/\\/\\\\/g' < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null 0 0 2>/dev/null)" - red="$(tput setaf 1 2> /dev/null 0 0 2>/dev/null)" - green="$(tput setaf 2 2> /dev/null 0 0 2>/dev/null)" - yellow="$(tput setaf 3 2> /dev/null 0 0 2>/dev/null)" - blue="$(tput setaf 4 2> /dev/null 0 0 2>/dev/null)" - magenta="$(tput setaf 5 2> /dev/null 0 0 2>/dev/null)" - cyan="$(tput setaf 6 2> /dev/null 0 0 2>/dev/null)" - white="$(tput setaf 7 2> /dev/null 0 0 2>/dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${yellow}" # labels -nc="${reset}${bold}${yellow}" # user and hostname -ic="${reset}" # info -c0="${reset}${yellow}" # first color -c1="${reset}${white}" # second color -c2="${reset}${bold}${yellow}" # third color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${magenta}" # labels -nc="${reset}${bold}${magenta}" # user and hostname -ic="${reset}" # info -c0="${reset}${magenta}" # first color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${cyan}" # labels -nc="${reset}${bold}${cyan}" # user and hostname -ic="${reset}" # info -c0="${reset}${cyan}" # first color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}" # info -c0="${reset}" # first color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${red}" # labels -nc="${reset}${bold}${red}" # user and hostname -ic="${reset}" # info -c0="${reset}${green}" # first color -c1="${reset}${red}" # second color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}" # info -c0="${reset}${blue}" # first color - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${green}" # labels -nc="${reset}${bold}${green}" # user and hostname -ic="${reset}" # info -c0="${reset}${green}" # first color -c1="${reset}" # second color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${yellow}" # labels -nc="${reset}${bold}${yellow}" # user and hostname -ic="${reset}" # info -c0="${reset}${yellow}" # first color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${green}" # labels -nc="${reset}${bold}${green}" # user and hostname -ic="${reset}" # info -c0="${reset}${bold}${green}" # first color -c1="${reset}${green}" # second color - -## OUTPUT - -cat < /dev/null | cut -d ' ' -f 2)" - [ -n "${wm}" ] && echo "${wm}" && return - done -} - -rcwm="$(parse_rcs "${HOME}/.xinitrc" "${HOME}/.xsession")" - -ui='unknown' -uitype='UI' -if [ -n "${DE}" ]; then - ui="${DE}" - uitype='DE' -elif [ -n "${WM}" ]; then - ui="${WM}" - uitype='WM' -elif [ -n "${XDG_CURRENT_DESKTOP}" ]; then - ui="${XDG_CURRENT_DESKTOP}" - uitype='DE' -elif [ -n "${DESKTOP_SESSION}" ]; then - ui="${DESKTOP_SESSION}" - uitype='DE' -elif [ -n "${rcwm}" ]; then - ui="${rcwm}" - uitype='WM' -elif [ -n "${XDG_SESSION_TYPE}" ]; then - ui="${XDG_SESSION_TYPE}" -fi - -ui="$(basename "${ui}")" - -## DEFINE COLORS - -# probably don't change these -if [ -x "$(command -v tput)" ]; then - bold="$(tput bold 2> /dev/null)" - black="$(tput setaf 0 2> /dev/null)" - red="$(tput setaf 1 2> /dev/null)" - green="$(tput setaf 2 2> /dev/null)" - yellow="$(tput setaf 3 2> /dev/null)" - blue="$(tput setaf 4 2> /dev/null)" - magenta="$(tput setaf 5 2> /dev/null)" - cyan="$(tput setaf 6 2> /dev/null)" - white="$(tput setaf 7 2> /dev/null)" - reset="$(tput sgr0 2> /dev/null)" -fi - -# you can change these -lc="${reset}${bold}${yellow}" # labels -nc="${reset}${bold}${yellow}" # user and hostname -ic="${reset}" # info -c0="${reset}${yellow}" # first color - -## OUTPUT - -cat <