You are not logged in.

#1 2008-05-25 05:29:35

DrZaius
Member
Registered: 2008-01-02
Posts: 170

Pypanel shows clock twice

About half the time I startx pypanel will show two clocks instead of just one.  There should be just one clock on the right screen edge, but a secondary one shows up on the left edge and overlaps the desktop name section. Screenshot of the left edge:

pypaneljunk.png

Why does this happen?  I see no reference to pypanel in any logs.

~/.config/openbox/autostart.sh

xsetroot -solid "#000000" &
numlockx on &
(sleep 3 && pypanel) &

~/.pypanelrc

#------------------------------------------------------------------------------
#
#                         PyPanel v2.4 Configuration
#
# This configuration file is a Python script that will be executed when
# PyPanel is started.  In order for PyPanel to start properly, make sure that
# this file contains proper Python formatting and no syntax errors.
#------------------------------------------------------------------------------
VERSION         = 2.4           # Config file version

#------------------------------------------------------------------------------
# Colors: Format is hex triplet - 0xrrggbb
#------------------------------------------------------------------------------
BG_COLOR        = "0x000000"    # Panel background and tinting color
TASK_COLOR      = "0xa9a9a9"    # Normal task name color 
FOCUSED_COLOR   = "0xffbe00"    # Focused task name color
SHADED_COLOR    = "0x808080"    # Shaded task name color 
MINIMIZED_COLOR = "0x808080"    # Minimized task name color 
DESKTOP_COLOR   = "0xa9a9a9"    # Desktop name color
CLOCK_COLOR     = "0xcecece"    # Clock text color
LINE_COLOR      = "0x606060"    # Vertical line color

# Text Shadow Colors
TASK_SHADOW_COLOR      = "0xffffff"
FOCUSED_SHADOW_COLOR   = "0xffffff"
SHADED_SHADOW_COLOR    = "0xffffff"
MINIMIZED_SHADOW_COLOR = "0xffffff" 
DESKTOP_SHADOW_COLOR   = "0xffffff"
CLOCK_SHADOW_COLOR     = "0xffffff"

#------------------------------------------------------------------------------
# Panel Spacing and Location Options: Measured in pixels
#------------------------------------------------------------------------------
P_LOCATION      = 1             # Panel placement: 0 = top, 1 = bottom
P_WIDTH         = 0             # Panel width: 0 = Use full screen width
P_START         = 0             # Starting X coordinate of the panel
P_SPACER        = 6             # Spacing between panel objects
P_HEIGHT        = 24            # Panel height

#------------------------------------------------------------------------------
# Icon Size Options: Measured in pixels
#------------------------------------------------------------------------------
I_HEIGHT        = 16            # Panel application icon height
I_WIDTH         = 16            # Panel application icon Width 
APPL_I_HEIGHT   = 24            # Application launcher icon height
APPL_I_WIDTH    = 24            # Application launcher icon width
TRAY_I_HEIGHT   = 24            # System tray icon height (usually 16 or 24)
TRAY_I_WIDTH    = 24            # System tray icon width  (usually 16 or 24)
                                # If TRAY_I_WIDTH is set to 0, then the
                                # width specified by the tray app will be used
                                
#------------------------------------------------------------------------------
# Panel Clock Format: 'man strftime' for detailed formatting options and help
#------------------------------------------------------------------------------
CLOCK_FORMAT    = "%a %b %d, %l:%M:%S"    # Ex: 2004-09-25 17:45 

#------------------------------------------------------------------------------
# Clock Delay: Seconds between each clock update during periods of inactivity
#------------------------------------------------------------------------------
CLOCK_DELAY     = 1

#------------------------------------------------------------------------------
# Hidden Application List: Apps listed here will not be display on the panel
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
# Ex: ["xmms", "xine", "gDesklets"]
#------------------------------------------------------------------------------
HIDE_LIST       = []            
                   
#------------------------------------------------------------------------------
# Hidden Panel Size: Size of the panel when it's hidden/minimized
#------------------------------------------------------------------------------
HIDDEN_SIZE     = 2

#------------------------------------------------------------------------------
# Panel Text Font: This option takes either a traditional or Xft font string 
# Ex: "-schumacher-clean-medium-r-normal-*-12-*-*-*-*-*-*-*"
#     "aquafont-8" 
#------------------------------------------------------------------------------
FONT            = "bitstream vera sans-8"

#------------------------------------------------------------------------------
# Show All Applications: Show apps from all desktops or just the current
# 0: Disabled - Only applications on the current desktop will be displayed
# 1: Enabled  - Selected apps are moved to the current desktop
# 2: Enabled  - Current desktop is changed to the selected apps desktop
#------------------------------------------------------------------------------
SHOWALL         = 0             # 0, 1 or 2 - see descriptions above

#------------------------------------------------------------------------------
# Show Minimized/Iconified Applications: Show only minimized apps or all apps
# 0: Disabled - Show all applications on the panel
# 1: Enabled  - Show only minimized apps on the panel
#------------------------------------------------------------------------------
SHOWMINIMIZED   = 0

#------------------------------------------------------------------------------
# Application Icon List: List of custom icons for specific applications
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
#
# The "default" entry is used for applications with no icon.  If left "",
# PyPanel will use the default icon distributed with the source.
#
# Add entries using the following format -
#     "<application name>" : "<full path to icon>",
#------------------------------------------------------------------------------
ICON_LIST       = {
                   "default" : "",
                   "example" : "/usr/share/imlib2/data/images/audio.png",
                  }
                  
#------------------------------------------------------------------------------
# Application Launch List: Ordered list of icons and applications for the
#                          application launcher.
# 
# Add entries using the following format -
#     ("<executable>", "<full path to icon>")
#------------------------------------------------------------------------------
LAUNCH_LIST     = [
                   ("gimp-2.2", "/usr/share/imlib2/data/images/paper.png"), 
                  ]

#------------------------------------------------------------------------------
# Background Alpha/Shade Level: 0 (Fully Translucent) -> 255 (Fully Opaque)
# BG_COLOR is used for tinting
#------------------------------------------------------------------------------
SHADE           = 50

#------------------------------------------------------------------------------
# Misc. Options: 1 = Enabled/Yes, 0 = Disabled/No
#------------------------------------------------------------------------------
ABOVE           = 1             # Panel is always above other apps
APPICONS        = 1             # Show application icons
AUTOHIDE        = 0             # Autohide uses the CLOCK_DELAY timer above
SHADOWS         = 0             # Show text shadows
SHOWLINES       = 0             # Show object seperation lines
SHOWBORDER      = 0             # Show a border around the panel

#------------------------------------------------------------------------------
# Desktop Names: Configure the names of your desktops
# If the option is [], PyPanel will attempt to use the desktop name specified
# by the XServer, if that fails it will use the desktop number as its name
# Ex. ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight"]
#------------------------------------------------------------------------------
DESKTOP_NAMES   = []

#------------------------------------------------------------------------------
# Panel Layout:       -----------------------------------
#                     [  1  ][  2  ][  3  ][  4  ][  5  ]
#                     -----------------------------------
#
# The panel layout is split into 5 sections numbered 1, 2, 3, 4 or 5 as shown
# in the diagram above.  Each of the following objects can be enabled by
# assigning it a section number or disabled by assigning it 0:
#------------------------------------------------------------------------------
DESKTOP         = 1             # Desktop name section
TASKS           = 2             # Task names section 
TRAY            = 3             # System tray section
CLOCK           = 4             # Clock section
LAUNCHER        = 0             # Application launcher section

#------------------------------------------------------------------------------
#                       Button Event Function Definitions
#------------------------------------------------------------------------------
# Left click   - button 1 
# Middle click - button 2
# Right click  - button 3
# Wheel up     - button 4
# Wheel down   - button 5 
#
# changeDesktop(x)
# - Change Desktop: Increase or decrease the current desktop by 'x' amount
# 
# toggleShade(task)
# - Shade or Unshade an application
#
# toggleHidden()
# - Minimize the panel to the top or bottom depending on its start location
#
# toggleMinimize(task, traise=1)
# - Minimize or Unminimize an application and optionally raise it
#
# taskRaise(task, focus=1)
# - Raise an application to the top of the window list and optionally focus it 
#
# taskLower(task, focus=0)
# - Lower an app to the bottom of the window list and optionally focus it
#
# taskFocus(task)
# - Give focus to the selected application, if it has focus then minimize it
#
# showDesktop()
# - Toggle between hiding and unhiding ALL applications
#------------------------------------------------------------------------------

#----------------------------------
def desktopButtonEvent(pp, button):
#----------------------------------
    """ Button event handler for the panel's desktop object """
        
    if button == 1:
        pp.changeDesktop(-1)
    elif button == 2:
        pp.changeDesktop(2)
    elif button == 3:
        pp.changeDesktop(1)
    elif button == 4:
        pp.changeDesktop(1)
    elif button == 5:
        pp.changeDesktop(-1)
        
#--------------------------------
def clockButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel's clock object """
    
    if button == 1:
        os.system("xclock &")
    elif button == 2:
        pass
    elif button == 3:
        pp.toggleHidden()  
    elif button == 4:
        pp.showDesktop()
    elif button == 5:
        pp.showDesktop()
        
#--------------------------------
def panelButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel with no active tasks """
    
    if button == 1:
        pass
    elif button == 2:
        pass
    elif button == 3:
        pass
    elif button == 4:
        pass
    elif button == 5:
        pass
        
#-------------------------------------
def taskButtonEvent(pp, button, task):
#-------------------------------------
    """ Button event handler for the panel's tasks """
    
    if button == 1:
        pp.taskFocus(task)
    elif button == 2:
        # Destroy the application
        task.obj.destroy()
    elif button == 3:
        # Ex. - XMMS doesn't shade, so we want to minimize it instead and
        #       still use button 3 to shade other applications
        #       task.tclass is the tasks class name (WM_CLASS)
        if "xmms" in task.tclass:
            pp.toggleMinimize(task)
        else:
            pp.toggleShade(task)
    elif button == 4:
        pp.taskRaise(task, focus=1)
    elif button == 5:
        pp.taskLower(task, focus=0)

