GNU Screen a hardstatus

18. 7. 2007 16:13 | Linux |

Dneska sem si upravil hardstatus ve screenu, a jelikoz by se to mohlo nekomu hodit, tak to sem dam, i se screenem.

tohle prijde do /etc/screenrc nebo do ~/.screenrc

hardstatus alwayslastline "%{kg}%n:%t pocasi: %1` %{kg}%-40=%l %{kG}%c:%s %D, %d.%m.%Y "
caption always " | %-w%{= BW}%50>%n %t%{-}%+w |%<"
backtick 1 0 60 teplota
shelltitle "$ |bash"

a tohle mam v /bin/teplota
#!/bin/bash
wget -q -O /tmp/temp.txt http://meteo.resslovaci.net/text.php
echo `cat /tmp/temp.txt |head -n 1`C `cat /tmp/temp.txt |head -n 3|tail -n 1`hPa `cat /tmp/temp.txt |tail -n 1`LUX
rm /tmp/temp.txt

Screen hardstatus

No Comments yet

Sorry, the comment form is closed at this time.

Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^