summaryrefslogtreecommitdiff
path: root/bin/.bin/sysinfo
blob: b121b97733cc925e50e764f6a377fdc4cecc38ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
#
# System info

wm="$(echo $XDG_CURRENT_DESKTOP)"
distro="$(cat /etc/*-release | grep PRETTY_NAME | cut -d '=' -f2 | tr -d '"')"
packages="$(pacman -Q | wc -l)"
font="jetbrains mono"
colors="pencil"

printf " \e[0m\n"
printf " \e[1;34m      distro \e[0m$distro\n"
printf " \e[1;34m        pkgs \e[0m$packages\n"
printf " \e[1;34m          wm \e[0m$wm\n"
printf " \e[1;34m        font \e[0m$font $fontsize\n"
printf " \e[1;34m      colors \e[0m$colors\n"
printf " \e[0m\n"

pcs() { for i in {0..7}; do echo -en "\e[${1}$((30+$i))m \u2588\u2588 \e[0m"; done; }
printf "\n%s\n%s\n\n" "$(pcs)" "$(pcs '1;')"