Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

1 votes
2 answers
973 views
Dynamically loading image based on function output
I'm trying to load a `.png` to display a battery icon in conky. So far I've tried nesting the function call, using eval but I can't seem to find a solution. Here is my non working conky.text: ```lua conky.text = [[ ${image ${lua battery_icon $battery_status $battery_icon}} ]] ``` Where my `battery_i...
I'm trying to load a .png to display a battery icon in conky. So far I've tried nesting the function call, using eval but I can't seem to find a solution. Here is my non working conky.text:
conky.text = [[
  ${image ${lua battery_icon $battery_status $battery_icon}}
]]
Where my battery_icon function looks like this:
function conky_battery_icon(battery_status, battery_percent)
  if (battery_status == "charging")
  then
    icon = "charging-battery.png";
  else 
    ...
  end

  return("/path/to/icons/" .. icon);
end
I checked that the function works and I can get the correct path to the image by adding the following line to my conky.text:
${lua battery_icon $battery_status $battery_percent}
How can I use the returned path of battery_icon to load the file in conky's image? Related question: [Dynamic conky variable argument](https://unix.stackexchange.com/questions/193883/dynamic-conky-variable-argument/193906#193906)
phil (113 rep)
Oct 1, 2019, 10:06 PM • Last activity: Mar 24, 2025, 09:54 AM
1 votes
0 answers
118 views
Discrepency of cpu MHz via bash and conky
**Edit:** The original question of this post was regarding the "average" cpu MHz as obtained via conky builtins and the command line. A further question was regarding temperatures as reported by conky vs temperatures obtained via the command line. A tertiary question was regarding per core MHz as re...
**Edit:** The original question of this post was regarding the "average" cpu MHz as obtained via conky builtins and the command line. A further question was regarding temperatures as reported by conky vs temperatures obtained via the command line. A tertiary question was regarding per core MHz as reported by both methods. 1. The "average" MHz question has been rendered superfluous by my discovery that I'd messed up my conkey.conf file a very long time ago. There is no average cpu MHz variable in the current version of conky, and there might not have ever been. In addition. it's such a transitory measurement, I'm not sure it's actually useful at all - at least for me. 2. @terdon requested a minimal conkyrc file so other people could try to reproduce what I said I was experiencing. So I created one. I'll include it below. But creating it allowed me to see I was seeing what I expected to see - not what was actually there. It turns out that the command I had been using to get the cpu temp - ${hwmon 1 temp 3}, actually is the cpu die teperature plus the Tctl offset for fan control. The actual cpu temp can be obtained with this command: ${exec sensors -f k10temp-pci-00c3 | grep Tccd1 | cut -b 15-21}F. I don't see a way to get the actual cpu temp through conky's builtins. 3. The per core MHz question as reported by conky's builtins, and the command line. This question is still out there, but I think I know whats going, I just haven't proved it yet. At least to myself. I created the requested conky.conf - I don't use a conkyrc file. And running it next to my actual conky was giving me really interesting results. So I created another version, identical to the other, but one being aligned to the middle_left, and the other being aligned to the middle_middle. In these conky.conf files, I'm using both the builtins, and getting the stats from an exec command. Interestingly, all 4 sets of data from these two conky instances will often align very well. Sometimes almost perfectly! That was actually surprising. And the data being reported from my actual conky was almost always in the 3-4 GHz range, while the two test conky's was almost always in the 2 GHz range... So, what I think is going on is my 'production' conky.conf is rather large - with lots and lots going on. and it kicks up the cpu frequency while it's running. And then when the test conky.confs are running, they show lower GHz because they're actually being less demanding. Does this sound reasonable? Here's the test conky.conf: conky.config = { alignment = 'middle_left', background = false, update_interval = 1.5, cpu_avg_samples = 2, out_to_console = false, override_utf8_locale = true, double_buffer = true, text_buffer_size = 8192, own_window = true, own_window_transparent = true, own_window_argb_visual = true, own_window_type = 'normal', own_window_argb_value = 0, own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', border_inner_margin = 20, border_outer_margin = 0, font = 'monospace:size=10', gap_x = 350, gap_y = 0, minimum_width = 450, minimum_height = 450, draw_borders = false, use_xft = true, xftalpha = 0.8, uppercase = false, maximum_width = 1024, temperature_unit = "fahrenheit", } conky.text = [[ CPU Temp: Conky Builtin 1 3: ${hwmon 1 temp 3}°F Using hwmon: ${exec awk '{print ((($0 / 1000)*1.8)+32) }' < /sys/class/hwmon/hwmon1/temp3_input }°F # Temp of the die plus the Tctl offset for fan control Using sensors Tctl : ${exec sensors -f k10temp-pci-00c3 | grep Tctl | cut -b 15-21}F # Temp of the die itself Using sensors Tccd1: ${exec sensors -f k10temp-pci-00c3 | grep Tccd1 | cut -b 15-21}F Average CPU Frequency: ${exec cat /proc/cpuinfo |grep "cpu MHz"| awk '{sum+=$4;} END{printf "%2.2f", (sum/12)/1000;}'} GHz CPU1: ${freq_g 1} GHz ${goto 170}CPU1: ${exec awk '{printf "%2.2f", ($0)/1000000;}' conky to gather, and display my Linux system stats for a long time. I noticed over a decade ago that the 'average' cpu MHz just copies the first core, it isn't an average of all cores. The command to get the average cpu frequency in conky is: ${freq_g 0}. To get the cores individually, you just use ${freq_g 1} - ${freq_g 12}. In other words, 0 is supposed to be the average, not the first core, and individually, you start counting at 1, through how many cores you have. But 0 and 1 both always display the exact same thing. Checking in bash, I run this command: grep "cpu MHz" corectrl to control the cpu governor, and control the gpu. When I set the cpu to 'performance mode', the frequency of the cpu jumps up accordingly - from the low 2 GHz range, to the low 4 GHz range, as reported by conky. But when I check the output with the above grep command, all the cores are showing that they're running in the low to mid 3 GHz range. I'm not really expecting precision numbers here, just pretty close ballpark numbers. Or, in other words, I expect precision numbers, but they're going to change so many time per second that I expect them to be reported differently. The biggest problem I'm having is that my grep command rarely shows the cpu frequency going above 4 GHz, while conky rarely shows it below 4 GHz - in performance mode. Should I just display the outputs from my grep command in conky, and just accept the two outputs aren't going to jive? ---- I'm having a very similar issue with conky's built in cpu temperature detection. I can display what conky's builtin is reporting, and the results using sensors, and hwmon. The conky builtin is almost always showing the lowest temperature. The other two methods bounce around a lot more, and usually show higher temperatures then conky's builtin. And I mean they might show a ten degree difference, or more, for a long time.
Terry Wendt (145 rep)
Dec 31, 2024, 04:54 PM • Last activity: Jan 5, 2025, 11:04 PM
1 votes
1 answers
177 views
Display Conky folder size as a bar
I display the /boot folder with this function ${execi 60 du -sh /boot | awk '{ print $1 }'} That gives me the 168M /boot Now I would like to display this as a bar with "execbar". But this only shows me an empty bar. Is that even possible?
I display the /boot folder with this function ${execi 60 du -sh /boot | awk '{ print $1 }'} That gives me the 168M /boot Now I would like to display this as a bar with "execbar". But this only shows me an empty bar. Is that even possible?
barand3 (11 rep)
Jul 11, 2024, 08:02 AM • Last activity: Jul 11, 2024, 01:47 PM
1 votes
0 answers
107 views
Conky doesn't show wifi traffic
My conky show cpu, memory, harddisk but doesn't show wifi traffic of my lapttop. I ran: ifconfig ... wlp4s0: flags=4163 mtu 1500 inet 192.168.71.85 netmask 255.255.255.0 broadcast 192.168.71.255 inet6 fe80::1444:7aea:732f:e5e9 prefixlen 64 scopeid 0x20 ether 36:ce:4f:4d:48:6d txqueuelen 1000 (Ethern...
My conky show cpu, memory, harddisk but doesn't show wifi traffic of my lapttop. I ran: ifconfig ... wlp4s0: flags=4163 mtu 1500 inet 192.168.71.85 netmask 255.255.255.0 broadcast 192.168.71.255 inet6 fe80::1444:7aea:732f:e5e9 prefixlen 64 scopeid 0x20 ether 36:ce:4f:4d:48:6d txqueuelen 1000 (Ethernet) RX packets 35804 bytes 37186607 (35.4 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 28512 bytes 8665499 (8.2 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 so I use **wlp4s0** in conky settings: # Network data ${voffset 43} ${offset 90}${font Ubuntu:size=10,weight:bold}${color5}WiFi ${voffset 40} ${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Up: ${alignr}${font Ubuntu:size=9,weight:normal}$color2${upspeed wlp4s0} / ${totalup} ${offset 15}${upspeedgraph wlp4s0 40,285 4B1B0C FF5C2B 100 -l} ${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Down: ${alignr}${font Ubuntu:size=9,weight:normal}$color2${downspeed wlp4s0} / ${totaldown} ${offset 15}${downspeedgraph wlp4s0 40,285 324D23 77B753 100 -l} ${color4}${hr 2} but it doesn't work.
Masoud Yousefvand (15 rep)
Jun 14, 2024, 01:14 PM
6 votes
2 answers
5486 views
What's the right way to display system sound volume in conky?
What's the right way of displaying system sound volume in conky ? I don't have `/dev/mixer` file, and without an external command, is it possible ? Conky 1.9.0
What's the right way of displaying system sound volume in conky ? I don't have /dev/mixer file, and without an external command, is it possible ? Conky 1.9.0
daisy (55777 rep)
Jul 18, 2012, 06:15 AM • Last activity: Mar 15, 2024, 04:23 PM
1 votes
1 answers
191 views
{up, down}speedgraphs not shown using `lua_parse lua_func`
Here is my `conkyrc`: ```lang-lua conky.config = { use_xft = true, -- use xft? font = 'DejaVuSans:size=9', -- font name xftalpha = 1, uppercase = false, -- all text in uppercase? pad_percents = 0, text_buffer_size = 2048, override_utf8_locale = true, -- Force UTF8? note that UTF8 support required XF...
Here is my conkyrc:
-lua
conky.config = {
	use_xft = true, -- use xft?
	font = 'DejaVuSans:size=9', -- font name
	xftalpha = 1,
	uppercase = false, -- all text in uppercase?
	pad_percents = 0,
	text_buffer_size = 2048,
	override_utf8_locale = true, -- Force UTF8? note that UTF8 support required XFT
	use_spacer = 'none', -- Add spaces to keep things from moving about?  This only affects certain objects.

	update_interval = 1, -- Update interval in seconds
	double_buffer = true, -- Use double buffering (reduces flicker, may not work for everyone)
	total_run_times = 0, -- This is the number of times Conky will update before quitting. Set to zero to run forever.

	-- Create own window instead of using desktop (required in nautilus)
	own_window = true,
	own_window_class = 'Conky',
	own_window_transparent = true,
	own_window_argb_visual = true,
	own_window_argb_value = 255,
	own_window_type = 'desktop', -- transparency seems to work without this line
	own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',

	-- Minimum size of text area
	minimum_height = 50,
	minimum_width = 210,

	draw_shades = false, -- draw shades?
	draw_outline = false, -- draw outlines?
	draw_borders = false, -- draw borders around text?
	draw_graph_borders = false, -- draw borders around graphs
	stippled_borders = 0, -- stripled borders?

	imlib_cache_size = 0, -- Imlib2 image cache size, in bytes. Increase this value if you use $image lots. Set to 0 to disable the image cache.

	-- Gap between borders of screen and text. Same thing as passing -x at command line
	gap_x = 90,
	gap_y = 5,

	alignment = 'middle_right', -- alignment on {y_axis}_{x_axis}

	cpu_avg_samples = 2, -- number of cpu samples to average. set to 1 to disable averaging
	net_avg_samples = 2, -- number of net samples to average. set to 1 to disable averaging

	no_buffers = true, -- Subtract file system buffers from used memory?

	default_color = 'e0e0e0',
	default_shade_color = '000000',
	default_outline_color = '000000',

	temperature_unit = 'celsius',

	color1 = 'ff55ff', -- heading's color
	color2 = 'ffffff', -- normal text's color

    lua_load = '.conky/netdevs.lua',
};

conky.text = [[
...
${color1}NET: ${hr 2}${color2}${lua_parse conky_show_netdevs}
...
]]
Here is .config/netdevs.lua:
-lua
-- conky_show_netdevs : template for network
-- usage : ${lua_parse conky_show_netdevs}

prev_result = ""

function conky_show_netdevs()
    updates = tonumber(conky_parse("${updates}"))
    interval = 10
    timer = (updates % interval)

    if timer == 0 or prev_result == "" then
        local netdevs_handle = io.popen("ip -j link show up | jq -r '.[] | select(.operstate == \"UP\" and .ifname != \"lo\") | .ifname'")
        local result = ""

        for netdev in netdevs_handle:lines() do
            result = result .. "\nIP (${color1}" .. netdev .. "${color2}): ${alignr}${addr " .. netdev .. "}\n" ..
                     "${color2}Up: ${color2}${upspeed " .. netdev .. "}/s${color1}${alignr}${upspeedgraph " .. netdev .. " 10,170}\n" ..
                     "${color2}Down: ${color2}${downspeed " .. netdev .. "}/s${color1}${alignr}${downspeedgraph " .. netdev .. " 10,170}\n" ..
                     "${color2}Total Down: ${color2}${totaldown " .. netdev .. "}${alignr}Total Up: ${totalup " .. netdev .. "}\n"
        end

        netdevs_handle:close()

        if result ~= "" then
            prev_result = result
        else
            prev_result = "\n"
        end
    end

    return prev_result
end
Everything works, except for the upspeedgraphs and downspeedgraphs, returned in conky_show_netdevs() function's output. Here is an image of the graphs I can see (the small lines in the last section of the image; on the lines where the texts "UP" and "DOWN" are present): conky window --- As far as I could think, I thought this issue was caused due to lua function's contents getting parsed every time conky reloaded, which could cause the graph to reload. So, I tried to increase the update interval of conky to 10 secs. But still, no luck :( 👎. --- Please tell me why is this happening and how to resolve this issue? Thanks 😊!
Lakshay Rohila (105 rep)
Feb 9, 2024, 10:34 AM • Last activity: Feb 9, 2024, 06:10 PM
0 votes
1 answers
218 views
Failed to activate systemd service
I have a personal Conky script (at `~/.conky/conky-launch.sh`) that I'd like to execute every time I boot up my OS (which is Fedora Workstation 39). So, I created a `systemd` service file named `personal-conky.service` as follows: ``` [Unit] Description=Opens up my personal conky setup on boot [Serv...
I have a personal Conky script (at ~/.conky/conky-launch.sh) that I'd like to execute every time I boot up my OS (which is Fedora Workstation 39). So, I created a systemd service file named personal-conky.service as follows:
[Unit]
Description=Opens up my personal conky setup on boot

[Service]
User=arch
ExecStart=/home/arch/.conky/conky-launch.sh

[Install]
WantedBy=multi-user.target
Next, I enabled the service by doing:
$ sudo systemctl enable personal-conky.service
When I rebooted however I found that the script has not executed. When I did:
$ systemctl status personal-conky.service
I got the following error:
× personal-conky.service - Opens up my personal conky setup on boot
     Loaded: loaded (/etc/systemd/system/personal-conky.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: failed (Result: exit-code) since Wed 2024-01-31 20:12:57 IST; 4s ago
   Duration: 3ms
    Process: 5602 ExecStart=/home/arch/.conky/conky-launch.sh (code=exited, status=203/EXEC)
   Main PID: 5602 (code=exited, status=203/EXEC)
        CPU: 1ms

Jan 31 20:12:57 fedora systemd: Started personal-conky.service - Opens up my personal conky setup on boot.
Jan 31 20:12:57 fedora (aunch.sh): personal-conky.service: Failed to locate executable /home/arch/.conky/conky-launch.sh: Permission denied
Jan 31 20:12:57 fedora (aunch.sh): personal-conky.service: Failed at step EXEC spawning /home/arch/.conky/conky-launch.sh: Permission denied
Jan 31 20:12:57 fedora systemd: personal-conky.service: Main process exited, code=exited, status=203/EXEC
Jan 31 20:12:57 fedora systemd: personal-conky.service: Failed with result 'exit-code'.
Why is this happening, and what should I do to fix this?
archie (131 rep)
Jan 31, 2024, 02:45 PM • Last activity: Jan 31, 2024, 04:22 PM
0 votes
0 answers
422 views
How to install conky themes?
I' m asking how to install conky themes that you download from the Pling store as zip and extract as folders on Linux. I tried to rename the file name `[name]. conf` with `Anything.conkyrc` and then copy and paste the folder to `home/. conky`, but opening Conky Manager2 does not display the theme I...
I' m asking how to install conky themes that you download from the Pling store as zip and extract as folders on Linux. I tried to rename the file name [name]. conf with Anything.conkyrc and then copy and paste the folder to home/. conky, but opening Conky Manager2 does not display the theme I am looking for. The conky in question is Regulus-Dark-PlyrctlF-2.6.
Tux (3 rep)
Jan 3, 2024, 10:02 AM • Last activity: Jan 3, 2024, 11:53 AM
2 votes
0 answers
181 views
How can I get xrandr to realize my screens are of a different height?
On Manjaro Linux using i3, I have an issue with lining up my two monitors to achieve seamless transition. Currently they look fine using this command to orient them: ``` xrandr --output USB-C-0 --primary --mode 2560x1440 --rate 75 --output HDMI-0 --mode 2560x1080 --rotate left --rate 59.98 --left-of...
On Manjaro Linux using i3, I have an issue with lining up my two monitors to achieve seamless transition. Currently they look fine using this command to orient them:
xrandr --output USB-C-0 --primary --mode 2560x1440 --rate 75 --output HDMI-0 --mode 2560x1080 --rotate left --rate 59.98 --left-of  USB-C-0
However when moving my mouse from right to left, it awkwardly jumps about halfway up the screen (e.g. if I moved it from the bottom left of my normal screen it would end up about in the middle of the left screen). I suspect this is due to a quirk with how xrandr is orienting my virtual desktop. When I take a picture with arandr open you can see that there's a large empty space below my main monitor. [![enter image description here](https://i.sstatic.net/KHlAG.jpg)](https://i.sstatic.net/KHlAG.jpg) Attempting to put the monitor in the correct position with arandr results in the second image, having everything on my right screen being shifted up. [![enter image description here](https://i.sstatic.net/RZX6v.jpg)](https://i.sstatic.net/RZX6v.jpg) I've tried to use the --pos flag with xrandr but it seems to have no effect, possibly due to weirdness with having differently oriented screens. It's unclear to me how to get xrandr to recognize that my right screen is not the same height as my left.
ckrug (31 rep)
Jul 29, 2023, 11:06 PM
1 votes
0 answers
242 views
conky: how to show the top internet using processes and their speeds like nethogs
In Linux, I find `nethogs -a` very useful for checking the internet speed usage per program. Now, I want to integrate this functionality into Conky. I'm open to any other method besides nethogs, as long as I can monitor internet usage.
In Linux, I find nethogs -a very useful for checking the internet speed usage per program. Now, I want to integrate this functionality into Conky. I'm open to any other method besides nethogs, as long as I can monitor internet usage.
Santhosh (409 rep)
Jun 23, 2023, 06:05 AM • Last activity: Jun 23, 2023, 09:16 AM
0 votes
1 answers
259 views
clock font in conky
I'm wanting to give the font for my digital clock in conky an outter edge thats a different color. I'm not sure how to go about it though. The pic is an example of what I'm wanting to do. [![enter image description here][1]][1] [1]: https://i.sstatic.net/ZMSTj.png
I'm wanting to give the font for my digital clock in conky an outter edge thats a different color. I'm not sure how to go about it though. The pic is an example of what I'm wanting to do. enter image description here
bikerjay (1 rep)
May 21, 2023, 01:05 AM • Last activity: May 27, 2023, 08:34 PM
1 votes
0 answers
469 views
Taking CPU cores offline while under load makes them unable to unload?
I have an AMD Ryzen 5 5625 U CPU with 6 physical cores and 12 SMP cores. I'm running Zorin Core OS 16.2r-1. I've been testing ways of saving more power on a laptop. Ultimately I'd like to be able to park cores that are idle or below a user-configurable percentage load (the machine idles at 400 MHz C...
I have an AMD Ryzen 5 5625 U CPU with 6 physical cores and 12 SMP cores. I'm running Zorin Core OS 16.2r-1. I've been testing ways of saving more power on a laptop. Ultimately I'd like to be able to park cores that are idle or below a user-configurable percentage load (the machine idles at 400 MHz CPU frequency, with 6 cores at 0% and 6 cores flipping between 1% and 0%). I'm using: for i in $(seq $(getconf _NPROCESSORS_ONLN)); do yes > /dev/null & done ... to impose a load upon all the cores, then I use powertop and powerstat to measure the power drawn. I kill that via: sudo killall yes One thing I noticed is that if I do: for x in /sys/devices/system/cpu/cpu{1..11}/online; do echo 0 >"$x"; done ... to take all but Core0 offline (Core0 can't be taken offline), while the CPUs are loaded using yes, the cores taken offline don't unload even after yes is killed... the cores remain at 100% (as shown in Conky ${cpubar cpuX 10,115} and ${freq X} and ${cpu cpuX} where 'X' is the CPU number) until I bring those cores back online via: for x in /sys/devices/system/cpu/cpu{1..11}/online; do echo 1 >"$x"; done Is this a bug in Conky such that when a core goes offline, it cannot update the status of that core; or are the cores actually remaining loaded even when taken offline? Powertop and PowerStat can't tell me, as they only measure online cores.
pynewbie (11 rep)
Mar 17, 2023, 05:17 PM
1 votes
0 answers
165 views
Conky: attempt to compare number with nil
I'm trying to make my own conky script, and I'm having some trouble with a script I'm using. The script is [this][1] one. This is the problematic part: { name="diskio_read", arg="/dev/nvme0n1", max=100, width=85, height=110, y=505, x=25, nb_values=100, bg_colour={{0,0x000000,0}}, fg_bd_colour = { {0...
I'm trying to make my own conky script, and I'm having some trouble with a script I'm using. The script is this one. This is the problematic part: { name="diskio_read", arg="/dev/nvme0n1", max=100, width=85, height=110, y=505, x=25, nb_values=100, bg_colour={{0,0x000000,0}}, fg_bd_colour = { {0,0x49a835,1}, }, foreground=false, fg_bd_size=0.7, bg_bd_size=0.5, }, The error it generates: conky: llua_do_call: function conky_main execution failed: attempt to compare number with nil The thing is that I have enabled format_human_readable = true, thus causing diskio_read to return a value with unit. Now, I have enabled format_human_readable because in I use ${mem} and ${memmax}. My question is if there is any way to convert any number or variable (for example, ${mem}) from a raw number to a human readable number. That way, I can keep format_human_readable = false and avoid having troubles with the lua scripts. The other way around would be to convert from a human readable number to a raw number, and instead leave format_human_readable = true and modify the value that I give to the scripts. Here are the scripts and configs: **conky.conf** **loadAll.lua** **bar.lua** **graph.lua** this is how the script looks as is: enter image description here
fpp (111 rep)
Mar 3, 2023, 07:40 PM
0 votes
1 answers
138 views
`conky` without `lua`: can a bar be reverted?
With [`lua`][1] you definitely [can][2]. What about without [`lua`][1]? Can [`conky`][3] draw a bar not left-to-right like this for 10%: █░░░░░░░░░ but right-to-left like this?: ░░░░░░░░░█ E.g. the [`Rainmeter`][4] for [`Windows`][5] does reverting with [`Flip=1`][6]. Specifically, I prefer `fs_free...
With lua you definitely can . What about without lua ? Can conky draw a bar not left-to-right like this for 10%: █░░░░░░░░░ but right-to-left like this?: ░░░░░░░░░█ E.g. the Rainmeter for Windows does reverting with Flip=1 . Specifically, I prefer fs_free to fs_used, and would like the fs_bar to be coherent, displaying **used** dimly on the left-hand side and highlighting **free** on the right-hand side.
Veraellyunjie (101 rep)
Apr 20, 2022, 03:01 AM • Last activity: Feb 5, 2023, 12:22 AM
1 votes
2 answers
8005 views
Conky infobar alignment left and right
I want to build a simple infobar using conky. Take the following example: ![enter image description here][1] [1]: https://i.sstatic.net/AtE5V.png `dropbox zotero` should be aligned to the left. `SSID: Hier Volume...` should be aligned to the right. Currently I am working with `{offset 800}` to move...
I want to build a simple infobar using conky. Take the following example: enter image description here dropbox zotero should be aligned to the left. SSID: Hier Volume... should be aligned to the right. Currently I am working with {offset 800} to move the second output to the right. However, this is very inflexible when the right output changes. Sometimes it exceeds my screen. .conkyrc: background yes use_xft yes xftfont Noto Sans:size=10 xftalpha 1 update_interval 1 total_run_times 0 # Run in own window own_window yes own_window_transparent yes own_window_type desktop # Don't show in window lists and on all desktops own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager own_window_colour white double_buffer yes draw_shades no draw_outline no draw_borders no draw_graph_borders no default_color black alignment tl maximum_width 1280 minimum_size 1280 gap_x 0 gap_y 2 no_buffers yes uppercase no cpu_avg_samples 2 override_utf8_locale no ############################################## # Output ############################################## TEXT ${exec basename $(ps -efa | grep dropbox |grep -v 'grep ' | awk '{print $NF}')} \ ${exec basename $(ps -efa | grep zotero |grep -v 'grep ' | awk '{print $NF}')} \ ${offset 800} ${battery BAT0} \ SSID: ${wireless_essid wls1} \ Volume: ${exec amixer -c 0 get Master | grep Mono: | awk '{print $(NF-2)}'} ${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'} \ Keyboard: ${exec setxkbmap -print | awk -F"+" '/xkb_symbols/ {print $2}'} \ ${time %H:%M} \ ${time %a %d %b %Y}
orschiro (1025 rep)
Nov 19, 2013, 11:58 AM • Last activity: Dec 30, 2022, 11:52 AM
1 votes
1 answers
372 views
Conky 1.11.6 - Want to eliminate gaps above/below graphs
## Environment * Debian Linux 11.5 "bullseye" * Conky 1.11.6 (compiled 2020-08-17, package 1.11.6-2) * Xorg 1.20.11 (package 2:1.20.11-1+deb11u2) * FVWM version 3 release 1.0.5 (built from git 23854ad7) ## Problem I am trying to reduce the Conky window to show just a single graph (chart, plot) with...
## Environment * Debian Linux 11.5 "bullseye" * Conky 1.11.6 (compiled 2020-08-17, package 1.11.6-2) * Xorg 1.20.11 (package 2:1.20.11-1+deb11u2) * FVWM version 3 release 1.0.5 (built from git 23854ad7) ## Problem I am trying to reduce the Conky window to show just a single graph (chart, plot) with absolutely no other elements. However, it seems Conky keeps adding a gap/border/margin/padding/spacing, above and below the plot area. The gaps appear as horizontal bars in the background color. I've tried every Conky option I can find, but the gap won't go away. ## Investigation I've got gaps, margins, and border width set to zero. I've disabled all borders, ranges, scales, outlines, and shades. I've got the window and graph both set to 64 by 64. If I reduce the graph height, the entire window gets shorter, but the gaps remain in proportion. Likewise for increasing the graph height. If I resize the Conky window smaller with window manager controls, it clips off the graph. I can crop the bottom border this way, but not the top. ## Screenshot In the combined screenshots below, the magenta arrows point to the gaps. The bright green is the plot area. The dark gray surrounds are window manager decorations, and serve to show where the black Conky window background ends. These are both ${cpugraph} charts, with the CPU made artificially busy for test purposes. combined screen capture of two Conky windows ## Config The Conky config that produced the above is: conky.config = { own_window = true, own_window_type = 'normal', own_window_transparent = false, own_window_hints = '', alignment = 'top_middle', own_window_title = 'conky_gaptest', double_buffer = true, disable_auto_reload = true, top_cpu_separate = false, update_interval = 0.5, show_graph_range = false, show_graph_scale = false, draw_outline = false, draw_shades = false, draw_borders = false, draw_graph_borders = false, gap_x = 0, gap_y = 0, border_inner_margin = 0, border_outer_margin = 0, border_width = 0, extra_newline = false, default_color = 'white', maximum_width = 64, default_graph_width = 64, default_graph_height = 64, } conky.text = [[${cpugraph cpu0 64,64 00ff00 00ff00}]] Anyone have any suggestions? ## Background (I am doing this because I want to make the Conky window suitable for swallowing into FvwmButtons. I have a vaguely NeXTstep-esque dock/wharf/panel/sidebar, made of 64x64 pixel buttons. I'd like some of the buttons to be Conky graphs. But as long as those gaps are there, it wastes part of the tiny 64x64 space. wmload doesn't have this problem, but sucks in other ways.)
Ben Scott (209 rep)
Nov 13, 2022, 06:56 PM • Last activity: Nov 14, 2022, 03:01 AM
1 votes
1 answers
1175 views
Conky: Is there a way to have multiple-line blocks of text aligned horizontally?
I have been using a sligtly optimized version of Andeon's [conky-simple][1], as shown below. [![enter image description here][2]][2] Unfortunately, I do not have much experience with conky scripts, so I am not sure I can actually do what I have in mind: I would like to have each of these sections (S...
I have been using a sligtly optimized version of Andeon's conky-simple , as shown below. enter image description here Unfortunately, I do not have much experience with conky scripts, so I am not sure I can actually do what I have in mind: I would like to have each of these sections (System, CPU Usage, etc) aligned horizontally, as "paragraphs" or blocks lined at the top of the screen, with a small padding space between. I would like each block to mantain its current appearance, but lined side by side instead of stacked. Is there any way to do that on Conky? I have read a few articles regarding offsets and so on, but did not get many results.
Julles (29 rep)
Oct 24, 2022, 08:56 PM • Last activity: Oct 25, 2022, 02:16 PM
2 votes
2 answers
1773 views
Conky on root desktop doesn't show config file changes
**Summary:** I recently installed Crunchbang and want to change the color of Conky, which is installed by default and shows system status info on the desktop. However, changing the config settings doesn't seem to make a difference, even when I manually restart conky. **Details:** I found two config...
**Summary:** I recently installed Crunchbang and want to change the color of Conky, which is installed by default and shows system status info on the desktop. However, changing the config settings doesn't seem to make a difference, even when I manually restart conky. **Details:** I found two config files: /etc/conky/conky.conf /etc/conky/conky_no_x11.conf They have color settings. If I change the settings and run $ conky then a terminal-looking panel appears that DOES reflect my changes. I noticed that in order to refresh the desktop Conky, not this terminal-looking Conky, I have to do $ sudo killall conky $ sudo conky -q Killing it makes Conky disappear off the desktop. Starting it again as root makes it reappear on the desktop. But none of changes I make to the config files show up in the "root desktop" Conky, only when I run it as a "subsystem" Conky. Please help me understand what is going on, and what I am missing.
paperduck (203 rep)
Jul 5, 2014, 12:11 PM • Last activity: Jul 11, 2022, 01:11 AM
2 votes
2 answers
2093 views
Cannot autostart Conky in Fedora 36 - GNOME 42
So: I just installed Conky, and it looks very nice. But it's annoying to constantly open it on startup manually. So I've search for a way to autostart Conky I've tried: - Making a .desktop file and put it in `/home/ /.config/autostart/`, but it wouldn't open, even if I added a 30 seconds delay. ```...
So: I just installed Conky, and it looks very nice. But it's annoying to constantly open it on startup manually. So I've search for a way to autostart Conky I've tried: - Making a .desktop file and put it in /home//.config/autostart/, but it wouldn't open, even if I added a 30 seconds delay.
[Desktop Entry]
Type=Application
Exec=/usr/bin/conky -p 30
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=conky
Comment=conky
- Create a user service, enabled it on startup and try to restart. But when I checked the log, it returned an error conky: can't open display: , even if I added a 30/60 seconds delay.
$ systemctl --user status conky.service
conky.service - Conky autostart
     Loaded: loaded (/home//.config/systemd/user/conky.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Fri 2022-05-20 16:47:00 +07; 4s ago
    Process: 1568 ExecStart=/usr/bin/conky --config=/home/anhquan/.conkyrc --daemonize --pause=60 (code=exited, status=1/FAILURE)
        CPU: 18ms

May 20 16:46:00 fedora systemd: Starting conky.service - Conky autostart...
May 20 16:47:00 fedora conky: conky: can't open display:
May 20 16:47:00 fedora systemd: conky.service: Control process exited, code=exited, status=1/FAILURE
May 20 16:47:00 fedora systemd: conky.service: Failed with result 'exit-code'.
May 20 16:47:00 fedora systemd: Failed to start conky.service - Conky autostart.
It does seem to work for other people, but doesn't for Fedora 36 / GNOME 42. It might be a bug with the OS / DE, or some changes to Conky that I didn't knew, or maybe it's a problem with Wayland. So is there a different way to autostart it in F36 / G42? **P/S**: Here is the new log when forcing Xwayland to start:
○ conky.service - Conky autostart
     Loaded: loaded (/home/anhquan/.config/systemd/user/conky.service; enabled; vendor preset: disabled)
     Active: inactive (dead) since Fri 2022-05-20 17:38:23 +07; 17s ago
    Process: 1575 ExecStartPre=Xwayland (code=exited, status=1/FAILURE)
        CPU: 56ms

May 20 17:38:23 fedora systemd: Starting conky.service - Conky autostart...
May 20 17:38:23 fedora systemd: conky.service: Control process exited, code=exited, status=1/FAILURE
May 20 17:38:23 fedora systemd: conky.service: Failed with result 'exit-code'.
May 20 17:38:23 fedora systemd: Failed to start conky.service - Conky autostart.
**PSS**: After running strace, here's what systemctl reported (No logs written to the /tmp directory can be found)
conky.service - Conky autostart
     Loaded: loaded (/home/anhquan/.config/systemd/user/conky.service; enabled; vendor preset: disabled)
     Active: inactive (dead) since Fri 2022-05-20 18:04:11 +07; 21s ago
    Process: 1578 ExecStart=strace -f /tmp/conky.log /usr/bin/conky --config=/home/anhquan/.conkyrc -p 30 (code=exited, status=203/EXE>
        CPU: 1ms

May 20 18:04:11 fedora systemd: Starting conky.service - Conky autostart...
May 20 18:04:11 fedora systemd: conky.service: Failed to locate executable strace: No such file or directory
May 20 18:04:11 fedora systemd: conky.service: Failed at step EXEC spawning strace: No such file or directory
May 20 18:04:11 fedora systemd: conky.service: Control process exited, code=exited, status=203/EXEC
May 20 18:04:11 fedora systemd: conky.service: Failed with result 'exit-code'.
May 20 18:04:11 fedora systemd: Failed to start conky.service - Conky autostart.
Quan (71 rep)
May 20, 2022, 10:00 AM • Last activity: May 20, 2022, 01:53 PM
1 votes
1 answers
2174 views
How to remove i3wm info on Desktop
I was wondering how I could remove those information I am showing you in the following images: [![enter image description here][1]][1] [![enter image description here][2]][2] [1]: https://i.sstatic.net/9kgvj.png [2]: https://i.sstatic.net/Ibxpt.png As I said, the window manager I am using is i3 and...
I was wondering how I could remove those information I am showing you in the following images: enter image description here enter image description here As I said, the window manager I am using is i3 and it has been installed through Manjaro Architect, so the config file is generated and customized by the operative system. Any hint on how I can remove this? EDIT: As suggested in the comments, a possible cause of this might be conky, so I am posting both the config file of i3 and conky, respectively: - https://drive.google.com/file/d/1sqnpFxxIHACf2vUz9_Y169ceZQ7Kta47/view?usp=sharing - https://drive.google.com/file/d/18a27O8eZAtu8KkAxqUp4UkTeptsYgWav/view?usp=sharing
deomanu01 (51 rep)
Sep 7, 2020, 09:11 AM • Last activity: Apr 17, 2022, 11:42 AM
Showing page 1 of 20 total questions