Posts: 1,028
SamK
Joined: 21 Aug 2011
#1
Occasionally, Conky does not display on the desktop at boot up. On the occasions it does, opening an app such as Terminal can make it disappear again.

You might like to try the following simple edit of your ~.conkyrc, which does not require root privileges.

Remove

Code: Select all

...
own_window_transparent yes
own_window_colour black
own_window_type desktop
...
Replace with the following in the section shown. This just keeps related items together.

Code: Select all

...
# Create own window instead of using desktop (required in nautilus, pcmanfm and rox desktops)
own_window yes
own_window_transparent yes
own_window_hints undecorated,sticky,skip_taskbar
...
A further value, skip_pager can be used but did not have a lasting effect when tested, so has been omitted.

It seems that using"own_window_type desktop" (antiX-12 JWM default) implicitly implements many hints, but does not work correctly within JWM. Declaring the hints explicitly does work and produces the desired behaviour.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
This fixes jwm (and the conky 'flicker' in icewm if you left-click on empty space on the desktop), however it causes an issue in icewm with a 'popup' opening on the taskbar that goes when you click on it.
Posts: 1,028
SamK
Joined: 21 Aug 2011
#3
anticapitalista wrote:This fixes jwm (and the conky 'flicker' in icewm if you left-click on empty space on the desktop), however it causes an issue in icewm with a 'popup' opening on the taskbar that goes when you click on it.
By the time I found this, antiX-12-Full had been removed and replaced antiX-12-Base, As Base only provides JWM I didn't test in IceWM. I will re-install Full as a dual boot so I can also see the 'popup'.
Posts: 1,028
SamK
Joined: 21 Aug 2011
#4
anticapitalista wrote:...an issue in icewm with a 'popup' opening on the taskbar that goes when you click on it.
OK, I see the 'popup' now in antiX-12-Full. When researching in 12-Base running JWM a similar effect was seen and resolved by adding the"skip_taskbar" parameter, but it does not produce the desired result with IceWM.
Posts: 1,028
SamK
Joined: 21 Aug 2011
#5
There seems to be multiple layers producing IceWM issues:
  • The use of backgrounded tasks in ~./icewm/startup
  • Using own_window_type desktop in ~.conkyrc is only partly working
  • The fix that works for JWM works with IceWM but generates an unwanted 'popup'
The following combination works here but will benefit from wider testing.


Do not run the following as background tasks:

Code: Select all

login_background.sh
rox --pinboard=antiX-ice
conky
Note: These also appear to address the"ghost window" issue


Example files on antiX-12 Full
~/.conkyrc for IceWM

Code: Select all

...
# Create own window instead of using desktop (required in nautilus, pcmanfm and rox desktops)
own_window yes
own_window_transparent yes
own_window_hints undecorated,sticky,skip_taskbar
own_window_type override
...
~/.icewm/startup

Code: Select all

# Auto update menu
auto-icewm-menu.sh &

#icewmtray &

# wicd
#sleep 2 && wicd-client -t &

# keyring
gnome-keyring-daemon &

# Set wallpaper
login_background.sh  

# Set desktop icons
rox --pinboard=antiX-ice 

# Start the system monitor
sleep 3 && conky 

# set live keyboard
#setxkbmap

(sleep 3 && volumeicon) &
(sleep 5 && toram-eject) &
(sleep 5 && sudo persist-config --startup) &


~/.conkyrc for JWM

Code: Select all

...
# Create own window instead of using desktop (required in nautilus, pcmanfm and rox desktops)
own_window yes
own_window_transparent yes
own_window_hints undecorated,sticky,skip_taskbar
...
~/.jwm/startup

Code: Select all

<JWM>
<!-- Applications used in conjunction with JWM -->
<StartupCommand>
  # Auto update menu
  /usr/local/bin/auto-jwm-menu.sh &

  # Keyring 
  gnome-keyring-daemon &

  # Set wallpaper
  /usr/local/bin/login_background.sh 

  # Set desktop icons
  rox --pinboard=antiX-jwm 

  # Start the system monitor
  sleep 3 && conky 

  # Set live keyboard
  #setxkbmap

  # Uncomment to place an audio volume control in the JWM tray (taskbar)
  volumeicon &

  # Unknown
  (sleep 5 && toram-eject) &
  (sleep 5 && sudo persist-config --startup) &
</StartupCommand>
</JWM>
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#6
Thanks SamK. That really seems to work.

It is probably best to have 2 (or 3) conkyrc files in a .conkyrc directory for each wm and change the command in each wm startup file to:

Code: Select all

conky -c ~/.conky/conkyrc_jwm
Posts: 1,028
SamK
Joined: 21 Aug 2011
#7
anticapitalista wrote:It is probably best to have 2 (or 3) conkyrc files in a .conkyrc directory...
I haven't given this much consideration but an alternative might be possible depending on how the other (non tested WM's) work with the alternative conky configuration. If they work OK with the alternative to own_window_type desktop, the change to conkyrc boils down to changing a single line.

The difference between the IceWM and JWM configs is whether own_window_type override is specified. If the same is true for the other WM's it might be possible to have a single conkyrc and activate or deactivate that single line.

I'm probably not the best judge of the consequences of either approach as I am not really a user of Conky. In the rare cases where I do, it is never displayed on the desktop, rather it is in a normal window that I switch on, read what I want, then switch off again. I realize that this view is probably out-of-step with many antiX users who put a lot of effort into the cosmetic look of their Conky display.
Posts: 39
frogprince
Joined: 08 Nov 2012
#8
SamK: editing my ~/.icewm/startup file as above (no &'s) fixed my ghost window problem, thank you very much!
This link helped, and may help others:


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.unix.com/shell-programming-scripting/167953-how-run-background-mode.html"
linktext was:"http://www.unix.com/shell-programming-s ... -mode.html"
====================================