Calendar

From Fvwm Extensions (configs) Archive
Revision as of 04:10, 12 July 2025 by Admin (talk | contribs) (Created page with "right|150px|link=Calendar|Image '''Calendar''' <small>''(modules)''</small> 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. <pre> ## FILE 1: timeDayB.txt ## Time/Day panel color *FvwmScript: DefaultColorset 10 Module FvwmButtons TimeDayButton DestroyModuleConfig TimeDayButton:* *TimeDayButton: Geometry 90x70-0-60 *TimeDayButton: Colorset 10 *...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

## 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]/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 Functions: yadPos.sys
Read $[HOME]/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

Example: Copy config and run the below lines:

Read $[EXTRA_DIR]/MODULES/TimeDayButton/timeDayB.sys