How do I add a simple calendar into taskbar or background of my wm.
I often use cal command in xterm to get calendar info, is there a better way to dock it into my taskbar, or into background of my windows(blackbox, fvwm, etc), sample codes are appreciated.
|
Quote:
In the tint2 area of the clock I added the following: Code:
clock_lclick_command = /home/whatever/call_calendar.sh Code:
#!/bin/bash You could just change tint2 to call a script that pops up xterm and pass cal to it. Hope this helps. Chet |
well
I know you where looking for better window manager integration... however an alternative is to utilize cal with ~/.bashrc. This way every time you login, you are presented with a nice output of cal.
i.e. my example ~/.bashrc Code:
#!/bin/bash Code:
#!/bin/bash |
It would be somewhat abusing the program, since it's meant to tail files, but you could play around with making root-tail display a file containing the output of cal. If you wanted to use chetamonye's approach but didn't want to use zenity, Xdialog has a calendar widget, too. I'm sure there are many other routes. For instance, if you use gkrellm, you can bind a mini-xterm running cal or Xdialog/zenity or whatever to the clock button. Etc.
|
I'm sure you can also use conky for this.
|
thanks for everyone's reply.
If I remembered correctly, Slackware used to have xcal which is much easier to dock it, but I can't find it anymore. I want everything original from slackware, so I don't have to use 3rd party software, and extreme lightweight on computer resource. |
Quote:
|
Hi,
You can add in ~/.xinitrc, something like: Code:
xterm -hold -geometry 20x8-0+0 -e cal |
Quote:
|
You can use a cronjob that runs every midnight+1min.
If you know the pid you can use, something like "kill -HUP <xterm-pid>" |
Another approach is to run the 'orage' calendar application. It can be set up to always appear on your desktop.
|
Hey number22..
you can use a complete calendar application. first of all what's your window manager? Gnome? Kde? XFCE4? or local light weight one? look...... its specific according to window manager. you can download orag the calendar applicaition from the internet. then you can compile it,make it and add it to the taskbar. |
Check out dock apps. I use a couple in Fluxbox and they do what I need them to.
|
thanks for everyone reply, I use blackbox, WM and fvwm(not so much this day), anyway, only use lightweight wm, and prefer using everything straight out box from Slackware, keep my system as lean as possible.
|
number22, dockapps should work fine with blackbox and its cousins.
http://blackboxwm.sourceforge.net/ManPages/blackbox Here's a screenshot of my Fluxbox with gkrellm running as a dock app in the Fluxbox slit. |
All times are GMT -5. The time now is 01:35 AM. |