Created
December 23, 2021 04:13
-
-
Save ab-dx/2dfe7cfda2d4e56512279f59fd02dfe9 to your computer and use it in GitHub Desktop.
A simple sysfetch tool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
os=$(tail -n 1 /etc/lsb-release | sed s/DISTRIB_DESCRIPTION=//g | sed s/\"//g) | |
arch=$(uname -m) | |
editor=$EDITOR | |
shell=$SHELL | |
wm=$(wmctrl -m | head - -n 1 | sed s/Name\:\ //g) | |
txtred='\e[0;31m' # Red | |
txtgrn='\e[0;32m' # Green | |
txtylw='\e[0;33m' # Yellow | |
txtblu='\e[0;34m' # Blue | |
txtpur='\e[0;35m' # Purple | |
txtwht='\e[0;37m' # White | |
echo | |
echo -e "${txtylw} ${txtwht}▏" $os | |
echo -e "${txtblu} ${txtwht}▏" $arch | |
echo -e "${txtpur} ${txtwht}▏" $wm | |
echo -e "${txtred} ${txtwht}▏" $editor | |
echo -e "${txtgrn} ${txtwht}▏" $shell | |
echo | |
echo -e "${txtylw} ${txtblu} ${txtred} ${txtgrn} ${txtpur} " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which font do you use to render the unicode characters from the 23rd line?