diff options
Diffstat (limited to 'sif.sh')
| -rwxr-xr-x | sif.sh | 6 |
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 | |||
| 8 | HOST=$(hostname -s) | 3 | HOST=$(hostname -s) |
| 9 | CPU=$(cat /proc/cpuinfo | grep "model name" | head -1 | cut -d':' -f2) | 4 | CPU=$(cat /proc/cpuinfo | grep "model name" | head -1 | cut -d':' -f2) |
| 10 | GPU=$(lspci | grep -i "vga\|3d\|display" | head -1 | cut -d':' -f3) # requires pciutils | 5 | GPU=$(lspci | grep -i "vga\|3d\|display" | head -1 | cut -d':' -f3) # requires pciutils |
| @@ -70,6 +65,7 @@ echo "shell: ${SHELL##*/}" # saves a shell fork | |||
| 70 | echo "pkgs: ${PKGC} (${PKGM})" | 65 | echo "pkgs: ${PKGC} (${PKGM})" |
| 71 | echo "editor: ${EDITOR}" | 66 | echo "editor: ${EDITOR}" |
| 72 | echo "de/wm: ${XDG_CURRENT_DESKTOP:-$DESKTOP_SESSION}" | 67 | echo "de/wm: ${XDG_CURRENT_DESKTOP:-$DESKTOP_SESSION}" |
| 68 | echo "term: ${TERM}" | ||
| 73 | echo "cpu: ${CPU}" | 69 | echo "cpu: ${CPU}" |
| 74 | echo "gpu: ${GPU}" | 70 | echo "gpu: ${GPU}" |
| 75 | echo "mem: ${UMEM}MiB/${TMEM}MiB" | 71 | echo "mem: ${UMEM}MiB/${TMEM}MiB" |
