Calendar

From Fvwm Extensions (configs) Archive
Jump to navigation Jump to search
Image

Calendar (modules) is made of FvwmButtons and a time/date script that is swallowed, which displays the current time and date. And the Yad script displays the calendar.

## FILE 1: timeDayB.txt
## Modules

## Time/Day panel color
*FvwmScript: DefaultColorset 10

Module FvwmButtons TimeDayButton

DestroyModuleConfig TimeDayButton:*
*TimeDayButton: Geometry 90x70-0-60
*TimeDayButton: Colorset 10
*TimeDayButton: Columns 120
*TimeDayButton: Font "xft:Sans:Bold:size=10:antialias=True"
*TimeDayButton: (25x10, Frame 0)
*TimeDayButton: (120x30, Title Calendar, Action(Mouse 1) "Exec exec $[HOME]/.fvwm/script/Calendar.sh", Font "xft:Sans:size=11:antialias=True", Frame 0)
*TimeDayButton: (120x45, Swallow DateTime 'Module FvwmScript FvwmScript-DateTime', Frame 0)
*TimeDayButton: (120x25, Frame 0)

Style TimeDayButton !Borders, !Title, WindowListSkip, Sticky, StaysOnTop
Style Calendar* NoTitle # no titel bar
Style MyRightPanel StaysOnBottom


## Check yadPos.txt
Read $[HOME]/.fvwm/yadPos.txt
## FILE 2: /scripts/calendar.sh
#!/bin/bash

CAL_GET=`yad --calendar --text "" --list --button=Close:0 --title "Calendar"`
case $? in
	0)
		exit ;;
esac

HOW TO: Copy the code and paste it into your config. Or create FILE 1 and FILE 2 and run the below line:
Read $[HOME]/.fvwm/timeDayB.txt