Use the --calendar option. Диалоговое окно календарь

Use the --calendar option to create a calendar dialog. Zenity returns the selected date to standard output. If no date is specified on the command line, the dialog uses the current date.

Диалоговое окно календарь поддерживает следующие параметры:

<cmd>--text</cmd>=<var>text</var>

Указывает текст, который будет изображён в диалоговом окне календаря.

<cmd>--day</cmd>=<var>day</var>

Specifies the day that is selected in the calendar dialog. day must be a number between 1 and 31 inclusive.

<cmd>--month</cmd>=<var>month</var>

Specifies the month that is selected in the calendar dialog. month must be a number between 1 and 12 inclusive.

<cmd>--year</cmd>=<var>year</var>

Указывает год, который будет выбран в диалоговом окне календаря.

<cmd>--date-format</cmd>=<var>format</var>

Specifies the format that is returned from the calendar dialog after date selection. The default format depends on your locale. Format must be a format that is acceptable to the strftime function, for example %A %d/%m/%y.

The following example script shows how to create a calendar dialog:

#!/bin/sh if zenity --calendar \ --title="Select a Date" \ --text="Click on a date to select that date." \ --day=10 --month=8 --year=2004 then echo $? else echo "No date selected" fi
Пример диалогового окна календарь Zenity calendar dialog example