You are not logged in.
Pages: 1
Let's face it. The default conky package script is ugly. Here is how to replace it with a fresh looking custom conky.
1. Download a conky theme (not all will work correctly) on Q4OS. Change file permissions to read & write and place check mark in make executable.
2. Navigate to these too system folders: system:/media/sda2/etc and system:/media/sda2/usr/share/fonts/truetype
3. Open terminal and type in "sudo chmod -R a+rwx etc"
4. Again in terminal type "sudo chmod -R a+rwx fonts"
5. Now that you have full permissions of those folders, copy the appropriate files to their respective folders.
6. Close everything except terminal and type "conky" to run the conky.
Here is the links to my custom conkies (you may need to edit script and add extra cpu core lines if your cpu has more cores than four or it will likely fail to draw it.
My two-core Sony conky script:
--[[
# Minimalis Conky 1.3
# Author : Steven W. Tutty
# Release date : April 12th 2021
]]
conky.config = {
alignment = 'top_right',
background = true,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'gray',
default_outline_color = 'white',
default_shade_color = 'white',
color1 = '#ffffff',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'Roboto Mono:size=9',
gap_x = 30,
gap_y = 30,
minimum_height = 250,
minimum_width = 220,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = yes,
own_window_class = 'Conky',
own_window_transparent = true,
own_window_argb_visual = true,
own_window_type = 'desktop',
own_window_hints ='undecorated,sticky,skip_taskbar,skip_pager,below',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
use_xft = true,
}
conky.text = [[
${color1}${font DroidSerif-Regular:size=9}
${color1}${goto 35}Q4OS Trinity Scorpion : ${color}${execi 86400 cat `ls -atr /etc/*-release | tail -2` | grep "PRETTY_NAME" | cut -d= -f2 | sed 's/"//g'}
${color1}${goto 35}Kernel : ${color}$kernel on $machine
${color1}${font ConkySymbols:size=19}f${font} ${voffset -10} System» $hr${color}
${color1}${goto 35}Core 1 : ${color}${freq_g 1}GHz ${alignr}${cpu cpu0}% ${cpubar cpu0 4,100}
${color1}${goto 35}Core 2 : ${color}${freq_g 2}GHz ${alignr}${cpu cpu1}% ${cpubar cpu1 4,100}
${color1}${goto 35}Uptime : ${color}$uptime_short ${alignr}${color1}Load : ${color}${loadavg}
${color1}${font ConkySymbols:size=19}h${font} ${voffset -10} Temperature» $hr${color}
${color1}${goto 35}CPU : ${color}${exec sensors | grep 'temp1' | awk 'NR==1{print $2}'} ${alignr}${color1}GPU : ${color}${exec sensors | grep 'temp1' | awk 'NR==2{print $2}'}
${color1}${font ConkySymbols:size=19}J${font} ${voffset -10}Memory» $hr${color}
${color1}${goto 35}RAM : ${color}$mem/$memmax ${alignr}$memperc% ${membar 4,100}
${color1}${goto 35}SWAP: ${color}$swap/$swapmax $alignr}$swapperc% ${swapbar 4,100}
${color1}${font ConkySymbols:size=13}n${font} ${voffset -10} Processes» $hr${color}
${color1}${goto 35}CPU usage ${alignr}Memory Usage${color}
${color1}${goto 35}${stippled_hr}${color}
${goto 35}${top name 1} ${color}${top cpu 1}% ${alignr}${top_mem name 1}${top_mem mem_res 1}
${goto 35}${top name 2} ${color}${top cpu 2}% ${alignr}${top_mem name 2}${top_mem mem_res 2}
${goto 35}${top name 3} ${color}${top cpu 3}% ${alignr}${top_mem name 3}${top_mem mem_res 3}
${goto 35}${top name 4} ${color}${top cpu 4}% ${alignr}${top_mem name 4}${top_mem mem_res 4}
${goto 35}${top name 5} ${color}${top cpu 5}% ${alignr}${top_mem name 5}${top_mem mem_res 5}
${color1}${goto 35}Processes: ${color}$processes ${color1}Running: ${color}$running_processes
${color1}${font ConkySymbols:size=14}k${font} ${voffset -10} Storage» $hr${color}
${color1}${goto 35}ROOT : ${color}${fs_used /}/${fs_size /} ${alignr}${fs_used_perc /}% ${fs_bar 4,100 /}
${goto 35}
${color1}${font ConkySymbols:size=13}b${font} ${voffset -10} Wireless» $hr${color}
${color1}${alignr}Signal: ${color}${wireless_link_qual_perc wlan0}% ${wireless_link_bar 4,100 wlan0}
${color1}${goto 35}Total Down/Up : ${color}${totaldown wlan0}/${totalup wlan0}
${color1}${goto 35}Speed Down/Up : ${color}${downspeed wlan0}/${upspeed wlan0}
]]
My four-core Getac conky script:
--[[
# Minimalis Conky 1.3
# Author : Steven W. Tutty
# Release date : April 12th 2021
]]
conky.config = {
alignment = 'top_right',
background = true,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'gray',
default_outline_color = 'white',
default_shade_color = 'white',
color1 = '#ffffff',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'Roboto Mono:size=9',
gap_x = 30,
gap_y = 30,
minimum_height = 250,
minimum_width = 220,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = yes,
own_window_class = 'Conky',
own_window_transparent = true,
own_window_argb_visual = true,
own_window_type = 'desktop',
own_window_hints ='undecorated,sticky,skip_taskbar,skip_pager,below',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
use_xft = true,
}
conky.text = [[
${color1}${font DroidSerif-Regular:size=9}
${color1}${goto 35}Q4OS Trinity Scorpion : ${color}${execi 86400 cat `ls -atr /etc/*-release | tail -2` | grep "PRETTY_NAME" | cut -d= -f2 | sed 's/"//g'}
${color1}${goto 35}Kernel : ${color}$kernel on $machine
${color1}${font ConkySymbols:size=20}f${font} ${voffset -10} System» $hr${color}
${color1}${goto 35}Core 1 : ${color}${freq_g 1}GHz ${alignr}${cpu cpu0}% ${cpubar cpu0 4,100}
${color1}${goto 35}Core 2 : ${color}${freq_g 2}GHz ${alignr}${cpu cpu1}% ${cpubar cpu1 4,100}
${color1}${goto 35}Core 3 : ${color}${freq_g 3}GHz ${alignr}${cpu cpu2}% ${cpubar cpu2 4,100}
${color1}${goto 35}Core 4 : ${color}${freq_g 4}GHz ${alignr}${cpu cpu3}% ${cpubar cpu3 4,100}
${color1}${goto 35}Uptime : ${color}$uptime_short ${alignr}${color1}Load : ${color}${loadavg}
${color1}${font ConkySymbols:size=20}h${font} ${voffset -10} Temperature» $hr${color}
${color1}${goto 35}CPU : ${color}${exec sensors | grep 'temp1' | awk 'NR==1{print $2}'} ${alignr}${color1}GPU : ${color}${exec sensors | grep 'temp1' | awk 'NR==2{print $2}'}
${color1}${font ConkySymbols:size=20}J${font} ${voffset -10}Memory» $hr${color}
${color1}${goto 35}RAM : ${color}$mem/$memmax ${alignr}$memperc% ${membar 4,100}
${color1}${goto 35}SWAP: ${color}$swap/$swapmax $alignr}$swapperc% ${swapbar 4,100}
${color1}${font ConkySymbols:size=14}n${font} ${voffset -10} Processes» $hr${color}
${color1}${goto 35}CPU usage ${alignr}Memory Usage${color}
${color1}${goto 35}${stippled_hr}${color}
${goto 35}${top name 1} ${color}${top cpu 1}% ${alignr}${top_mem name 1}${top_mem mem_res 1}
${goto 35}${top name 2} ${color}${top cpu 2}% ${alignr}${top_mem name 2}${top_mem mem_res 2}
${goto 35}${top name 3} ${color}${top cpu 3}% ${alignr}${top_mem name 3}${top_mem mem_res 3}
${goto 35}${top name 4} ${color}${top cpu 4}% ${alignr}${top_mem name 4}${top_mem mem_res 4}
${goto 35}${top name 5} ${color}${top cpu 5}% ${alignr}${top_mem name 5}${top_mem mem_res 5}
${color1}${goto 35}Processes: ${color}$processes ${color1}Running: ${color}$running_processes
${color1}${font ConkySymbols:size=16}k${font} ${voffset -10} Storage» $hr${color}
${color1}${goto 35}ROOT : ${color}${fs_used /}/${fs_size /} ${alignr}${fs_used_perc /}% ${fs_bar 4,100 /}
${goto 35}
${color1}${font ConkySymbols:size=14}b${font} ${voffset -10} Wireless» $hr${color}
${color1}${goto 35}SSID : ${color}${wireless_essid wlan0} ${color1}${alignr}Signal: ${color}${wireless_link_qual_perc wlan0}% ${wireless_link_bar 4,100 wlan0}
${color1}${goto 35}Bitrate : ${color}${wireless_bitrate wlan0}
${color1}${goto 35}Total Down/Up : ${color}${totaldown wlan0}/${totalup wlan0}
${color1}${goto 35}Speed Down/Up : ${color}${downspeed wlan0}/${upspeed wlan0}
]]
Enjoy!
Last edited by arcadianblue (2022-06-28 09:24)
Offline
You're overcomplicating this process which is fairly easy:
1. Download a conky theme.
2. Extract.
3. Open the folder you extracted the theme to.
4. Locate and edit conky.conf to fit your needs.
5. Backup /etc/conky/conky.conf
sudo cp -v /etc/conky/conky.conf /etc/conky/conky.conf.bak
6. Copy your edited conky.conf over /etc/conky/
sudo cp -v conky.conf /etc/conky/
7. Start conky.
Also, this
Open terminal and type in "sudo chmod -R a+rwx etc"
Again in terminal type "sudo chmod -R a+rwx fonts"
You're not supposed to do that, ever, it is a very bad idea and dangerous advice, plus you don't need to, all you need to do is replace 1 file.
Offline
You must have permissions of etc and your fonts folder to add the two necessary files in order to runedit a custom conky. But only do so of the two mention folders. I incuded the scripts for both a 2-core cpu configuration and four core cpu configuration.
Offline
You must have permissions of etc and your fonts folder to add the two necessary files in order to runedit a custom conky. But only do so of the two mention folders. I incuded the scripts for both a 2-core cpu configuration and four core cpu configuration.
You don't need to; there's a ~/.fonts dir and a ~/.config/conky dir, too, where you can copy/put all the necessary files, and for security reasons you shouldn't be "chmoding" root directories, specially when you can have everything in $HOME. I've been using conky for some years now, and never, ever have had to chmod anything.
Offline
Pages: 1