You are not logged in.

#1 2008-08-28 19:47:59

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

Calendar in pipe-menu?

Hi. Is possible to have any simple calendar in openbox pipe-menu ? Thx

Offline

#2 2008-11-11 22:17:25

Hrod beraht
Member
Registered: 2008-09-30
Posts: 186

Re: Calendar in pipe-menu?

There's one on the Openbox website.
It's one drawback is that you have to use a monospace font for it to line up correctly. Personally, I don't like the look of my menu while using a monospace font, so I just added a menu option to call cal directly in a terminal. It's not as elegant as a pipe-menu, but at least my menu font still looks good smile

Openbox menu command:

        <item label="Calendar">
            <action name="Execute">
                <execute>
                    xterm -e sh ~/.config/openbox/calendar.sh
                </execute>
            </action>
        </item>

Calender script:

#
# calendar.sh
#
# show 3 month calendar
cal -3
# wait for a key press to exit
read -n 1

Bob

Last edited by Hrod beraht (2008-11-11 23:16:38)

Offline

#3 2008-11-12 19:43:34

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

Re: Calendar in pipe-menu?

I don't know how to use the "date menu" script from OB website. I created file date-menu.sh and pasted there the script. Than I created new pipe menu in obmenu and added path to the file to "execute" array. However, it's not working in openbox menu.

Offline

#4 2008-11-12 21:22:31

Hrod beraht
Member
Registered: 2008-09-30
Posts: 186

Re: Calendar in pipe-menu?

cinan wrote:

I don't know how to use the "date menu" script from OB website. I created file date-menu.sh and pasted there the script. Than I created new pipe menu in obmenu and added path to the file to "execute" array. However, it's not working in openbox menu.

That happened to me too. I kept getting an error when I did an Openbox Reconfigure. It kept complaining about 'extra content' in the script. I fixed it by deleting the leading space from every line in the script. I guess those extra spaces were the 'extra content'. It worked fine after that.

Bob

Offline

#5 2008-11-13 14:27:35

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

Re: Calendar in pipe-menu?

Thanks! Now it's working!

Offline

Board footer

Powered by FluxBB