program 'sit' is included in Fatdog by default IIRC, if not its in gslapt. Enables you to stuff things into the tray and assign a icon and left/right clicks to that.
sit image.png tooltip left-click-action right-click-action ... type syntax
Another option is to create a larger virtual workspace that you can pan around by moving the mouse to screen edges. Run xrandr to identify your screen name, maybe VGA-0 or eDP .... or something like that, and try
xrandr --output eDP --rate 60 --mode 1366x768 --panning 2000x1000
... which works for my laptops 60Hz 1366x768 that's called eDP
Within that larger workspace you might add the likes of bmon, htop, whatever system monitors you might like to use. I quite like cwm when running like that as it has no windows decorations nor panel ...etc. Great on a laptop where you mostly use the keyboard. I've defined my cwm to use keys such as WIN x to close a window, WIN tab to step between windows, WIN left mouse to move a window, ALT left mouse to resize window, WIN space to show the command menu ...etc. Awkward at first, but once second nature productivity tends to be magnitudes better. To launch rox for instance WIN space space r <enter> might be typed to launch your command window and select the rox entry whilst not even looking at the screen let alone having to reach for the mouse and drag it to a corner and click and roll the mouse up to filemanagers and then across to rox ... etc.
- ss.jpg (174.87 KiB) Viewed 1540 times
If you open your browser and set that down the right edge with its width fitting your actual display then a quick flip of the mouse to the right screen edge shows that browser. Set your monitors down the left screen edge and you can flip the mouse over to the left to view those.
Alternatively just open each of bmon, htop, chrome, whatever and maximise then and flip between them using usual alt-tab (or in my cwm case WIN tab)
cwm isn't in Fatdog nor gslapt, has to be compiled. jwm can be set up to do very similar in many respects but I do like the cwm predictive menus that jwm doesn't include.
Yet another option is to create your own
Code: Select all
#!/bin/sh
/root/cpuused & # start CPU usage monitor
_find_func() { # find function for Locate where to read cpu temperature from
FILES="$1"
for n in `echo $FILES`; do
read p < $n
if [ $? = 0 ];then
FILE=$n # found it
break
else
continue # didn't find, search again
fi
done
# if we get here we didn't find anything useful
}
# Scan for where to read cpu temperature from
for a in `find /sys/devices/platform -type f -name 'temp*_input'|sort` `find /sys/devices/pci* -type f -name 'temp*_input'|sort` `find /sys/devices/virtual -type f -name 'temp'|sort`
do _find_func "$a"
[ -z "$FILE" ] && continue || break # if we found data break
done
CPU_TEMP=$FILE
###
_temperature() { # Container temperature tray icon
last=55
if [ -f $CPU_TEMP ]; then
while :; do
x=$(cat $CPU_TEMP)
x=$((x/1000))
if [ $x -gt 1 ]; then
if [ $x -ne $last ];then
last=$x
echo $last >/tmp/cputemp
fi
fi
sleep 2
done
else
Xdialog --msgbox "cpu temperature not found" 0 0
fi
}
_temperature &
trap 'exec $0' HUP # Restart itself
trap 'tput cnorm; exit 1' INT QUIT TERM
tput civis # Hide cursor
while true; do
TEMPERATURE=`cat /tmp/cputemp`
D=`date +"%a %d %b %Y"`
T=`date +"%H:%M"`
B_MAX=$(cat /sys/class/power_supply/BAT1/charge_full)
B_NOW=$(cat /sys/class/power_supply/BAT1/charge_now)
B_MAX=$((B_MAX / 100))
BATT=$((B_NOW / B_MAX))
CPUUSED=$(cat /tmp/cpuused)
SOUNDLEVEL=`amixer | grep "Mono: Playback" | grep -oh '\[[0-9].*\]' | head -c 7 | sed 's/.*\[\([^]]*\)\].*/\1/g'
`
# 0 black, 1 red, 2 green, 3 yellow, 4 blue, 5 magenta, 6 cyan, 7 white
TEMPREDTHRESHOLD=59 # CPU temp 60 degrees or more then red/blink
BATTLOWREDTHRESHOLD=40 # Battery 40% or less then red/blink
if (( $TEMPERATURE > $TEMPREDTHRESHOLD ));then
CPUCOLOR="$(tput blink) $(tput setaf 1)"
else
CPUCOLOR="$(tput setaf 2)"
fi
if (( $BATT < $BATTLOWREDTHRESHOLD ));then
BATTCOLOR="$(tput blink) $(tput setaf 1)"
else
BATTCOLOR="$(tput setaf 3)"
fi
DATECOLOR=$(tput setaf 7)
SEPARATORCOLOR=$(tput setaf 4)
BAR="${DATECOLOR}$T $D${SEPARATORCOLOR} ▋ $(tput setaf 5)Volume ${SOUNDLEVEL}${SEPARATORCOLOR} ▋ ${BATTCOLOR}Battery ${BATT}%$(tput sgr0)${SEPARATORCOLOR} ▋ ${CPUCOLOR}CPU temperature ${TEMPERATURE}°$(tput sgr0)${SEPARATORCOLOR} ▋ $(tput setaf 6)CPU ${CPUUSED} "
# tput clear cup 1 0 # flashes if have this so commented out
tput cup 0 0
printf "%s" "${BAR}"
#printf "%110.110s" "${BAR}"
sleep 60
done
tput cnorm # Show cursor
cpuused
Code: Select all
#!/bin/bash
# by Paul Colby (http://colby.id.au), no rights reserved ;)
PREV_TOTAL=0
PREV_IDLE=0
while true; do
CPU=(`cat /proc/stat | grep '^cpu '`) # Get the total CPU statistics.
unset CPU[0] # Discard the "cpu" prefix.
IDLE=${CPU[4]} # Get the idle CPU time.
# Calculate the total CPU time.
TOTAL=0
for VALUE in "${CPU[@]:0:4}"; do
let "TOTAL=$TOTAL+$VALUE"
done
# Calculate the CPU usage since we last checked.
let "DIFF_IDLE=$IDLE-$PREV_IDLE"
let "DIFF_TOTAL=$TOTAL-$PREV_TOTAL"
let "DIFF_USAGE=(1000*($DIFF_TOTAL-$DIFF_IDLE)/$DIFF_TOTAL+5)/10"
echo -en "$DIFF_USAGE%" >/tmp/cpuused
# Remember the total and idle CPU times for the next check.
PREV_TOTAL="$TOTAL"
PREV_IDLE="$IDLE"
# Wait before checking again.
sleep 60
done
works for me, part of the code used to create a terminal bar showing time, date, battery, sound level, cpu temperature, cpu used indicator in a single line so can be started in a xterm window with -geometry set to the width and 1 character height. In cwm you can set a gap at each/any of the screen edges that windows wont overwrite so is ideal for such a terminal bar.
Yet another option might be to use gkrellm. Maybe set the openbox panel height to be taller and not so wide to leave space for a gkrellm monitor(s) to be placed.
Yet another option is to load all your monitors onto desktop 2 and use desktop 1 as your workspace, so a quick flip over to desktop 2 reveals the system info.
Some spend much time 'ricing' their desktop. Mike Walsh has created some pretty nice looks where he incorporates various monitors/tools along with icon placements and wallpaper image to make a really nice looking desktop.