LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-02-2024, 11:27 PM   #1
SlackIT
Member
 
Registered: Mar 2022
Posts: 166

Rep: Reputation: 17
Small Flicker Center Screen When Starting Conky


Hello,

I am having this similar issue with Conky in Openbox.

https://github.com/brndnmtthws/conky/issues/1182

When I try to start Conky from the Openbox menu in the same manner, I also see this small white dot appear in the middle of the screen for a brief second.

Does anyone know a way in which I can start Conky from the Openbox menu and not have this issue?

The only way I have found so far is to change own_window_type = from normal or desktop to override. But I want to use normal...

THANKS

Last edited by SlackIT; 05-02-2024 at 11:29 PM.
 
Old 05-03-2024, 12:10 AM   #2
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 459

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Can you try to click the dot with xprop? It could be that Openbox is placing the conky window in the wrong place briefly before the proper position from the config file kicks in.
 
Old 05-03-2024, 01:17 AM   #3
SlackIT
Member
 
Registered: Mar 2022
Posts: 166

Original Poster
Rep: Reputation: 17
I don't see how that is even possible, to start xprop, and then click on Conky from the Openbox menu...

As I nentioned I am starting Conky from the Openbox menu, and if you look over the GitHub link you will read/see it doesn't do this calling the command directly from the terminal, only from the Openbox menu is the issue.

THANKS
 
Old 05-03-2024, 02:08 AM   #4
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 459

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
I thought Openbox menus were navigable by keyboard, sorry.

RE menu.xml from the GitHub issue: does disabling "startupnotify" do anything? I can't think of what else might make opening conky from the menu different from using a terminal.
 
Old 05-03-2024, 08:02 AM   #5
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 703
Blog Entries: 1

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
In your ~/.conkyrc, try adding "double_buffer".
 
Old 05-03-2024, 04:40 PM   #6
SlackIT
Member
 
Registered: Mar 2022
Posts: 166

Original Poster
Rep: Reputation: 17
Disabling startupnotify didn't do anything, thanks anyways for the suggestion/help.

@jmccue I already have double_buffer in the config. I also removed it, didn't have any effect.


conky.config = {
override_utf8_locale = false,
background = true,
use_xft = true,
font = 'noto sans:size=11.5',
xftalpha = 0.8,
out_to_console = false,
out_to_stderr = false,
update_interval = 3.0,
total_run_times = 0,
draw_shades = false,

own_window = true,
own_window_class = 'Conky',
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',

own_window_argb_visual = true,

minimum_width = 2560,
maximum_width = 2560,

double_buffer = true,
default_color = 'cc44ff',
color1 = 'e0cdc3',

alignment = 'top_middle',
gap_y = 5,
no_buffers = true
}

conky.text = [[
${alignc}${color}CPU1: ${color1}${cpu cpu0}% \
${color}CPU2: ${color1}${cpu cpu1}% \
${color}CPU3: ${color1}${cpu cpu2}% \
${color}CPU4: ${color1}${cpu cpu3}% \
${color}CPU5: ${color1}${cpu cpu4}% \
${color}CPU6: ${color1}${cpu cpu5}% - ${freq cpu0}MHz - ${hwmon 0 temp 1} °C \
${color}GPU: ${color1}${nvidia gpuutil}% - ${nvidia temp} °C \
${color}RAM: ${color1}${mem} - $memperc% \
${color}SSD: ${color1}${fs_free /} free \
${color}LAN: ${color1}${addr eth0} - ${downspeed eth0} down - ${upspeed eth0} up \
${color}UP: ${color1}$uptime_short \
]]



When I look at the Arch Linux Wiki;

https://wiki.archlinux.org/title/conky

It mentions; For the other Desktop environments/WM: Try editing conky.conf and adding/changing the following line:

own_window_type = 'override',

or

own_window_type = 'desktop',

So maybe 'override' is just fine in Openbox? I just assumed to use normal or desktop is all. hmm...

THANKS

Last edited by SlackIT; 05-03-2024 at 04:47 PM.
 
Old 05-06-2024, 04:44 PM   #7
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 703
Blog Entries: 1

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
I played with your conkyrc, I believe the "flickering" is due to formatting of the CPU % values. When the CPU % changes from 1 digit to 2 digits, you get a flicker.

Try playing with $tab (see man) to separate the % digits instead of spaces.
 
Old 05-06-2024, 05:15 PM   #8
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
My guess would be openbox treats everything as a window to be placed in pre-defined position.
It sometimes happens on blackbox too. I don't use conky but FWIW when you run "orage" from xfce4 panel within a blackbox wm:
Same thing happens, it flashes orage window in the center, and then quickly positions it above the panel where it's supposed to be.
I believe the cause is the blackbox setting:
Code:
session.windowPlacement:	CenterPlacement
And since everything managed by blackbox is considered a window, it's working as intended. Some applications are designed to be a widget and not a window.
Workaround, I don't know, since I don't really use orage or conky I don't have a problem.
 
Old 05-06-2024, 08:49 PM   #9
SlackIT
Member
 
Registered: Mar 2022
Posts: 166

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by jmccue View Post
I played with your conkyrc, I believe the "flickering" is due to formatting of the CPU % values. When the CPU % changes from 1 digit to 2 digits, you get a flicker.

Try playing with $tab (see man) to separate the % digits instead of spaces.

I don't understand anything you said, if you could please elaborate?

When the CPU % changes from 1 digit to 2 digits?
Try playing with $tab (see man) to separate the % digits instead of spaces?

man conky;
tab (width, (start))
Puts a tab of the specified width, starting from column `start'. The unit is pixels for both arguments.

Can't say I understand how to use 'tab', need to read some more.

THANKS

P.S. Maybe I'm just making a bigger deal out of this, and using own_window_type = 'override' is fine for Openbox?

Last edited by SlackIT; 05-06-2024 at 09:12 PM.
 
Old 05-07-2024, 10:05 AM   #10
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 703
Blog Entries: 1

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
Quote:
Originally Posted by SlackIT View Post
I don't understand anything you said, if you could please elaborate?
$tab is a funny variable, you need to play around with it to get what you want. Maybe try something like this, but you need to keep adjusting your tab values to get it right.

Also as someone said, get rid of "alignment = 'top_middle'" and "alignc". I would use top_left.

For the tabs, something like this:

Code:
conky.text = [[
${color}CPU1: ${color1}${tab 20}${cpu cpu0}%${tab 20}\
${color}CPU2: ${color1}${tab 20}${cpu cpu1}%${tab 20}\
${color}CPU3: ${color1}${tab 20}${cpu cpu2}%${tab 20}\
${color}CPU4: ${color1}${tab 20}${cpu cpu3}%${tab 20}\
${color}CPU5: ${color1}${tab 20}${cpu cpu4}%${tab 20}\
${color}CPU6: ${color1}${tab 20}${cpu cpu5}%${tab 20}\
${tab 20}${freq cpu0}MHz${tab 25}${acpitemp} C${tab 20}\
... ... ...
]]
Note, on my hardware I have to use acpitemp instead of what you had.

Last edited by jmccue; 05-07-2024 at 10:07 AM. Reason: added comment
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
conky question: passing conky-variable to shell-script zlin50 Linux - Software 2 12-29-2012 06:47 PM
LXer: Conky Colors Makes Your Conky Beautiful In Seconds (Version 3.20 Released) LXer Syndicated Linux News 0 08-01-2010 11:21 AM
LXer: Conky Ubuntu Lucid Theme - Among The Easiest to Install Conky Theme in Ubuntu LXer Syndicated Linux News 0 07-05-2010 04:11 PM
Conky on Suse 10.0 - *** buffer overflow detected *** conky terminated Slidex Linux - Software 1 03-17-2006 11:50 AM
ATI 9200 SE screen flicker in screen saver gargamel Slackware 12 07-09-2005 04:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration