12 Commits
Author SHA1 Message Date
jschx 9831ec29c6 Merge branch 'master' into 'master'
Remove net-tools package dependency in Arch Linux

See merge request jschx/ufetch!63
2019-12-29 22:58:25 +00:00
Alicja Lis 333935ab92 Remove net-tools package dependency in Arch Linux 2019-12-26 13:42:49 +01:00
jschx 850143865d Merge branch 'master' into 'master'
Suppress warnings caused by 'tput setaf' in non 256-color terminal emulators on OpenBSD

See merge request jschx/ufetch!62
2019-12-20 20:14:23 +00:00
Finn Lis c8f5d2c821 Suppress warnings caused by 'tput setaf' in non 256-color terminal emulators 2019-12-20 21:03:23 +01:00
jschx 5feffaa000 Merge branch 'master' into 'master'
Fix 'tput: not enough arguments (3) for capability `setaf'' warning in OpenBSD

See merge request jschx/ufetch!61
2019-12-20 19:08:32 +00:00
Finn Lis d31332d46e Fix 'tput: not enough arguments (3) for capability `setaf'' warning in OpenBSD 2019-12-20 19:58:57 +01:00
jschx 877f675c99 Merge branch 'master' into 'master'
Fixes for Guix.

See merge request jschx/ufetch!60
2019-10-28 02:47:40 +00:00
Eric Bavier f9eb37c8e3 Fixes for Guix.
* ufetch-guixsd: Rename this file...
* ufetch-guix: ... to this.
(os): Update to upstream-preferred "Guix System".
(uptime): Fix for 'uptime' implementation present in Guix.
(packages): Fix calling syntax.
2019-10-27 21:28:40 -05:00
jschx d9e0ab644e Consistency fixes. All info text is now the default terminal color
(works better with light themes)
2019-10-04 14:17:29 -05:00
jschx dae5cd5584 Merge branch 'nixos-packages' into 'master'
Fix to nixos packages

