Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-04-09 22:30:33

davecs
Member
Registered: 2014-03-21
Posts: 18

Feature request — Orage and Panel Clock

Panel Clock — I would ask if it's possible to give one of the XFCE panel clocks an option to run a user-defined program, instead of merely showing a basic calendar? (I am currently doing this via a GenMon and a script).

Orage — Would it be possible that, if orage is not running, that it should be run in "not hidden" mode on the command "orage -t"? (I am using a short script to achieve this at present)

Orage — On Day View, would it be possible to make all-day events appear in a column? When I have several during the course of a week, it makes the window impossibly wide.

Thanks for your consideration.

Offline

#2 2022-04-09 23:41:28

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 8,817

Re: Feature request — Orage and Panel Clock

The best place to place these feature requests is at https://gitlab.xfce.org/explore/groups?sort=name_desc. This way, the developers will see them.

Offline

#3 2022-04-10 09:36:00

Tamaranch
Member
Registered: 2020-12-31
Posts: 87

Re: Feature request — Orage and Panel Clock

A similar request already exists for Clock: https://gitlab.xfce.org/xfce/xfce4-panel/-/issues/449.
No need to create a new one I think.
For the rest, feel free to submit requests at https://gitlab.xfce.org/apps/orage/-/issues.

Offline

#4 2022-04-10 16:06:46

davecs
Member
Registered: 2014-03-21
Posts: 18

Re: Feature request — Orage and Panel Clock

Tamaranch wrote:

A similar request already exists for Clock: https://gitlab.xfce.org/xfce/xfce4-panel/-/issues/449.
No need to create a new one I think.
For the rest, feel free to submit requests at https://gitlab.xfce.org/apps/orage/-/issues.

The "similar request" for Clock is a rather complicated one. I meant something simple like the LXDE panel clock:

Screenshot-from-2022-04-08-20-35-18.png

(orage-flip is a simple script which starts Orage if it's not running, or does "orage -t" if it is.)

Then it could be used for Orage or anything else! If the program is left blank, you get a simple Calendar as now. That's what I had in mind.

Offline

#5 2022-04-10 16:24:35

Tamaranch
Member
Registered: 2020-12-31
Posts: 87

Re: Feature request — Orage and Panel Clock

Yes indeed, this could be the subject of a separate feature request.
Please link this thread in the new request if you open one.

Offline

#6 2022-04-10 16:31:14

davecs
Member
Registered: 2014-03-21
Posts: 18

Re: Feature request — Orage and Panel Clock

I've opened two of these, the Panel Clock and the Day View improvement. The other issue can be worked around by running Orage on startup (running hidden).

Offline

#7 2022-04-10 19:11:34

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 8,817

Re: Feature request — Orage and Panel Clock

davecs wrote:
Tamaranch wrote:

A similar request already exists for Clock: https://gitlab.xfce.org/xfce/xfce4-panel/-/issues/449.
No need to create a new one I think.
For the rest, feel free to submit requests at https://gitlab.xfce.org/apps/orage/-/issues.

The "similar request" for Clock is a rather complicated one. I meant something simple like the LXDE panel clock:

https://i.ibb.co/wcLZC5D/Screenshot-fro … -35-18.png

(orage-flip is a simple script which starts Orage if it's not running, or does "orage -t" if it is.)

Then it could be used for Orage or anything else! If the program is left blank, you get a simple Calendar as now. That's what I had in mind.

In reviewing the code, it looks like the clock plugin has a hidden "command" property. What it does is it executes a preset command on double-click (it also hides the calendar popup). You can create this property via:

xfconf-query -c xfce4-panel -p $(xfconf-query -c xfce4-panel -lv | grep clock | awk '{print $1}')/command -t string -s "mousepad" -n

...change "mousepad" to whatever command you want to execute.

Edit: you can also create the property using xfce4-settings-editor.

Edit2: I've updated the clock online documentation page with this information.

Last edited by ToZ (2022-04-10 19:50:54)

Offline

#8 2022-04-10 22:04:47

davecs
Member
Registered: 2014-03-21
Posts: 18

Re: Feature request — Orage and Panel Clock

ToZ wrote:
davecs wrote:
Tamaranch wrote:

A similar request already exists for Clock: https://gitlab.xfce.org/xfce/xfce4-panel/-/issues/449.
No need to create a new one I think.
For the rest, feel free to submit requests at https://gitlab.xfce.org/apps/orage/-/issues.

The "similar request" for Clock is a rather complicated one. I meant something simple like the LXDE panel clock:

https://i.ibb.co/wcLZC5D/Screenshot-fro … -35-18.png

(orage-flip is a simple script which starts Orage if it's not running, or does "orage -t" if it is.)

Then it could be used for Orage or anything else! If the program is left blank, you get a simple Calendar as now. That's what I had in mind.

In reviewing the code, it looks like the clock plugin has a hidden "command" property. What it does is it executes a preset command on double-click (it also hides the calendar popup). You can create this property via:

xfconf-query -c xfce4-panel -p $(xfconf-query -c xfce4-panel -lv | grep clock | awk '{print $1}')/command -t string -s "mousepad" -n

...change "mousepad" to whatever command you want to execute.

Edit: you can also create the property using xfce4-settings-editor.

Edit2: I've updated the clock online documentation page with this information.

Works, but it would be much better to include it in a dialog box, and I find the layout settings in DateTime have the potential to look more attractive in layout. I really can't get Clock to look nice. And why the double click? I certainly think that the layout potential of DateTime is a better starting point, and it would be much better if it was an easy to use feature.

Offline

#9 2022-04-10 22:17:30

davecs
Member
Registered: 2014-03-21
Posts: 18

Re: Feature request — Orage and Panel Clock

I've actually used a GenMon on my own desktop but I'm thinking of making it easier for other people.

I have a command in /usr/local/bin called orage-flip:

#!/bin/bash
pidof orage >/dev/null && orage -t || orage

Another command to lay out a calendar in Generic Monitor, in /usr/local/bin called orage-cal
The second echo would have to be changed for some locales including USA

#!/bin/bash
echo "<txt><b>`date +%X`</b>"
echo "<span size='x-small'>`date +%d/%m/%Y`</span></txt><txtclick>orage-flip</txtclick>"
echo "<tool>Day: `date +%A`"
echo "Week №: `date +%U`"
echo "Day of Year: `date +%j`</tool>"

And the genmon properties are:

Command: orage-cal
Label: unchecked, leave blank
Period(s): 1 second.
and I use font Bitstream Vera 12

Offline

#10 2022-04-11 14:00:38

Tamaranch
Member
Registered: 2020-12-31
Posts: 87

Re: Feature request — Orage and Panel Clock

davecs wrote:

Works, but it would be much better to include it in a dialog box, and I find the layout settings in DateTime have the potential to look more attractive in layout. I really can't get Clock to look nice. And why the double click? I certainly think that the layout potential of DateTime is a better starting point, and it would be much better if it was an easy to use feature.

A project to merge Clock and DateTime has been proposed for GSoC: https://wiki.xfce.org/projects/gsoc/start#xfce4-panel.
So it could happen soon.

Offline

Board footer

Powered by FluxBB