Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Based on Arch News Conky: https://github.com/tr37ion/arch_news_conky
- -- ConkyColors font: https://github.com/helmuthdu/conky_colors/tree/master/fonts/conkycolors
- conky.config = {
- double_buffer = true,
- own_window = true,
- own_window_type = 'panel',
- own_window_transparent = true,
- own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
- own_window_argb_visual = true,
- own_window_argb_value = 255,
- temperature_unit = 'fahrenheit',
- -- Borders
- draw_borders = false,
- border_inner_margin = 5,
- -- Contour
- draw_outline = true,
- -- Shades
- draw_shades = false,
- default_shade_color = '#000000',
- -- Position
- gap_y = 0,
- gap_x = 0,
- -- Alignment
- alignment = 'bottom_middle',
- -- xinerama_head = 0
- -- Interval
- update_interval = 5,
- update_interval_on_battery = 10,
- -- Colors
- default_color = '#FFFFFF',
- color1 = '#005391',
- color2 = '#777777',
- color3 = '#FFFFFF',
- color4 = '#CCCCCC',
- color5 = '#158C75',
- -- Font
- use_xft = true,
- font = 'Cantarell:pixelsize=12',
- -- Text
- use_spacer = left,
- pad_percents = 3,
- -- lua_load = ~/conky/tr37ion/conky_lua_scripts.lua,
- -- Text alpha when using Xft
- -- xftalpha = 10
- -- Graphs
- default_graph_height = 8,
- default_graph_width = 40,
- -- Bars
- default_bar_height = 8,
- default_bar_width = 40,
- -- Gauges
- -- default_gauge_height = 25,
- -- default_gauge_width = 40,
- minimum_width = 0, minimum_height = 24,
- maximum_width = 1920,
- -- to prevent window from moving
- -- use_spacer = 'none',
- --${if_match ${wireless_link_qual wlan0} < 31}${color orange}bad$color$else${if_match ${wireless_link_qual wlan0} < 51}${color yellow}weak
- --${color2}Temp: ${color3}${execi 30 echo "`sensors | grep 'temp1' | cut -c170-174` *9/5+32" | bc}°F ${color5}| \
- --${alignc}CPU: ${lua_parse pad ${cpu}}%
- --${color2}${voffset -8}${font ConkyColors:size=12}l${font}${voffset 1} ${color3}${voffset -3}${freq_g} GHz ${color5}| \
- --${if_existing /tmp/nvme0-temp}${execi 300 echo $(($(cat /tmp/nvme0-temp) * 9 / 5 + 32))}°F${endif}
- --
- };
- conky.text = [[
- ${color2}${voffset 3}${font ConkyColors:size=12}e${font}${voffset -3} \
- ${color1}${voffset -7}${cpugraph cpu1} ${color3}${voffset -1}${cpu cpu1}% ${freq_g 1} GHz
- ${color1}${voffset 1}${offset 22}${cpugraph cpu5} ${color3}${voffset -1}${cpu cpu5}% ${freq_g 5} GHz \
- ${color1}${voffset -14}${cpugraph cpu2} ${color3}${voffset -1}${cpu cpu2}% ${freq_g 2} GHz
- ${color1}${voffset 1}${offset 148}${cpugraph cpu6} ${color3}${voffset -1}${cpu cpu6}% ${freq_g 6} GHz \
- ${color1}${voffset -14}${cpugraph cpu3} ${color3}${voffset -1}${cpu cpu3}% ${freq_g 3} GHz
- ${color1}${voffset 1}${offset 270}${cpugraph cpu7} ${color3}${voffset -1}${cpu cpu7}% ${freq_g 7} GHz \
- ${color1}${voffset -14}${cpugraph cpu4} ${color3}${voffset -1}${cpu cpu4}% ${freq_g 4} GHz ${color1}|
- ${color1}${voffset 1}${offset 400}${cpugraph cpu8} ${color3}${voffset -1}${cpu cpu8}% ${freq_g 8} GHz ${color1}| \
- ${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}| \
- ${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}| \
- ${color2}${font ConkyColors:size=12}f${font} ${color3}${voffset -4}${mem} / ${memmax}${color1} | \
- ${color3}${swap} / ${swapmax} ${color1}| \
- ${color2}${font ConkyColors:size=12}i${font} ${color3}${voffset -4}${fs_free} / ${hwmon nvme temp 1}°F ${color1} | \
- ${color2}${font ConkyColors:size=12}i${font} ${color3}${voffset -4}${fs_free /mnt/backup} / ${hddtemp}°F ${color1} | \
- ${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}
- ${color2}${voffset -1}${font ConkyColors:size=12}x${font} ${color1}${voffset -1}${upspeedgraph eth0 8,20} ${color3}${voffset -1}${upspeed eth0} ${color1} |${endif} \
- ${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} | \
- ${color2}${font ConkyColors:size=12}w${font} ${color1}${voffset -2}${downspeedgraph wlan0 8,20} ${color3}${voffset -2}${downspeed wlan0} \
- ${color2}${voffset -1}${font ConkyColors:size=12}x${font} ${color1}${voffset -1}${upspeedgraph wlan0 8,20} ${color3}${voffset -1}${upspeed wlan0} ${color1}${endif} | \
- ${color2}${font ConkyColors:size=12}o${font} ${color3}${voffset -4}${uptime_short} ${color1}| \
- ${color2}${font ConkyColors:size=12}D${font} ${color3}${voffset -5}${top name 1} | ${top_mem name 1} \
- ${voffset -200} \
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement