You are not logged in.

#1 2008-12-03 16:31:32

monstermudder78
Member
Registered: 2008-05-18
Posts: 120

Add the current time to Openbox window titles?

I want to add the current time to window titles in openbox.  Is this possible and if so, how would I go about it?  I have googled this to death but can't seem to find an answer.  If someone could even just point me in the right direction it would be appreciated.

Thanks,
monstermudder78

Offline

#2 2008-12-03 17:19:13

ijanos
Member
From: Budapest, Hungary
Registered: 2008-03-30
Posts: 443

Re: Add the current time to Openbox window titles?

Openbox doesn't (and probably won't support that.

Offline

#3 2008-12-03 17:26:04

monstermudder78
Member
Registered: 2008-05-18
Posts: 120

Re: Add the current time to Openbox window titles?

ijanos wrote:

Openbox doesn't (and probably won't support that.

I was pretty sure they didn't support it, I was more asking for a way to MAKE it happen.

Offline

#4 2008-12-03 17:33:19

xen
Member
Registered: 2008-08-17
Posts: 56

Re: Add the current time to Openbox window titles?

Any good at programming? It probably isn't too hard to strcpy the system time and then strcat the regular window title smile


A wannabe game-developer.
My Blog
My GitHub

Offline

#5 2008-12-03 17:41:41

ijanos
Member
From: Budapest, Hungary
Registered: 2008-03-30
Posts: 443

Re: Add the current time to Openbox window titles?

The title text is rendered by pango iirc, but you also have to code it to update every second which is kind of useless for a window manager.

Offline

#6 2008-12-03 17:53:16

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: Add the current time to Openbox window titles?

ijanos wrote:

The title text is rendered by pango iirc, but you also have to code it to update every second which is kind of useless for a window manager.

How about updating every minute ?


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#7 2008-12-03 18:00:12

ijanos
Member
From: Budapest, Hungary
Registered: 2008-03-30
Posts: 443

Re: Add the current time to Openbox window titles?

that could cause 59 seconds delay to the current time, but still its not the job of the window manager. Guys this is unix: do one thing and do it well.
There are plenty of good clock applications, out there. Many openbox user likes lal, to name one.

Offline

#8 2008-12-03 23:49:03

monstermudder78
Member
Registered: 2008-05-18
Posts: 120

Re: Add the current time to Openbox window titles?

ijanos wrote:

Guys this is unix: Make it do whatever YOU want it to do, not what works for someone else.

Fixed

ijanos wrote:

There are plenty of good clock applications, out there. Many openbox user likes lal, to name one.

I do have a clock, using conky, but it is covered up whenever an app is maximized.  Yes I do know there are workarounds, and I have used them in the past, but I was looking for a different solution.

I am not all that good at programming but I will use this opportunity to learn more.  Thanks for all the info that has been given already and I appreciate any more ideas anyone may have.

Offline

#9 2008-12-03 23:58:13

monstermudder78
Member
Registered: 2008-05-18
Posts: 120

Re: Add the current time to Openbox window titles?

Ok, since firefox is the most offending app (the one that is always covering my clock) I may have found a better solution.  The FoxClocks extension puts a clock in the status bar of firefox.  My new question is, how do I turn my status bar back on?  It disappeared some time ago and I'm not sure how or why or how to get it back.

Edit:
View >> Status Bar
It works!

Last edited by monstermudder78 (2008-12-04 00:02:54)

Offline

#10 2008-12-04 02:09:58

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: Add the current time to Openbox window titles?

You can always use a panel or set up gaps in openbox so you always see the time.


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#11 2008-12-04 05:39:45

monstermudder78
Member
Registered: 2008-05-18
Posts: 120

Re: Add the current time to Openbox window titles?

moljac024 wrote:

You can always use a panel or set up gaps in openbox so you always see the time.

Right, those were the workarounds I referred to here:

monstermudder78 wrote:

Yes I do know there are workarounds, and I have used them in the past, but I was looking for a different solution.

IMO adding a panel is just adding another layer of stuff and my conky clock is no longer visible unless I set my top margin to 85 px, so thats not really an option either.

Offline

#12 2008-12-04 06:59:42

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Add the current time to Openbox window titles?

If you want to see clock all the time then you are going to either use a panel or a visible icon or conky

bind a script to a key to show time maybe ?


Mr Green

Offline

#13 2008-12-04 12:53:47

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: Add the current time to Openbox window titles?

A panel can be a conky line + newmpager + trayer. That's my top panel and it shows the time, among other things.

You can always bind a key to "ToggleShowDesktop" in openbox.


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#14 2008-12-04 15:00:20

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Add the current time to Openbox window titles?

It's possible to put a clock in the menu via a pipe menu, FWIW. (And other stuff, like battery state...)

Offline

#15 2008-12-05 20:16:59

dunc
Member
From: Glasgow, UK
Registered: 2007-06-18
Posts: 559

Re: Add the current time to Openbox window titles?

What about a translucent conky in some unobtrusive corner of the screen set to stay on top? I used a small Xfce panel like that for ages (I found bottom left about 20 or so pixels from the edge was where it got in the way least, but YMMV).


0 Ok, 0:1

Offline

#16 2008-12-05 21:04:29

monstermudder78
Member
Registered: 2008-05-18
Posts: 120

Re: Add the current time to Openbox window titles?

dunc wrote:

What about a translucent conky in some unobtrusive corner of the screen set to stay on top? I used a small Xfce panel like that for ages (I found bottom left about 20 or so pixels from the edge was where it got in the way least, but YMMV).

Hmmm.. this might work well, I'll give it a try, thanks!

Offline

Board footer

Powered by FluxBB