#!/bin/bash # simple screen information script # similar to archey and screenfetch without annoying ASCII graphics # this script is provided with NO GUARANTEE and NO SUPPORT # if it breaks or does not do what you want, FIX IT YOURSELF VERSION="3.4" # updated for changes to free -m clear # read wm names from a file #WMLIST='/usr/bin/wmlist' #wms=($(cat $WMLIST)) # read wmlist from file # or use wm array -- add any that need to be recognized wms=( 2bwm 2wm 9wm aewm afterstep ahwm alopex amiwm antiwm awesome blackbox bspwm catwm clfswm ctwm cwm dminiwm dragonflywm dwm echinus \ euclid-wm evilpoison evilwm fluxbox flwm fvwm-crystal goomwwm hcwm herbstluftwm i3 icewm jwm karmen larswm lwm matwm2 mcwm monsterwm \ musca notion nwm olwm openbox oroborus pekwm ratpoison sapphire sawfish sscrotwm sithwm smallwm snapwm spectrwm stumpwm subtle tfwm tinywm tritium twm \ uwm vtwm w9wm weewm wind windowlab wm2 wmaker wmfs wmii wmx xfwm4 xmonad xoat yeahwm ) # define colors for color-echo red="\e[31m" grn="\e[32m" ylw="\e[33m" cyn="\e[36m" blu="\e[34m" prp="\e[35m" rst="\e[0m" color-echo() { # print with colors echo -e "$cyn$1: $rst$2" } print-kernel() { color-echo 'Kernel' "$(uname -smr)" } print-uptime() { up=$(