Skip to content

Instantly share code, notes, and snippets.

@lgallindo
Forked from ParallaxWave/iFetch
Created December 20, 2022 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgallindo/2eff0a29b260297a984abe13fb7c253a to your computer and use it in GitHub Desktop.
Save lgallindo/2eff0a29b260297a984abe13fb7c253a 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}󰊠 "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment