Variables { color1 'ff0000' color2 '295f40' textcolor 'fff22c' style 'bold' back '00000050' } Display dpf { Driver 'DPF' Port 'usb0' Font '15x20' Foreground 'ffffff' Background '000000' Basecolor '00FFFFFF' Orientation 0 # 0 = landscape, 1 = portrait # 2 = reverse landscape, 3 = reverse portrait Backlight backlight # Backlight variable control, 0..7 (0=off, 7=max) } Widget Uname { class 'Text' expression uname('nodename') . ' ' . (netinfo::ipaddr('eth0') ? ' ' . netinfo::ipaddr('eth0') : '') . ' ' . uname('name') . ' ' . uname('release') . ' ' . uname('machine') . ' ' . uname('version') width 32 align 'M' update tick Foreground textcolor Background back Style 'bold' } Widget CPU { class 'Text' expression proc_stat::cpu('busy', 500) prefix 'CPU Busy ' postfix ' %' width 16 precision 1 align 'R' update tick Foreground textcolor Background back } Widget System { class 'Text' expression proc_stat::cpu('system', 500) prefix 'Sys ' postfix ' %' width 11 precision 1 align 'R' update tick Foreground textcolor Background back } Widget User { class 'Text' expression proc_stat::cpu('user', 500) prefix 'User ' postfix ' %' width 11 precision 1 align 'R' update tick Foreground textcolor Background back } Widget CPUBar { class 'Bar' expression proc_stat::cpu('busy', 500) expression2 proc_stat::cpu('system', 500) length 32 max 100 direction 'E' update tack Foreground 'ffffff' Background '00000050' BarColor0 color1 BarColor1 color2 } #Widget Load { # class 'Text' # expression exec('/usr/bin/bash -c /home/harija/Stuff/Scripts/get_cpu_avg_ghz.sh') # prefix 'Avg Freq' # postfix 'GHz' # width 15 # precision 1 # align 'R' # update tick # Foreground textcolor # Background back #} #Widget LoadBar { # class 'Bar' # expression exec('/usr/bin/bash -c /home/harija/Stuff/Scripts/get_cpu_avg_ghz.sh') # expression2 exec('/usr/bin/bash -c /home/harija/Stuff/Scripts/get_cpu_max_ghz.sh') # max 4.4 # length 32 # direction 'E' # update tack # Foreground 'ffffff' # Background '000050' # BarColor0 color1 # BarColor1 color2 #} Widget IPaddrETH { class 'Text' expression (netinfo::ipaddr('eth0') ? ' ' . netinfo::ipaddr('eth0') : '') prefix 'IP Eth : ' width 25 align 'R' update tick Foreground textcolor Background back } Widget IPaddrWIFI { class 'Text' expression (netinfo::ipaddr('wlan0') ? ' ' . netinfo::ipaddr('wlan0') : '') prefix 'IP Wifi : ' width 25 align 'R' update tick Foreground textcolor Background back } Widget RAM { class 'Text' expression ((meminfo('MemTotal') - meminfo('MemAvailable')) / 1024 prefix 'RAM' postfix '/32000MB' width 20 precision 0 align 'R' update tick Foreground textcolor Background back } Widget RAMBar { class 'Bar' expression ((meminfo('MemTotal') - meminfo('MemAvailable') max (meminfo('MemTotal') length 32 direction 'E' update tack Foreground 'ffffff' Background '00000050' BarColor0 color1 BarColor1 color2 } Widget ETH { class 'Text' expression (netdev('eth0', 'Rx_bytes', 500)+netdev('eth0', 'Tx_bytes', 500)) *8 /1024 /1024 prefix 'ETH ' postfix ' Mbps' width 15 precision 0 align 'R' update tick Foreground textcolor Background back } Widget ETHBar { class 'Bar' expression netdev('eth0', 'Rx_bytes', 1 * 1000) * 8 / 1024 / 1024 expression2 netdev('eth0', 'Tx_bytes', 1 * 1000) * 8 / 1024 / 1024 max 45 length 32 direction 'E' update tack Foreground 'ffffff' Background '00000050' BarColor0 color1 BarColor1 color2 } Widget WIFI { class 'Text' expression (netdev('wlan0', 'Rx_bytes', 500)+netdev('wlan0', 'Tx_bytes', 500)) *8 /1024 /1024 prefix 'Wifi ' postfix ' Mbps' width 15 precision 0 align 'R' update tick Foreground textcolor Background back } Widget WIFIBar { class 'Bar' expression netdev('wlan0', 'Rx_bytes', 1 * 1000) * 8 / 1024 / 1024 expression2 netdev('wlan0', 'Tx_bytes', 1 * 1000) * 8 / 1024 / 1024 max 45 length 32 direction 'E' update tack Foreground 'ffffff' Background '00000050' BarColor0 color1 BarColor1 color2 } Widget Uptime { class 'Text' # class 'Truetype' expression uptime('%d days %H:%M:%S') # font '/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf' # size '20' width 24 align 'E' prefix 'Uptime : ' update 1000 Foreground textcolor Background back } Widget Bgnd { class 'Image' file '/home/pi/Pictures/ax206-arm.png' reload 1 update 5000 inverted 0 visible 1 } Display 'DPF' Layout layout_480x320 { Row01.Col01 'Uname' Row04.Col01 'CPU' Row03.Col01 'System' Row03.Col18 'User' Row05.Col01 'CPUBar' Row07.Col01 'IPaddrETH' Row08.Col01 'IPaddrWIFI' Row10.Col01 'RAM' Row11.Col01 'RAMBar' Row13.Col01 'ETH' Row14.Col01 'ETHBar' Row13.Col18 'WIFI' Row14.Col18 'WIFIBar' Row16.Col01 'Uptime' Layer 2 { X1.Y1 'Bgnd' } } Layout 'layout_480x320' Variables { backlight 7 tick 500 tack 200 minute 60000 }