Variables { iface 'adsl' minute 60000 sekunden 10000 sekunde 1000 breite 40 hoehe 15 transparent 'ffffff00' rot 'cc0000' gruen '00cc00' blau '3465a4' gelb 'fce94f' cyan '06989a' grau '808080' hellgrau 'c4beb0' weiss 'eeeeec' schwarz '2e3436' } Plugin FIFO { FifoPath '/tmp/calllog.fifo' FifoBufSize 100 } Display x11 { Driver 'X11' Size '240x120' Font '6x8' Pixel '2+0' Gap '-1x-1' Foreground gelb Background transparent Basecolor blau } Display dpf { Driver 'DPF' Port 'usb0' Font '8x16' Foreground gelb Background transparent Basecolor blau } Widget w_down { class 'Icon' speed 500 foreground gruen bitmap { row1 '.....|..*..|.***.|*****|.***.|.***.|.***.' row2 '.....|.....|..*..|.***.|*****|.***.|.***.' row3 '.***.|.....|.....|..*..|.***.|*****|.***.' row4 '.***.|.***.|.....|.....|..*..|.***.|*****' row5 '.***.|.***.|.***.|.....|.....|..*..|.***.' row6 '*****|.***.|.***.|.***.|.....|.....|..*..' row7 '.***.|*****|.***.|.***.|.***.|.....|.....' row8 '..*..|.***.|*****|.***.|.***.|.***.|.....' } } Widget w_up { class 'Icon' speed 500 foreground rot bitmap { row8 '.....|..*..|.***.|*****|.***.|.***.|.***.' row7 '.....|.....|..*..|.***.|*****|.***.|.***.' row6 '.***.|.....|.....|..*..|.***.|*****|.***.' row5 '.***.|.***.|.....|.....|..*..|.***.|*****' row4 '.***.|.***.|.***.|.....|.....|..*..|.***.' row3 '*****|.***.|.***.|.***.|.....|.....|..*..' row2 '.***.|*****|.***.|.***.|.***.|.....|.....' row1 '..*..|.***.|*****|.***.|.***.|.***.|.....' } } Widget w_hostname { class 'Text' expression strupper(uname('nodename')) width breite align 'C' style 'bold' foreground schwarz background cyan update minute } Widget w_date { class 'Text' expression strftime('%d.%m.%Y %H:%M:%S', time()) postfix ' ' width breite align 'R' foreground schwarz background cyan update sekunde } Widget w_uptime { class 'Text' expression uptime('%dd %H:%M:%S') prefix 'Up' width 16 align 'R' update sekunde } Widget w_load { class 'Text' expression loadavg(1) prefix 'Load' width 9 precision 1 align 'R' update sekunden } Widget w_memory { class 'Text' expression ( meminfo('MemTotal') - meminfo('MemFree') - meminfo('Buffers') - meminfo('Cached') ) / meminfo('MemTotal') * 100 prefix 'Mem' postfix '%' width 8 precision 0 align 'R' update sekunden } Widget w_memory_bar { class 'Bar' expression ( meminfo('MemTotal') - meminfo('MemFree') - meminfo('Buffers') - meminfo('Cached') ) / meminfo('MemTotal') * 100 length breite / 2 - 2 min 0 max 100 direction 'E' style 'H' foreground weiss background hellgrau update sekunden } Widget w_adsl_bar { class 'Bar' expression netdev::fast(iface, 'Rx_bytes', 500) / 1024 expression2 netdev::fast(iface, 'Tx_bytes', 500) / 1024 length breite / 2 - 2 direction 'E' background hellgrau update sekunden barcolor0 gruen barcolor1 rot } Widget w_adsl_down { class 'Text' expression netdev::fast(iface, 'Rx_bytes', 500) / 1024 prefix 'WAN' postfix 'kB/s' width 18 precision 2 align 'R' update sekunden } Widget w_adsl_up { class 'Text' expression netdev::fast(iface, 'Tx_bytes', 500) / 1024 prefix 'WAN' postfix 'kB/s' width 18 precision 2 align 'R' update sekunden } Widget w_traffic_down { class 'Text' expression netdev::fast(iface, 'Rx_bytes', 0) / 1048576 prefix 'Vol' postfix 'MB' width 18 precision 0 align 'R' update sekunden } Widget w_traffic_up { class 'Text' expression netdev::fast(iface, 'Tx_bytes', 0) / 1048576 prefix 'Vol' postfix 'MB' width 18 precision 0 align 'R' update sekunden } Widget w_sync_down { class 'Text' expression exec('ctlmgr_ctl r sar status/dsl_ds_rate', minute) prefix 'DSL' postfix 'kb/s' width 18 align 'R' update minute } Widget w_sync_up { class 'Text' expression exec('ctlmgr_ctl r sar status/dsl_us_rate', minute) prefix 'DSL' postfix 'kb/s' width 18 align 'R' update minute } Widget w_wan_ip { class 'Text' expression exec('wget -q -O - http://ip4.codehal.de/', minute) prefix 'IP ' width 18 update minute } Widget w_last_call { class 'Text' expression fifo::read() width breite align 'A' foreground weiss background grau update sekunde } Layout 40x15 { Row2 { Col1 'w_hostname' } Row4 { Col2 'w_uptime' Col22 'w_load' Col32 'w_memory' } Row5 { Col22 'w_memory_bar' } Row7 { Col2 'w_wan_ip' Col22 'w_adsl_bar' } Row8 { Col2 'w_adsl_down' Col22 'w_adsl_up' } Row9 { Col2 'w_traffic_down' Col22 'w_traffic_up' } Row10 { Col2 'w_sync_down' Col22 'w_sync_up' } Row12 { Col1 'w_last_call' } Row14 { Col1 'w_date' } Layer 0 { Row8 { Col6 'w_down' Col26 'w_up' } Row9 { Col6 'w_down' Col26 'w_up' } Row10 { Col6 'w_down' Col26 'w_up' } } } Display 'dpf' Layout '40x15'