Subcommands
Subcommands permit the user to modify theme in mass.
add-event
usage: naivecalendar add-event [-h] [-o] [-n|-d EVENT_NAME] [-v NEW_VALUE]
Add a new event entry in ~/.config/naivecalendar/global/events.cfg
- optional arguments:
- -h, --help
show this help message and exit
- -n EVENT_NAME, --new EVENT_NAME
name of the new event
- -v NEW_VALUE, --value NEW_VALUE
value of the new event (see any config file for format)
- -o, --override
override value if event already exist
- -d EVENT_NAME, --delete EVENT_NAME
delete event
update-themes
usage: naivecalendar update-themes [-h] [-s] [-L] [-p PARAMETER] [-v NEW_VALUE] [-f REGEX] [-e USER_EDITOR]
Give a new value to a calendar parameter for all themes in ~/.config/naivecalendar/themes/
/!\ Saving your themes before use is a good practice
- optional arguments:
- -h, --help
show this help message and exit
- -s, --simulate
don’t change files and print to stdout
- -L, --list-parameters
show all parameters names
- -T, --list-themes
show all user themes
- -a, --all-parameters
open an editor to giva a value to all parameters
- -e, --editor
force editor with -a flag
- -p PARAMETER, --parameter PARAMETER
parameter to change in all config files
- -v NEW_VALUE, --value
NEW_VALUE new value to set
- -f REGEX, --filter REGEX
if set, only edit themes with names that match the extended-regexp (grep -E)
configure
usage: naivecalendar configure [-h] [-c|-e TYPE]
Asset to easily clone or open configuration files Configuration files in questions are SCRIPTS (custom actions), THEMES (copy all/edit actual), EVENTS
- arguments:
- -h, --help
show this help message and exit
- -c TYPE, --clone TYPE
clone installation configuration file into user folder (SCRIPTS, THEMES, EVENTS)
- -e TYPE, --edit TYPE
edit user conf file (SCRIPTS, THEMES, EVENTS)
Examples
Start with a copy of installation’s themes:
naivecalendar configure --clone THEMES
THEMES cloned into ~/.config/naivecalendar/
Bye
Edit actual config (open an editor):
naivecalendar configure --edit THEMES
Change a parameter in all themes:
naivecalendar update-themes --parameter USER_LOCALE --value es_ES.utf8
setting parameter USER_LOCALE to es_ES.utf8
27 files Updated:
blackboard carbon_gold classic_dark classic_dark_compact classic_dark_extended classic_dark_variant classic_light classic_light_compact classic_light_extended classic_light_variant ...
Bye!
Change a parameter on choosen themes:
naivecalendar update-themes --parameter PROMT_DATE_FORMAT --value "%d-%m-%Y" --filter ".*compact"
setting parameter PROMT_DATE_FORMAT to %d-%m-%Y \n
4 files Updated:
classic_dark_compact classic_light_compact retro_blue_compact user_compact
Bye!
Change multiples parameters (open text editor):
naivecalendar update-themes --all-parameters --editor kate
Start updating files............................................................................................................
Updated parameters:
USER_LOCALE DAY_ABBR_LENGHT FIRST_DAY_WEEK
In themes :
blackboard carbon_gold classic_dark classic_dark_compact
classic_dark_extended classic_dark_variant classic_light classic_light_compact
...
Bye!
Add new event:
naivecalendar add-event --new Notes1 --value .my_notes/note-%d-%m-%y.txt