Damned dirty ape.

Offline

#2 2008-05-25 10:10:36

JaQoB
Member
Registered: 2007-04-04
Posts: 59

Re: Pypanel shows clock twice

I have the same problem, but i never did manage to solve it. I though it was related to conky in some way, as it seems to dissapear when i close conky.

Offline

#3 2008-05-26 18:42:38

DrZaius
Member
Registered: 2008-01-02
Posts: 170

Re: Pypanel shows clock twice

I don't use conky.  I still haven't figured this out either, but I'll make a post here if I do.


Damned dirty ape.

Offline

#4 2008-05-26 18:58:08

DrZaius
Member
Registered: 2008-01-02
Posts: 170

Re: Pypanel shows clock twice

The doubling effect seems to appear when I use "CLOCK_DELAY = 1".  Using the default "CLOCK_DELAY = 20" shows the clock normally.  I was using such a small delay because I wanted my clock to show the seconds as well.

Can someone try a 1 second clock delay?  I'd like to know if I'm the only one with this problem.  I'm using Openbox.

Last edited by DrZaius (2008-05-26 19:00:55)


Damned dirty ape.

Offline

#5 2008-05-26 19:36:20

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,120

Re: Pypanel shows clock twice

For me, doesn't matter what clock delay I use--I tried 1,2,5,10 and no double clock.  BTW I don't use a sleep delay for pypanel in my autostart.sh and it works fine.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#6 2008-05-27 17:27:27

DrZaius
Member
Registered: 2008-01-02
Posts: 170

Re: Pypanel shows clock twice

Thanks for testing.  I removed the sleep delay and I'm still getting the double clock.  I'll keep monkeying with it.


Damned dirty ape.

Offline

#7 2008-12-17 01:08:29

Frabato
Member
Registered: 2007-10-24
Posts: 267

Re: Pypanel shows clock twice

Hi All,

I had this problem some months ago and I gave up on pypanel. After a clean install yesterday I have the same problem. Has anyone found a cure for this? Is there another panel for openbox that's looks as nice with transparency?

Thanks,
Arthur

Offline

#8 2008-12-17 01:26:03

DrZaius
Member
Registered: 2008-01-02
Posts: 170

Re: Pypanel shows clock twice

I haven't had this problem for some time, but I'm unsure what resolved it.  Nothing actively on my part, but probably an update of something.  Have you tried tint2?  It has transparency.  No tray, but those are easy to find.

Last edited by DrZaius (2008-12-17 01:26:22)


Damned dirty ape.

Offline

#9 2008-12-18 05:04:29

Frabato
Member
Registered: 2007-10-24
Posts: 267

Re: Pypanel shows clock twice

Thanks for the reply DrZaius,

I don't know what went wrong but it seems to work now even after several reboots. I uninstalled and reinstalled and everything is fine.
Openbox is very popular in the Archlinux world so I hope that someone figures out what is going on here. For now, all is well.

Thanks Again,
Arthur

Offline

#10 2008-12-18 05:24:39

weasel8
Member
Registered: 2008-12-15
Posts: 149

Re: Pypanel shows clock twice

Frabato wrote:

Hi All,

I had this problem some months ago and I gave up on pypanel. After a clean install yesterday I have the same problem. Has anyone found a cure for this? Is there another panel for openbox that's looks as nice with transparency?

Thanks,
Arthur

I absolutely love tint2. Appearance-wise, there are way more options than PyPanel has, and it's also much prettier. The two have similar config, though, which is quite nice. Have a look at some of the screenshots at http://code.google.com/p/tint2/ -- you can also download a small PDF manual there.

Offline

#11 2008-12-19 05:09:40

Frabato
Member
Registered: 2007-10-24
Posts: 267

Re: Pypanel shows clock twice

Hey weasel8,

Thanks very much for your reply. I really like that there's a pdf explaining how to configure things. There is hardly any documentation on any of these trayers, pagers and docks etc. so this is very welcome. I just got all of my keybindings and wallpaper and programs set up with openbox the way that I like them. I'm running pypanel and it's working perfectly but I will backup with clonezilla tonight and play with tint2 in the morning (one too many glasses of wine to try it tonight). Do you run a pager or notification tray? Can a tray be nested in tint2 or must it be run outside?

Thanks Again,
Arthur

Offline

#12 2011-01-08 16:04:15

CoyoteTrail
Member
Registered: 2011-01-08
Posts: 2

Re: Pypanel shows clock twice

Hello World,

New to Arch Linux, Openbox, and pypanel.

Have gone ofer this thread several times looking for a solution for two clocks displayed on pypanel.
https://bbs.archlinux.org/viewtopic.php?id=49132

For me the clock that is always in position 1 does not update with the passage of time.  Running cairo-compmgr seams to prevent the static clock.

Have a good day

Offline

#13 2011-01-08 18:14:38

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 19,019
Website

Re: Pypanel shows clock twice


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Online

Board footer

Powered by FluxBB