See merge request jschx/ufetch!59
2019-08-27 02:38:07 +00:00
kraem f55f89a9e5 Fix to nixos packages 2019-08-04 13:00:10 +02:00
jschx 544c670443 ufetch-debian: Correction & improvements
Thanks @Head_on_a_Stick (jschx/ufetch#9)
2019-06-02 10:30:46 -05:00
34 changed files with 120 additions and 113 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ fi
# you can change these
lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info
ic="${reset}" # info
c0="${reset}${blue}" # first color
## OUTPUT
+3 -3
View File
@@ -56,9 +56,9 @@ fi
# you can change these
lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${blue}" # first color
c1="${reset}${bold}${white}" # second color
ic="${reset}" # info
c0="${reset}${blue}" # first color
c1="${reset}${white}" # second color
## OUTPUT
+3 -3
View File
@@ -5,7 +5,7 @@
## INFO
# user is already defined
host="$(hostname)"
host="$(cat /etc/hostname)"
os='Arch Linux'
kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')"
@@ -56,8 +56,8 @@ fi
# you can change these
lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${blue}" # first color
ic="${reset}" # info
c0="${reset}${blue}" # first color
## OUTPUT
+2 -2
View File
@@ -56,8 +56,8 @@ fi
# you can change these
lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${blue}" # first color
ic="${reset}" # info
c0="${reset}${blue}" # first color
## OUTPUT
+4 -4
View File
@@ -56,8 +56,8 @@ fi
# you can change these
lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${blue}" # first color
ic="${reset}" # info
c0="${reset}${blue}" # first color
## OUTPUT
@@ -68,7 +68,7 @@ ${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}
${c0} / / -----\\ \\ ${lc}SHELL: ${ic}${shell}${reset}
${c0} /_/ \`\`\`\`-.\\_\\ ${lc}${uitype}: ${ic}${ui}${reset}
EOF
+2 -2
View File
@@ -56,8 +56,8 @@ fi
# you can change these
lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${blue}" # first color
ic="${reset}" # info
c0="${reset}${blue}" # first color
## OUTPUT
+7 -7
View File
@@ -54,13 +54,13 @@ if [ -x "$(command -v tput)" ]; then
fi
# you can change these
lc="${reset}${bold}${magenta}" # labels
nc="${reset}${bold}${magenta}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${green}" # first color
c1="${reset}${bold}${yellow}" # second color
c2="${reset}${bold}${magenta}" # third color
c3="${reset}${bold}${blue}" # fourth color
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
+1 -1
View File
@@ -56,7 +56,7 @@ fi
# you can change these
lc="${reset}${bold}${cyan}" # labels
nc="${reset}${bold}${cyan}" # user and hostname
ic="${reset}${bold}${white}" # info
ic="${reset}" # info
c0="${reset}${cyan}" # first color
c1="${reset}${white}" # second color
c2="${reset}${yellow}" # third color
+9 -3
View File
@@ -6,10 +6,10 @@
# user is already defined
host="$(hostname)"
os='Debian'
os="Debian $(cat /etc/debian_version)"
kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')"
packages="$(dpkg -l | wc -l)"
packages="$(dpkg -l | grep -c ^i)"
shell="$(basename "$SHELL")"
## UI DETECTION
@@ -32,6 +32,12 @@ elif [ -f "${HOME}/.xinitrc" ]; then
elif [ -f "${HOME}/.xsession" ]; then
ui="$(tail -n 1 "${HOME}/.xsession" | cut -d ' ' -f 2)"
uitype='WM'
elif [ -h /etc/alternatives/x-session-manager ]; then
ui="$(update-alternatives --query x-session-manager | awk -F'/' '/Value/{print $4}')"
uitype='DE'
elif [ -h /etc/alternatives/x-window-manager ]; then
ui="$(update-alternatives --query x-window-manager | awk -F'/' '/Value/{print $4}')"
uitype='WM'
else
ui='unknown'
uitype='UI'
@@ -56,7 +62,7 @@ fi
# you can change these
lc="${reset}${bold}${red}" # labels
nc="${reset}${bold}${red}" # user and hostname
ic="${reset}${bold}${white}" # info
ic="${reset}" # info
c0="${reset}${bold}${red}" # first color
c1="${reset}${red}" # second color
+4 -4
View File
@@ -56,16 +56,16 @@ fi
# you can change these
lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${white}" # first color
c1="${reset}${white}" # second color
ic="${reset}" # info
c0="${reset}${bold}${blue}" # first color
c1="${reset}${blue}" # second color
## OUTPUT
cat <<EOF
${c1} _______ ${nc}${USER}${ic}@${nc}${host}${reset}
${c1} / ${c0}____ ${c1}\\ ${lc}OS: ${ic}${os}${reset}
${c1} / ${c0}___ ${c1}\\ ${lc}OS: ${ic}${os}${reset}
${c1} / ${c0}| / /${c1}\\ ${lc}KERNEL: ${ic}${kernel}${reset}
${c1} |${c0}__\\ / /${c1} | ${lc}UPTIME: ${ic}${uptime}${reset}
${c1} \\ ${c0}/__/${c1} / ${lc}PACKAGES: ${ic}${packages}${reset}
+3 -3
View File
@@ -56,9 +56,9 @@ fi
# you can change these
lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${white}" # first color
c1="${reset}${bold}${cyan}" # second color
ic="${reset}" # info
c0="${reset}${white}" # first color
c1="${reset}${blue}" # second color
## OUTPUT
+1 -1
View File
@@ -56,7 +56,7 @@ fi
# you can change these
lc="${reset}${bold}${red}" # labels
nc="${reset}${bold}${red}" # user and hostname
ic="${reset}${bold}${white}" # info
ic="${reset}" # info
c0="${reset}${bold}${red}" # first color
c1="${reset}${red}" # second color
+1 -1
View File
@@ -56,7 +56,7 @@ fi
# you can change these
lc="${reset}${bold}${magenta}" # labels
nc="${reset}${bold}${magenta}" # user and hostname
ic="${reset}${bold}${white}" # info
ic="${reset}" # info
c0="${reset}${bold}${magenta}" # first color
c1="${reset}${magenta}" # second color
+3 -3
View File
@@ -56,9 +56,9 @@ fi
# you can change these
lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${blue}" # first color
c1="${reset}${bold}${white}" # first color
ic="${reset}" # info
c0="${reset}${blue}" # first color
c1="${reset}${white}" # first color
## OUTPUT
+6 -6
View File
@@ -1,15 +1,15 @@
#!/bin/sh
#
# ufetch-guixsd - tiny system info for guixsd
# ufetch-guix - tiny system info for guixsd
## INFO
# user is already defined
host="$(hostname)"
os='GuixSD'
os='Guix System'
kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')"
packages="$(guix --list-installed | wc -l)"
uptime="$(uptime | sed 's/.*up \([^,]*\).*/\1/')"
packages="$(guix package --list-installed | wc -l)"
shell="$(basename "$SHELL")"
## UI DETECTION
@@ -56,8 +56,8 @@ fi
# you can change these
lc="${reset}${bold}${yellow}" # labels
nc="${reset}${bold}${yellow}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${yellow}" # first color
ic="${reset}" # info
c0="${reset}${yellow}" # first color
## OUTPUT
+2 -2
View File
@@ -56,8 +56,8 @@ fi
# you can change these
lc="${reset}${bold}${white}" # labels
nc="${reset}${bold}${white}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${white}" # first color
ic="${reset}" # info
c0="${reset}${white}" # first color
## OUTPUT
+4 -4
View File
@@ -54,10 +54,10 @@ if [ -x "$(command -v tput)" ]; then
fi
# you can change these
lc="${reset}${bold}${black}" # labels
nc="${reset}${bold}${black}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${black}" # first color
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
+3 -3
View File
@@ -56,9 +56,9 @@ fi
# you can change these
lc="${reset}${bold}${yellow}" # labels
nc="${reset}${bold}${yellow}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${yellow}" # first color
c1="${reset}${bold}${white}" # second color
ic="${reset}" # info
c0="${reset}${yellow}" # first color
c1="${reset}${white}" # second color
## OUTPUT
+5 -5
View File
@@ -54,11 +54,11 @@ if [ -x "$(command -v tput)" ]; then
fi
# you can change these
lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${white}" # first color
c1="${reset}${bold}${cyan}" # second color
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
+2 -2
View File
@@ -56,8 +56,8 @@ fi
# you can change these
lc="${reset}${bold}${green}" # labels
nc="${reset}${bold}${green}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${green}" # first color
ic="${reset}" # info
c0="${reset}${green}" # first color
## OUTPUT
+9 -9
View File
@@ -56,21 +56,21 @@ fi
# you can change these
lc="${reset}${bold}${green}" # labels
nc="${reset}${bold}${green}" # user and hostname
ic="${reset}${bold}${white}" # info
ic="${reset}" # info
c0="${reset}${green}" # first color
c1="${reset}${bold}${white}" # second color
c1="${reset}${white}" # second color
c2="${reset}${bold}${green}" # third color
## OUTPUT
cat <<EOF
${c0} ___________ ${nc}${USER}${ic}@${nc}${host}${reset}
${c0} |_ \\ ${lc}OS: ${ic}${os}${reset}
${c0} | ${c1}| _____ ${c0}| ${lc}KERNEL: ${ic}${kernel}${reset}
${c0} | ${c1}| | | | ${c0}| ${lc}UPTIME: ${ic}${uptime}${reset}
${c0} | ${c1}| | | | ${c0}| ${lc}PACKAGES: ${ic}${packages}${reset}
${c0} | ${c1}\\__${c2}___/ ${c0}| ${lc}SHELL: ${ic}${shell}${reset}
${c0} \\_________/ ${lc}${uitype}: ${ic}${ui}${reset}
${c0} _____________ ${nc}${USER}${ic}@${nc}${host}${reset}
${c0} |_ \\ ${lc}OS: ${ic}${os}${reset}
${c0} | ${c1}| _____ ${c0}| ${lc}KERNEL: ${ic}${kernel}${reset}
${c0} | ${c1}| | | | ${c0}| ${lc}UPTIME: ${ic}${uptime}${reset}
${c0} | ${c1}| | | | ${c0}| ${lc}PACKAGES: ${ic}${packages}${reset}
${c0} | ${c1}\\__${c2}___/ ${c0}| ${lc}SHELL: ${ic}${shell}${reset}
${c0} \\___________/ ${lc}${uitype}: ${ic}${ui}${reset}
EOF
+4 -4
View File
@@ -54,10 +54,10 @@ if [ -x "$(command -v tput)" ]; then
fi
# you can change these
lc="${reset}${bold}${white}" # labels
nc="${reset}${bold}${white}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${white}" # first color
lc="${reset}${bold}" # labels
nc="${reset}${bold}" # user and hostname
ic="${reset}" # info
c0="${reset}${white}" # first color
## OUTPUT
+2 -2
View File
@@ -56,8 +56,8 @@ fi
# you can change these
lc="${reset}${bold}${yellow}" # labels
nc="${reset}${bold}${yellow}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${white}" # first color
ic="${reset}" # info
c0="${reset}" # first color
c1="${reset}${yellow}" # second color
## OUTPUT
+2 -2
View File
@@ -9,7 +9,7 @@ host="$(hostname)"
os="$(nixos-version)"
kernel="$(uname -sr)"
uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')"
packages="$(ls -d -1 /nix/store/ | wc -l)"
packages="$(ls -d -1 /nix/store/*/ | wc -l)"
shell="$(basename "$SHELL")"
## UI DETECTION
@@ -56,7 +56,7 @@ fi
# you can change these
lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info
ic="${reset}" # info
c0="${reset}${blue}" # first color
c1="${reset}${bold}${blue}" # second color
+9 -9
View File
@@ -42,21 +42,21 @@ fi
# probably don't change these
if [ -x "$(command -v tput)" ]; then
bold="$(tput bold)"
black="$(tput setaf 0)"
red="$(tput setaf 1)"
green="$(tput setaf 2)"
yellow="$(tput setaf 3)"
blue="$(tput setaf 4)"
magenta="$(tput setaf 5)"
cyan="$(tput setaf 6)"
white="$(tput setaf 7)"
black="$(tput setaf 0 0 0 2>/dev/null)"
red="$(tput setaf 1 0 0 2>/dev/null)"
green="$(tput setaf 2 0 0 2>/dev/null)"
yellow="$(tput setaf 3 0 0 2>/dev/null)"
blue="$(tput setaf 4 0 0 2>/dev/null)"
magenta="$(tput setaf 5 0 0 2>/dev/null)"
cyan="$(tput setaf 6 0 0 2>/dev/null)"
white="$(tput setaf 7 0 0 2>/dev/null)"
reset="$(tput sgr0)"
fi
# you can change these
lc="${reset}${bold}${yellow}" # labels
nc="${reset}${bold}${yellow}" # user and hostname
ic="${reset}${bold}${white}" # info
ic="${reset}" # info
c0="${reset}${yellow}" # first color
c1="${reset}${white}" # second color
c2="${reset}${bold}${yellow}" # third color
+2 -2
View File
@@ -56,8 +56,8 @@ fi
# you can change these
lc="${reset}${bold}${magenta}" # labels
nc="${reset}${bold}${magenta}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${magenta}" # first color
ic="${reset}" # info
c0="${reset}${magenta}" # first color
## OUTPUT
+2 -2
View File
@@ -56,8 +56,8 @@ fi
# you can change these
lc="${reset}${bold}${cyan}" # labels
nc="${reset}${bold}${cyan}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${cyan}" # first color
ic="${reset}" # info
c0="${reset}${cyan}" # first color
## OUTPUT
+2 -2
View File
@@ -56,8 +56,8 @@ fi
# you can change these
lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${white}" # first color
ic="${reset}" # info
c0="${reset}" # first color
## OUTPUT
+3 -3
View File
@@ -56,9 +56,9 @@ fi
# you can change these
lc="${reset}${bold}${red}" # labels
nc="${reset}${bold}${red}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${green}" # first color
c1="${reset}${bold}${red}" # second color
ic="${reset}" # info
c0="${reset}${green}" # first color
c1="${reset}${red}" # second color
## OUTPUT
+4 -4
View File
@@ -54,10 +54,10 @@ if [ -x "$(command -v tput)" ]; then
fi
# you can change these
lc="${reset}${bold}${magenta}" # labels
nc="${reset}${bold}${magenta}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${magenta}" # first color
lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}" # info
c0="${reset}${blue}" # first color
cat <<EOF
+10 -9
View File
@@ -56,19 +56,20 @@ fi
# you can change these
lc="${reset}${bold}${green}" # labels
nc="${reset}${bold}${green}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${green}" # first color
ic="${reset}" # info
c0="${reset}${green}" # first color
c1="${reset}" # second color
## OUTPUT
cat <<EOF
${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}
${c0} _______ ${nc}${USER}${ic}@${nc}${host}${reset}
${c0} -___| __ \\ ${lc}OS: ${ic}${os}${reset}
${c0} / ${c1}.${c0}\\ \\ ${lc}KERNEL: ${ic}${kernel}${reset}
${c0} \\__/ ${c0}| ${lc}UPTIME: ${ic}${uptime}${reset}
${c0} _______| ${lc}PACKAGES: ${ic}${packages}${reset}
${c0} \\_______ ${lc}SHELL: ${ic}${shell}${reset}
${c0} --__________/ ${lc}${uitype}: ${ic}${ui}${reset}
EOF
+2 -2
View File
@@ -56,8 +56,8 @@ fi
# you can change these
lc="${reset}${bold}${yellow}" # labels
nc="${reset}${bold}${yellow}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${yellow}" # first color
ic="${reset}" # info
c0="${reset}${yellow}" # first color
## OUTPUT
+1 -1
View File
@@ -56,7 +56,7 @@ fi
# you can change these
lc="${reset}${bold}${green}" # labels
nc="${reset}${bold}${green}" # user and hostname
ic="${reset}${bold}${white}" # info
ic="${reset}" # info
c0="${reset}${bold}${green}" # first color
c1="${reset}${green}" # second color
+2 -2
View File
@@ -56,8 +56,8 @@ fi
# you can change these
lc="${reset}${bold}${yellow}" # labels
nc="${reset}${bold}${yellow}" # user and hostname
ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${yellow}" # first color
ic="${reset}" # info
c0="${reset}${yellow}" # first color
## OUTPUT