Advertisement
yochananmarqos

conkyrc

Jan 21st, 2021
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.15 KB | None | 0 0
  1. -- Based on Arch News Conky: https://github.com/tr37ion/arch_news_conky
  2. -- ConkyColors font: https://github.com/helmuthdu/conky_colors/tree/master/fonts/conkycolors
  3.  
  4. conky.config = {
  5.  
  6.     double_buffer = true,
  7.     own_window = true,
  8.     own_window_type = 'panel',
  9.     own_window_transparent = true,
  10.     own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
  11.     own_window_argb_visual = true,
  12.     own_window_argb_value = 255,
  13.     temperature_unit = 'fahrenheit',
  14.  
  15. -- Borders
  16.     draw_borders = false,
  17.     border_inner_margin = 5,
  18.  
  19. -- Contour
  20.     draw_outline = true,
  21.  
  22. -- Shades
  23.     draw_shades = false,
  24.     default_shade_color = '#000000',
  25.  
  26. -- Position
  27.     gap_y = 0,
  28.     gap_x = 0,
  29.  
  30. -- Alignment
  31.     alignment = 'bottom_middle',
  32. --    xinerama_head = 0
  33.  
  34. -- Interval
  35.     update_interval = 5,
  36.     update_interval_on_battery = 10,
  37.  
  38. -- Colors
  39.     default_color = '#FFFFFF',
  40.     color1 = '#005391',
  41.     color2 = '#777777',
  42.     color3 = '#FFFFFF',
  43.     color4 = '#CCCCCC',
  44.     color5 = '#158C75',
  45.  
  46. -- Font
  47.     use_xft = true,
  48.     font = 'Cantarell:pixelsize=12',
  49.  
  50. -- Text
  51.     use_spacer = left,
  52.     pad_percents = 3,
  53. --    lua_load = ~/conky/tr37ion/conky_lua_scripts.lua,
  54.  
  55. -- Text alpha when using Xft
  56. --  xftalpha = 10
  57.  
  58. -- Graphs
  59.     default_graph_height = 8,
  60.     default_graph_width = 40,
  61.  
  62. -- Bars
  63.     default_bar_height = 8,
  64.     default_bar_width = 40,
  65.  
  66. -- Gauges
  67. --    default_gauge_height = 25,
  68. --    default_gauge_width = 40,
  69.  
  70.     minimum_width = 0, minimum_height = 24,
  71.     maximum_width = 1920,
  72.  
  73.  
  74. -- to prevent window from moving
  75. --  use_spacer = 'none',
  76.  
  77.  
  78.  
  79.  
  80.  
  81. --${if_match ${wireless_link_qual wlan0} < 31}${color orange}bad$color$else${if_match ${wireless_link_qual wlan0} < 51}${color yellow}weak
  82.  
  83. --${color2}Temp: ${color3}${execi 30 echo "`sensors | grep 'temp1' | cut -c170-174` *9/5+32" | bc}°F ${color5}| \
  84.  
  85. --${alignc}CPU: ${lua_parse pad ${cpu}}%
  86.  
  87. --${color2}${voffset -8}${font ConkyColors:size=12}l${font}${voffset 1} ${color3}${voffset -3}${freq_g} GHz ${color5}| \
  88.  
  89. --${if_existing /tmp/nvme0-temp}${execi 300 echo $(($(cat /tmp/nvme0-temp) * 9 / 5 + 32))}°F${endif}
  90.  
  91. --
  92.  
  93.  
  94.  
  95.  
  96. };
  97.  
  98. conky.text = [[
  99. ${color2}${voffset 3}${font ConkyColors:size=12}e${font}${voffset -3}  \
  100. ${color1}${voffset -7}${cpugraph cpu1} ${color3}${voffset -1}${cpu cpu1}% ${freq_g 1} GHz
  101. ${color1}${voffset 1}${offset 22}${cpugraph cpu5} ${color3}${voffset -1}${cpu cpu5}% ${freq_g 5} GHz  \
  102. ${color1}${voffset -14}${cpugraph cpu2} ${color3}${voffset -1}${cpu cpu2}% ${freq_g 2} GHz
  103. ${color1}${voffset 1}${offset 148}${cpugraph cpu6} ${color3}${voffset -1}${cpu cpu6}% ${freq_g 6} GHz  \
  104. ${color1}${voffset -14}${cpugraph cpu3} ${color3}${voffset -1}${cpu cpu3}% ${freq_g 3} GHz
  105. ${color1}${voffset 1}${offset 270}${cpugraph cpu7} ${color3}${voffset -1}${cpu cpu7}% ${freq_g 7} GHz  \
  106. ${color1}${voffset -14}${cpugraph cpu4} ${color3}${voffset -1}${cpu cpu4}% ${freq_g 4} GHz ${color1}|
  107. ${color1}${voffset 1}${offset 400}${cpugraph cpu8} ${color3}${voffset -1}${cpu cpu8}% ${freq_g 8} GHz ${color1}|  \
  108. ${color2}${voffset -5}${font ConkyColors:size=12}l${font}${voffset 1} ${color3}${voffset -4}${hwmon k10temp temp 1}°F / ${hwmon dell_smm fan 1} RPM ${color1}| \
  109. ${if_match ${battery_percent BAT1} <= 15}${color2}${font ConkyColors:size=12}1${font}$else${if_match ${battery_percent BAT1} <= 25}${font ConkyColors:size=12}2${font}$else${if_match ${battery_percent BAT1} <= 50}${font ConkyColors:size=12}3${font}$else${if_match ${battery_percent BAT1} <= 75}${font ConkyColors:size=12}4${font}$else${if_match ${battery_percent BAT1} <= 100}${font ConkyColors:size=12}5${font}${endif}${endif}${endif}${endif}${endif} ${color3}${voffset -4}${battery_short BAT1} ${color1}${voffset 1}${battery_bar BAT1}  ${color3}${voffset -1}${battery_time BAT1} ${color1}| \
  110. ${color2}${font ConkyColors:size=12}f${font} ${color3}${voffset -4}${mem} / ${memmax}${color1} | \
  111. ${color3}${swap} / ${swapmax} ${color1}| \
  112. ${color2}${font ConkyColors:size=12}i${font} ${color3}${voffset -4}${fs_free} / ${hwmon nvme temp 1}°F ${color1} | \
  113. ${color2}${font ConkyColors:size=12}i${font} ${color3}${voffset -4}${fs_free /mnt/backup} / ${hddtemp}°F ${color1} | \
  114. ${if_existing /sys/class/net/eth0/operstate up}${color2}${font ConkyColors:size=12}w${font} ${color1}${voffset -2}${downspeedgraph eth0 8,20}   ${color3}${voffset -2}${downspeed eth0}
  115. ${color2}${voffset -1}${font ConkyColors:size=12}x${font} ${color1}${voffset -1}${upspeedgraph eth0 8,20}   ${color3}${voffset -1}${upspeed eth0} ${color1} |${endif} \
  116. ${if_existing /sys/class/net/wlan0/operstate up}${color2}${font ConkyColors:size=12}k${font} ${color3}${voffset -4}${wireless_link_qual_perc wlan0}% / Ch ${wireless_channel wlan0} / ${wireless_freq wlan0} ${color1} | \
  117. ${color2}${font ConkyColors:size=12}w${font} ${color1}${voffset -2}${downspeedgraph wlan0 8,20}   ${color3}${voffset -2}${downspeed wlan0} \
  118. ${color2}${voffset -1}${font ConkyColors:size=12}x${font} ${color1}${voffset -1}${upspeedgraph wlan0 8,20}   ${color3}${voffset -1}${upspeed wlan0} ${color1}${endif} | \
  119. ${color2}${font ConkyColors:size=12}o${font} ${color3}${voffset -4}${uptime_short} ${color1}| \
  120. ${color2}${font ConkyColors:size=12}D${font} ${color3}${voffset -5}${top name 1} | ${top_mem name 1} \
  121. ${voffset -200} \
  122. ]]
  123.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement