12

I've recently upgraded to Ubuntu 12.10 and since then conky has been acting up. This is what it looks after a while (specially if I use the option 'Show desktop' by draggin the mouse to a corner, as Ubuntu Tweak permits you to do):

enter image description here

This is my .conkyrc file and my ~/.conky/bargraph_small.lua file.

I tried tweaking the setting around but it seems a bit random, at times it will work and at times it will not. Any ideas? Cheers.

Seth
  • 57,282
  • 43
  • 144
  • 200
Gabriel
  • 2,443
  • 7
  • 32
  • 52

3 Answers3

23

I had the same problem with conky in fluxbox. I solved the problem by changing

own_window_type override to own_window_type normal (line 17 in your .conkyrc)

Check out more conky configuration settings here:

http://conky.sourceforge.net/config_settings.html

The above answer would apply in most cases, however in this particular case it doesn't work well. The Ubuntu Tweak "Show desktop" option minimizes all open windows. Your .conkyrc line 16 states own_window yes. This means that conky has it's own window. By stating own_window_type normal the window is being told to act "normally" (can't move it around though). Thus the conky-window will as well as any other window minimize when the "Show desktop" option is used. The line own_window no is not an option because this causes placement problems.

The solution would seem to be to make the window stick to the desktop which would be achieved by changing the line own_window_type normal to own_window_type desktop. However, although this causes the conky window to stay on the desktop when "Show desktop" is used, when the desktop is being clicked left or right for some reason the conky window dissappears again.

What so far seems to keep conky in its place is changing own_window_type normal to own_window_type dock. The drawback of this method is having to place conky on the right spot on your desktop again using gap x and gap y. Gap x is now counted from the left side of the desktop edge instead of the right side. Gap y is still counted from above. So suppose your screen resolution is 1440x900 and gap x used to be 10 and conky maximum with is 250, the new gap x would be 1440-250-10=1180

In addition, to entirely lose any visible dock borders change the line own_window_transparent yes with the lines: own_window_argb_visual yes and own_window_argb_value 0. So in your .conkyrc line 18 will have to be replaced by two lines, 18 and 19 with the new code. When own_window_argb_value is set to 255 the conky window will have no transparency and be black.

This solution has been tested and appears to work. The solution is based on the config_settings in the link above.

jeroen
  • 1,882
  • 13
  • 18
  • This has the drawback that when I use the 'Show Desktop' function by dragging the mouse to a corner (feature provided by `Ubuntu Tweak`) `conky` disappears (I guess it minimizes) never to be seen again... – Gabriel Jan 24 '13 at 16:27
  • 'Show desktop' by draggin the mouse to a corner, how do I activate this feature with the latest version of Ubuntu Tweak? So far I haven't been able to duplicate the behavior of your conky. I used your rc and lua on a freshly installed Ubuntu 12.10. – jeroen Jan 25 '13 at 15:14
  • Open Ubuntu Tweak, Settings > Workspaces and select 'Show desktop' action for one of the corners (mine is top right). – Gabriel Jan 25 '13 at 16:27
  • See my improved answer! – jeroen Jan 26 '13 at 01:58
  • Hi @jeroen and thank you for your help. I tried your new solution and it seemed to work, but when I click on the desktop (right or left) the conky window disappears never to be seen again. It doesn't shut down (I can still see it in the system monitor), it just hides somewhere and can't be brought back. Cheers. – Gabriel Jan 27 '13 at 02:04
  • Hi Gabriel, your welcome. I hope the latest change wil keep your conky in place, but I'm awaiting your next challenge... – jeroen Jan 27 '13 at 16:36
  • Almost there! So far your fixes seem to make `conky` behave with the hot corners, there's just the minor issue if conky's window now displaying a "shadow" around the borders like seen here: http://postimage.org/image/efd6slt69/. What could be causing that? Cheers. – Gabriel Jan 28 '13 at 01:49
  • 1
    Well, I think we're there. Cheers – jeroen Jan 28 '13 at 15:25
  • Outstanding, thank you so much again for all your help @jeroen! – Gabriel Jan 28 '13 at 16:23
  • @jeroen I followed your suggestion to set `own_window_type dock` it worked for me except the conky window then always be on-top of all other windows / applications. Any idea if it can be set as "at-bottom" of all windows? Thanks. – Raymond Leung Apr 19 '14 at 06:09
  • Thanks! Looked around for a solution and everybody is saying to use `override`, which wouldn't work. `dock` works just fine! – Carcamano Jul 20 '15 at 17:49
0

I have an another ansver for you.

1)Just let the window be own_window_type normal

2)and go to compiz config manager.

3)then go to window borders

4)Click the + icon next to window types, that shall have borders to add an exception.

4.1) Then while conky window is open; set the type to "window name" and next to value click "Grab". then grab the conky window.

4.2) Then check the checkbox "reverse" or "inverse" or whatever it is.

5) Do the same for shadows.

6) Happy conking

The problem is, that it doesent appear on all workspaces. (IF one of you knows a solve, let me know). Next problem: if you click on conky window, it jumps on all other windows just like a normal window would do. Also "show desktop" is a problem.

  • I tried this the day he asked this question, but it didn't work on Conky. Maybe Conky is being drawn through other means than Compiz? This is how I get other apps to go transparent, such as my terminal window and file browser. It's an awesome trick. – SunnyDaze Aug 04 '17 at 02:19
0

I had the same problem in Xubuntu 14.04. In my case, Conky was always working perfectly, until one day I noticed it wasn't transparent anymore. The problem was that I had disabled the Compositor option in the Window Manager Tweaks. Once I checked that box again, Conky was transparent again.

Rober
  • 1