summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsif.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/sif.sh b/sif.sh index 8170d25..4f67440 100755 --- a/sif.sh +++ b/sif.sh
@@ -1,10 +1,5 @@
1#!/usr/bin/env sh 1#!/usr/bin/env sh
2 2
3# sif - simple info fetcher
4# made by Druid520
5# licensed gpl-3.0-or-later
6# https://www.gnu.org/licenses/gpl-3.0-standalone.html
7
8HOST=$(hostname -s) 3HOST=$(hostname -s)
9CPU=$(cat /proc/cpuinfo | grep "model name" | head -1 | cut -d':' -f2) 4CPU=$(cat /proc/cpuinfo | grep "model name" | head -1 | cut -d':' -f2)
10GPU=$(lspci | grep -i "vga\|3d\|display" | head -1 | cut -d':' -f3) # requires pciutils 5GPU=$(lspci | grep -i "vga\|3d\|display" | head -1 | cut -d':' -f3) # requires pciutils
@@ -70,6 +65,7 @@ echo "shell: ${SHELL##*/}" # saves a shell fork
70echo "pkgs: ${PKGC} (${PKGM})" 65echo "pkgs: ${PKGC} (${PKGM})"
71echo "editor: ${EDITOR}" 66echo "editor: ${EDITOR}"
72echo "de/wm: ${XDG_CURRENT_DESKTOP:-$DESKTOP_SESSION}" 67echo "de/wm: ${XDG_CURRENT_DESKTOP:-$DESKTOP_SESSION}"
68echo "term: ${TERM}"
73echo "cpu: ${CPU}" 69echo "cpu: ${CPU}"
74echo "gpu: ${GPU}" 70echo "gpu: ${GPU}"
75echo "mem: ${UMEM}MiB/${TMEM}MiB" 71echo "mem: ${UMEM}MiB/${TMEM}MiB"