Advertisement
Guest User

cc

a guest
Feb 15th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 11.55 KB | None | 0 0
  1. background yes
  2. use_xft yes
  3. xftfont sans:size=10
  4. xftalpha 1
  5. update_interval 1.0
  6. total_run_times 0
  7. own_window_argb_visual yes
  8. own_window yes
  9. own_window_transparent yes
  10. own_window_type
  11. own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
  12. double_buffer yes
  13. minimum_size 0 1080
  14. maximum_width 250
  15. draw_shades no
  16. draw_outline no
  17. draw_borders no
  18. draw_graph_borders yes
  19. default_color white
  20. default_shade_color green
  21. default_outline_color white
  22. alignment top_right
  23. gap_x 30
  24. gap_y 30
  25. no_buffers yes
  26. uppercase no
  27. cpu_avg_samples 2
  28. override_utf8_locale yes
  29. default_color CCFF99
  30. color11 051300
  31. color1 FFFFFF
  32. color2 a0a0a0
  33. color3 FF3333
  34. color4 336600
  35. color5 110000
  36. color6 33CCCC
  37. color7 ffffff
  38. color8 ccccf8
  39. color9 000000
  40. color10 051300
  41. #--- LUA ---
  42. #lua_load ~/winter.lua
  43. #lua_draw_hook_pre widgets
  44.  
  45. TEXT
  46. ${color ffffff}
  47. ${voffset -20}${alignc}${font Ubuntu:size=15}${time %B}
  48. ${color8}$hr${voffset 10}
  49. ${color1}${font monospace:size=16}${execp cal -m | tail -n7 | head -n1}${color2}
  50. ${execp cal -m | tail -n6 | sed "s/`date +%e` \|`date +%e`$/\$\{color3}&\$\{color8\}/"}
  51. ${voffset -35}
  52. $hr
  53. ${voffset -25}
  54. ${font}${alignr}${color1}                  ${freq (0)}
  55. ${color1}${alignc}${font Sans:size=17}${if_match ${cpu cpu0} >0}${color1}${else}${color2}${endif}${if_match ${cpu cpu0} >10}${color1}${else}${color2}${endif}${if_match ${cpu cpu0} >20}${color1}${else}${color2}${endif}${if_match ${cpu cpu0} >30}${color1}${else}${color2}${endif}${if_match ${cpu cpu0} >40}${color1}${else}${color2}${endif}${if_match ${cpu cpu0} >50}${color1}${else}${color2}${endif}${if_match ${cpu cpu0} >60}${color1}${else}${color2}${endif}${if_match ${cpu cpu0} >70}${color1}${else}${color2}${endif}${if_match ${cpu cpu0} >80}${color3}${else}${color2}${endif}${if_match ${cpu cpu0} >90}${color3}${else}${color2}${endif}${font}
  56. ${voffset -2}${color1}${alignr}                  ${freq (1)}
  57. ${color1}${alignc}${font Sans:size=17}${if_match ${cpu cpu1} >0}${color1}${else}${color2}${endif}${if_match ${cpu cpu1} >10}${color1}${else}${color2}${endif}${if_match ${cpu cpu1} >20}${color1}${else}${color2}${endif}${if_match ${cpu cpu1} >30}${color1}${else}${color2}${endif}${if_match ${cpu cpu1} >40}${color1}${else}${color2}${endif}${if_match ${cpu cpu1} >50}${color1}${else}${color2}${endif}${if_match ${cpu cpu1} >60}${color1}${else}${color2}${endif}${if_match ${cpu cpu1} >70}${color1}${else}${color2}${endif}${if_match ${cpu cpu1} >80}${color3}${else}${color2}${endif}${if_match ${cpu cpu1} >90}${color3}${else}${color2}${endif}${font}
  58. ${voffset -2}${color1}${alignr}                  ${freq (2)}
  59. ${color1}${alignc}${font Sans:size=17}${if_match ${cpu cpu2} >0}${color1}${else}${color2}${endif}${if_match ${cpu cpu2} >10}${color1}${else}${color2}${endif}${if_match ${cpu cpu2} >20}${color1}${else}${color2}${endif}${if_match ${cpu cpu2} >30}${color1}${else}${color2}${endif}${if_match ${cpu cpu2} >40}${color1}${else}${color2}${endif}${if_match ${cpu cpu2} >50}${color1}${else}${color2}${endif}${if_match ${cpu cpu2} >60}${color1}${else}${color2}${endif}${if_match ${cpu cpu2} >70}${color1}${else}${color2}${endif}${if_match ${cpu cpu2} >80}${color3}${else}${color2}${endif}${if_match ${cpu cpu2} >90}${color3}${else}${color2}${endif}${font}
  60. ${color1}${alignr}                 ${freq (3)}
  61. ${voffset -3}${color1}${alignc}${font Sans:size=17}${if_match ${cpu cpu3} >0}${color1}${else}${color2}${endif}${if_match ${cpu cpu3} >10}${color1}${else}${color2}${endif}${if_match ${cpu cpu3} >20}${color1}${else}${color2}${endif}${if_match ${cpu cpu3} >30}${color1}${else}${color2}${endif}${if_match ${cpu cpu3} >40}${color1}${else}${color2}${endif}${if_match ${cpu cpu3} >50}${color1}${else}${color2}${endif}${if_match ${cpu cpu3} >60}${color1}${else}${color2}${endif}${if_match ${cpu cpu3} >70}${color1}${else}${color2}${endif}${if_match ${cpu cpu3} >80}${color3}${else}${color2}${endif}${if_match ${cpu cpu3} >90}${color3}${else}${color2}${endif}${font}
  62. ${voffset -2}${color1}${alignr}${mem}
  63. ${color1}${alignc}${font Sans:size=17}${if_match ${memperc} >0}${color1}${else}${color2}${endif}${if_match ${memperc} >10}${color1}${else}${color2}${endif}${if_match ${memperc} >20}${color1}${else}${color2}${endif}${if_match ${memperc} >30}${color1}${else}${color2}${endif}${if_match ${memperc} >40}${color1}${else}${color2}${endif}${if_match ${memperc} >50}${color1}${else}${color2}${endif}${if_match ${memperc} >60}${color1}${else}${color2}${endif}${if_match ${memperc} >70}${color1}${else}${color2}${endif}${if_match ${memperc} >80}${color3}${else}${color2}${endif}${if_match ${memperc} >90}${color3}${else}${color2}${endif}${font}
  64. ${voffset -2}${color1}${alignr}${swap}
  65. ${color1}${alignc}${font Sans:size=17}${if_match ${swapperc} >0}${color1}${else}${color2}${endif}${if_match ${swapperc} >10}${color1}${else}${color2}${endif}${if_match ${swapperc} >20}${color1}${else}${color2}${endif}${if_match ${swapperc} >30}${color1}${else}${color2}${endif}${if_match ${swapperc} >40}${color1}${else}${color2}${endif}${if_match ${swapperc} >50}${color1}${else}${color2}${endif}${if_match ${swapperc} >60}${color1}${else}${color2}${endif}${if_match ${swapperc} >70}${color1}${else}${color2}${endif}${if_match ${swapperc} >80}${color3}${else}${color2}${endif}${if_match ${swapperc} >90}${color3}${else}${color2}${endif}${font}
  66. ${voffset -4}${color1}${alignr}${fs_used /}
  67. ${color1}${alignc}${font Sans:size=17}${if_match ${fs_used_perc /} >0}${color1}${else}${color2}${endif}${if_match ${fs_used_perc /} >10}${color1}${else}${color2}${endif}${if_match ${fs_used_perc /} >20}${color1}${else}${color2}${endif}${if_match ${fs_used_perc /} >30}${color1}${else}${color2}${endif}${if_match ${fs_used_perc /} >40}${color1}${else}${color2}${endif}${if_match ${fs_used_perc /} >50}${color1}${else}${color2}${endif}${if_match ${fs_used_perc /} >60}${color1}${else}${color2}${endif}${if_match ${fs_used_perc /} >70}${color1}${else}${color2}${endif}${if_match ${fs_used_perc /} >80}${color3}${else}${color2}${endif}${if_match ${fs_used_perc /} >90}${color3}${else}${color2}${endif}${font}
  68. ${voffset -4}${color1}${alignr}${fs_used /home}
  69. ${color1}${alignc}${font Sans:size=17}${if_match ${fs_used_perc /home} >0}${color1}${else}${color2}${endif}${if_match ${fs_used_perc /home} >10}${color1}${else}${color2}${endif}${if_match ${fs_used_perc /home} >20}${color1}${else}${color2}${endif}${if_match ${fs_used_perc /home} >30}${color1}${else}${color2}${endif}${if_match ${fs_used_perc /home} >40}${color1}${else}${color2}${endif}${if_match ${fs_used_perc /home} >50}${color1}${else}${color2}${endif}${if_match ${fs_used_perc /home} >60}${color1}${else}${color2}${endif}${if_match ${fs_used_perc /home} >70}${color1}${else}${color2}${endif}${if_match ${fs_used_perc /home} >80}${color3}${else}${color2}${endif}${if_match ${fs_used_perc /home} >90}${color3}${else}${color2}${endif}${font}
  70. ${voffset -4}${color1}${alignr}  ${upspeed enp5s0}
  71. ${color1}${alignc}${font Sans:size=17}${if_match ${upspeedf enp5s0} >0}${color1}${else}${color2}${endif}${if_match ${upspeedf enp5s0} >100}${color1}${else}${color2}${endif}${if_match ${upspeedf enp5s0} >200}${color1}${else}${color2}${endif}${if_match ${upspeedf enp5s0} >300}${color1}${else}${color2}${endif}${if_match ${upspeedf enp5s0} >400}${color1}${else}${color2}${endif}${if_match ${upspeedf enp5s0} >500}${color1}${else}${color2}${endif}${if_match ${upspeedf enp5s0} >600}${color1}${else}${color2}${endif}${if_match ${upspeedf enp5s0} >700}${color1}${else}${color2}${endif}${if_match ${upspeedf enp5s0} >800}${color3}${else}${color2}${endif}${if_match ${upspeedf enp5s0} >900}${color3}${else}${color2}${endif}${font}
  72. ${voffset -5}${color1}${alignr}   ${downspeed enp5s0}
  73. ${color1}${alignc}${font Sans:size=17}${if_match ${downspeedf enp5s0} >0}${color1}${else}${color2}${endif}${if_match ${downspeedf enp5s0} >100}${color1}${else}${color2}${endif}${if_match ${downspeedf enp5s0} >200}${color1}${else}${color2}${endif}${if_match ${downspeedf enp5s0} >300}${color1}${else}${color2}${endif}${if_match ${downspeedf enp5s0} >400}${color1}${else}${color2}${endif}${if_match ${downspeedf enp5s0} >500}${color1}${else}${color2}${endif}${if_match ${downspeedf enp5s0} >600}${color1}${else}${color2}${endif}${if_match ${downspeedf enp5s0} >700}${color1}${else}${color2}${endif}${if_match ${downspeedf enp5s0} >800}${color3}${else}${color2}${endif}${if_match ${downspeedf enp5s0} >900}${color3}${else}${color2}${endif}${font}
  74. ${voffset -4}${color8}${alignr}${hddtemp /dev/sda}
  75. ${color1}${alignc}${font Sans:size=17}${if_match ${hddtemp /dev/sda} >0}${color1}${else}${color2}${endif}${if_match ${hddtemp /dev/sda} >10}${color1}${else}${color2}${endif}${if_match ${hddtemp /dev/sda} >20}${color1}${else}${color2}${endif}${if_match ${hddtemp /dev/sda} >30}${color1}${else}${color2}${endif}${if_match ${hddtemp /dev/sda} >40}${color1}${else}${color2}${endif}${if_match ${hddtemp /dev/sda} >50}${color1}${else}${color2}${endif}${if_match ${hddtemp /dev/sda} >60}${color1}${else}${color2}${endif}${if_match ${hddtemp /dev/sda} >70}${color1}${else}${color2}${endif}${if_match ${hddtemp /dev/sda} >80}${color3}${else}${color2}${endif}${if_match ${hddtemp /dev/sda} >90}${color3}${else}${color2}${endif}${font}
  76. ${voffset -4}${color8}${alignr}        ${hwmon 0 temp 1}
  77. #${alignr}  ${execi 60 nvidia-smi -q -d TEMPERATURE | grep Gpu | cut -c39-40}
  78. ${color1}${alignc}${font Sans:size=17}${if_match ${hwmon 0 temp 1} >0}${color1}${else}${color2}${endif}${if_match ${hwmon 0 temp 1} >10}${color1}${else}${color2}${endif}${if_match ${hwmon 0 temp 1} >20}${color1}${else}${color2}${endif}${if_match ${hwmon 0 temp 1} >30}${color1}${else}${color2}${endif}${if_match ${hwmon 0 temp 1} >40}${color1}${else}${color2}${endif}${if_match ${hwmon 0 temp 1} >50}${color1}${else}${color2}${endif}${if_match ${hwmon 0 temp 1} >60}${color1}${else}${color2}${endif}${if_match ${hwmon 0 temp 1} >70}${color1}${else}${color2}${endif}${if_match ${hwmon 0 temp 1} >80}${color3}${else}${color2}${endif}${if_match ${hwmon 0 temp 1} >90}${color3}${else}${color2}${endif}${font}
  79.  
  80. ${color1}           ${color8}${totaldown enp5s0}                ${color8}${totalup enp5s0}  ${color1}
  81. ${image /home/ratte/Изображения/icons/pr1g.png -p 1,250 -s 32x32}
  82. ${image /home/ratte/Изображения/icons/pr2g.png -p 1,284 -s 32x32}
  83. ${image /home/ratte/Изображения/icons/pr3g.png -p 1,318 -s 32x32}
  84. ${image /home/ratte/Изображения/icons/pr4g.png -p 1,352 -s 32x32}
  85. ${image /home/ratte/Изображения/icons/ramg.png -p 1,386 -s 32x32}
  86. ${image /home/ratte/Изображения/icons/swopg.png -p 1,420 -s 32x32}
  87. ${image /home/ratte/Изображения/icons/hdkg.png -p 1,454 -s 32x32}
  88. ${image /home/ratte/Изображения/icons/hddg.png -p 1,488 -s 32x32}
  89. ${image /home/ratte/Изображения/icons/tdg.png -p 1,522 -s 32x32}
  90. ${image /home/ratte/Изображения/icons/sdg.png -p 1,556 -s 32x32}
  91. ${image /home/ratte/Изображения/icons/hdtg.png -p 1,590 -s 32x32}
  92. ${image /home/ratte/Изображения/icons/vdg.png -p 1,624 -s 32x32}
  93. ${image /home/ratte/Изображения/icons/zdg.png -p 1,656 -s 32x32}
  94. ${image /home/ratte/Изображения/icons/tmg.png -p 215,656 -s 32x32}
  95. #${color2}${voffset 220}${font Sans:size=78}${time %k:%M}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement