You are not logged in.

#1 2012-06-06 22:32:32

DrKillPatient
Member
Registered: 2011-07-28
Posts: 85

Dzen2: Clickable areas

I've settled on dzen2 as a taskbar recently, and have been gradually making the bar more elaborate. However, there are two functions that I'd like to use but which I cannot figure out, both relating to clickable areas:
1. Switching what is displayed if an area is clicked on. For instance, I have a four-core CPU, so my CPU indicator says "CPU: 1% 2% 3% 4%". I want to use clickable areas so that, when I click on that indicator, it will switch to the format "CPU: 48° 49° 50° 51°"-- i.e. switching between temperature and CPU usage with a click.
2. Expanding a display with more information if an area is clicked on. I wish to have a part of my taskbar labeled "Fortune", that, when clicked on, will extend a display downward (or upward, if my dock is on the bottom of the screen), will run the "fortune" command and print its output into that display. (It would be preferable if the display would adjust its size based on the amount of text.) I know a little about slave windows and I suppose they could be used here, but as far as I know, they can only be the width of the dzen bar that they originate from.

I am using dzen2 version 0.9.5-svn, built with Xinarama, XPM, and XFT support enabled. How might I implement the features that I've described above?

Offline

#2 2012-06-06 23:16:43

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: Dzen2: Clickable areas

Offline

#3 2012-06-07 00:10:20

DrKillPatient
Member
Registered: 2011-07-28
Posts: 85

Re: Dzen2: Clickable areas

I've no idea how xdotool has relevance here... perhaps I described my situation poorly? Here is an image of what I'm trying to do in problem 2, for instance-- specifically, the expanded part of the memory display.

Last edited by DrKillPatient (2012-06-07 00:43:42)

Offline

Board footer

Powered by FluxBB