Calendar: Difference between revisions

From Fvwm Extensions (configs) Archive
Jump to navigation Jump to search
(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 *...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
<pre>
<pre>
## FILE 1: timeDayB.txt
## FILE 1: timeDayB.txt
## Modules


## Time/Day panel color
## Time/Day panel color
Line 15: Line 16:
*TimeDayButton: Font "xft:Sans:Bold:size=10:antialias=True"
*TimeDayButton: Font "xft:Sans:Bold:size=10:antialias=True"
*TimeDayButton: (25x10, Frame 0)
*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: (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: (120x45, Swallow DateTime 'Module FvwmScript FvwmScript-DateTime', Frame 0)
*TimeDayButton: (120x25, Frame 0)
*TimeDayButton: (120x25, Frame 0)
Line 24: Line 25:




## Check Functions: yadPos.sys
## Check yadPos.txt
Read $[HOME]/yadPos.txt
Read $[HOME]/.fvwm/yadPos.txt
</pre>
</pre>


Line 38: Line 39:
esac
esac
</pre>
</pre>
'''Example''': Copy config and run the below lines:
'''HOW TO''':
 
Copy the code and paste it into your config. Or create FILE 1 and FILE 2 and run the below line:<br>
''Read $[EXTRA_DIR]/MODULES/TimeDayButton/timeDayB.sys''
''Read $[HOME]/.fvwm/timeDayB.txt''


__NOTOC____NOEDITSECTION__
__NOTOC____NOEDITSECTION__

Latest revision as of 12:11, 12 July 2025

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