Skip to content

Instantly share code, notes, and snippets.

@ParallaxWave
Created December 23, 2021 04:13
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ParallaxWave/2dfe7cfda2d4e56512279f59fd02dfe9 to your computer and use it in GitHub Desktop.
Save ParallaxWave/2dfe7cfda2d4e56512279f59fd02dfe9 to your computer and use it in GitHub Desktop.
A simple sysfetch tool
#!/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}󰊠 "
@aravezskinteeth
Copy link

Which font do you use to render the unicode characters from the 23rd line?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment