summary refs log tree commit diff
diff options
context:
space:
mode:
authorDruid520 <r.ustydruid520@proton.me>2026-07-26 23:55:43 -0700
committerDruid520 <r.ustydruid520@proton.me>2026-07-26 23:55:43 -0700
commit3ca63327fe657b5e970642b23541a9bbd6992da1 (patch)
treed4cb66c52a2a329dcdbe9354617ea98f0d54b3fc
parent96fe02b5b7e6ef1af17773ce734fe9fb219f3eeb (diff)
MOD: add term support and clean up comments
-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"