Advertisement
Guest User

lcd4linux.conf

a guest
Feb 22nd, 2012
1,948
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.25 KB | None | 0 0
  1. Display dpf {
  2. Driver 'DPF'
  3. Port 'usb0'
  4. Font '12x16'
  5. Foreground 'ffffff'
  6. Background '000000'
  7. Basecolor '000000'
  8. Orientation 3 # Orientation value from 0-3
  9. Backlight 2 # Backlight variable control
  10. }
  11.  
  12. Display Image {
  13. Driver 'Image'
  14. Format 'PNG'
  15. Size '320x240'
  16. Font '12x16'
  17. Pixel '1+0'
  18. Gap '0x0'
  19. Foreground 'ffffff'
  20. Background '000000'
  21. Basecolor '000000'
  22. }
  23.  
  24. Widget Date {
  25. class 'Text'
  26. expression strftime('%a %d %b %H:%M:%S',time())
  27. width 26
  28. align 'C'
  29. update tick
  30. Background '008000'
  31. Foreground 'ffffff'
  32. }
  33.  
  34. Widget Busy {
  35. class 'Text'
  36. expression proc_stat::cpu('busy', 500)
  37. prefix 'Busy '
  38. postfix '%'
  39. width 11
  40. precision 1
  41. align 'R'
  42. update tick
  43. Foreground 'ffffff'
  44. Background 'FFFFFF00'
  45. }
  46.  
  47. Widget BusyBar {
  48. class 'Bar'
  49. expression proc_stat::cpu('busy', 1000)
  50. expression2 proc_stat::cpu('system', 1000)
  51. length 13
  52. direction 'E'
  53. update tack
  54. Foreground 'ffffff'
  55. Background '00000080'
  56. BarColor0 '5f5fff'
  57. BarColor1 'ff5f5f'
  58. min 0
  59. max 100
  60. }
  61.  
  62. Widget Wan {
  63. class 'Text'
  64. expression (netdev('3g-wan', 'Rx_bytes', 500)+netdev('3g-wan', 'Tx_bytes', 500))/1024
  65. prefix '3g-wan'
  66. postfix 'K'
  67. width 11
  68. precision 0
  69. align 'R'
  70. update tick
  71. Foreground 'ffffff'
  72. Background 'FFFFFF00'
  73. }
  74.  
  75. Widget WanBar {
  76. class 'Bar'
  77. expression netdev('3g-wan', 'Rx_bytes', 500)/1024
  78. expression2 netdev('3g-wan', 'Tx_bytes', 500)/1024
  79. length 13
  80. direction 'E'
  81. update tack
  82. Foreground 'ffffff'
  83. Background '00000080'
  84. BarColor1 '5f5fff'
  85. BarColor0 'ff5f5f'
  86. max 100
  87. }
  88.  
  89. Widget Uptime {
  90. class 'Text'
  91. expression 'Up: '.uptime('%d days %H:%M:%S')
  92. width 26
  93. align 'C'
  94. update tick
  95. Background '5f5fff'
  96. }
  97.  
  98. Widget TempCpu {
  99. class 'Text'
  100. expression i2c_sensors('temp2_input')
  101. prefix 'CPU Tmp: '
  102. width 13
  103. align 'R'
  104. update tick
  105. precision 1
  106. }
  107.  
  108. Widget TempMb {
  109. class 'Text'
  110. expression i2c_sensors('temp1_input')
  111. prefix 'Brd Tmp: '
  112. width 13
  113. align 'R'
  114. update tick
  115. precision 1
  116. }
  117.  
  118. Widget WetterTmp {
  119. class 'Text'
  120. expression file::readline('/tmp/wetterParsed', 1)
  121. prefix 'tmp '
  122. postfix '°'
  123. width 8
  124. align 'R'
  125. update minute
  126. Background '00000000'
  127. }
  128.  
  129. Widget WetterTmpTmr {
  130. class 'Text'
  131. expression file::readline('/tmp/wetterParsed', 10)
  132. postfix '°'
  133. width 4
  134. align 'R'
  135. update minute
  136. Background '00000000'
  137. }
  138.  
  139. Widget WetterWnd {
  140. class 'Text'
  141. expression file::readline('/tmp/wetterParsed', 2)
  142. prefix 'wnd '
  143. width 8
  144. align 'R'
  145. update minute
  146. Background '00000000'
  147. }
  148.  
  149. Widget WetterWndSpd {
  150. class 'Text'
  151. expression file::readline('/tmp/wetterParsed', 3)
  152. presission 0
  153. prefix 'spd '
  154. width 8
  155. align 'R'
  156. update minute
  157. Background '00000000'
  158. }
  159.  
  160. Widget WetterHumid {
  161. class 'Text'
  162. expression file::readline('/tmp/wetterParsed', 4)
  163. prefix 'hum '
  164. postfix '%'
  165. width 8
  166. align 'R'
  167. update minute
  168. Background '00000000'
  169. }
  170.  
  171. Widget WetterPres {
  172. class 'Text'
  173. expression file::readline('/tmp/wetterParsed', 5).file::readline('/tmp/wetterParsed', 6)
  174. prefix 'prs '
  175. width 8
  176. align 'R'
  177. update minute
  178. Background '00000000'
  179. }
  180.  
  181. Widget WetterIcon {
  182. class 'Image'
  183. file '/mnt/sd/icons/wetter/'.file::readline('/tmp/wetterParsed', 7).'.png'
  184. update minute
  185. reload 1
  186. visible 1
  187. }
  188.  
  189. Widget WetterIconTmr {
  190. class 'Image'
  191. file '/mnt/sd/icons/wetter/'.file::readline('/tmp/wetterParsed', 11).'.png'
  192. update minute
  193. reload 1
  194. visible 1
  195. }
  196.  
  197. Widget WanTransfer {
  198. class 'Text'
  199. expression exec('awk -f /mnt/sd/bin/calcTransfer.awk', 600000)
  200. prefix 'WAN: '
  201. postfix ' MB'
  202. width 13
  203. align 'R'
  204. update tick
  205. precision 2
  206. }
  207.  
  208. Widget WanTransferBar {
  209. class 'Bar'
  210. expression exec('awk -f /mnt/sd/bin/calcTransfer.awk', 600000)/30
  211. expression2 exec('awk -v today=1 -f /mnt/sd/bin/calcTransfer.awk', 600000)
  212. length 13
  213. direction 'E'
  214. style 'H'
  215. update tick
  216. Foreground 'ffffff'
  217. Background '00000080'
  218. BarColor0 'ff5f5f'
  219. BarColor1 '5f5fff'
  220. max 170
  221. }
  222.  
  223. Widget MailIcon {
  224. class 'Image'
  225. file '/mnt/sd/icons/gmail-icon.png'
  226. visible (time() % 2) & (file::readline('/tmp/newMail', 1) != '0')
  227. update tick
  228. background '00000000'
  229. }
  230.  
  231.  
  232. Widget Clock1 {
  233. class 'Image'
  234. file '/mnt/sd/icons/digits/'.substr(strftime('%H', time()),0,1).'.png'
  235. visible 1
  236. update tick
  237. reload 1
  238. }
  239.  
  240. Widget Clock2 {
  241. class 'Image'
  242. file '/mnt/sd/icons/digits/'.substr(strftime('%H', time()),1,1).'.png'
  243. visible 1
  244. update tick
  245. reload 1
  246. }
  247.  
  248. Widget Clock3 {
  249. class 'Image'
  250. file '/mnt/sd/icons/digits/'.substr(strftime('%M', time()),0,1).'.png'
  251. visible 1
  252. update tick
  253. reload 1
  254. }
  255.  
  256. Widget Clock4 {
  257. class 'Image'
  258. file '/mnt/sd/icons/digits/'.substr(strftime('%M', time()),1,1).'.png'
  259. visible 1
  260. update tick
  261. reload 1
  262. }
  263.  
  264. Widget ClockSC {
  265. class 'Image'
  266. file '/mnt/sd/icons/digits/dp.png'
  267. visible 1
  268. update 0
  269. }
  270.  
  271.  
  272. Layout MainLayout {
  273. Row01.Col01 'Date'
  274. Row03.Col01 'Busy'
  275. Row04.Col01 'BusyBar'
  276. Row03.Col14 'TempCPU'
  277. Row04.Col14 'TempMb'
  278. Row05.Col01 'Wan'
  279. Row06.Col01 'WanBar'
  280. Row05.Col14 'WanTransfer'
  281. Row06.Col14 'WanTransferBar'
  282. Row09.Col01 'WetterTmp'
  283. Row09.Col09 'WetterTmpTmr'
  284. Row10.Col01 'WetterWnd'
  285. Row11.Col01 'WetterWndSpd'
  286. Row12.Col01 'WetterHumid'
  287. Row13.Col01 'WetterPres'
  288. Row15.Col01 'Uptime'
  289. Layer 2 {
  290. X105.Y275 'MailIcon'
  291. X93.Y50 'WetterIcon'
  292. X93.Y100 'WetterIconTmr'
  293. X145.Y135 'Clock1'
  294. X145.Y175 'Clock2'
  295. X145.Y220 'ClockSC'
  296. X145.Y240 'Clock3'
  297. X145.Y280 'Clock4'
  298. }
  299. Layer 0 {
  300. }
  301. }
  302.  
  303.  
  304. Display 'DPF'
  305. #Display 'Image'
  306. Layout 'MainLayout'
  307.  
  308.  
  309. Variables {
  310. tick 1000
  311. tack 200
  312. minute 60000
  313. hour 3600000
  314. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement