Skip to content

Commit 15f2892

Browse files
authored
here it is
1 parent acd61e3 commit 15f2892

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

hfetch

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
read -r host < /proc/sys/kernel/hostname
3+
read -r kernel < /proc/sys/kernel/osrelease
4+
. /etc/os-release
5+
id=$(xprop -root -notype _NET_SUPPORTING_WM_CHECK)
6+
id=${id##* }
7+
green="\e[92m"
8+
yellow="\e[93m"
9+
reg="\e[95m"
10+
white="\e[0m"
11+
printf " ${green}pc${white} ~ ${host}
12+
${green}os${white} ~ ${PRETTY_NAME}
13+
${green}sh${white} ~ ${SHELL##*/}
14+
${green}wm${white} ~ $(xprop -id "$id" -notype -len 100 -f _NET_WM_NAME 8t | grep '^_NET_WM_NAME' | cut -d\" -f 2)
15+
${green}kr${white} ~ $(uname -r)
16+
><> ${reg}welcome to ${green}earth${reg}, ${yellow}${USER}${reg}
17+
"

0 commit comments

Comments
 (0)