wmaker: allow the screenshot filename template to be set

This patch is adding a new option ScreenshotFilenameTemplate for users
to change the default strftime format "screenshot_%Y-%m-%d_at_%H:%M:%S".
For example, Teams is not allowing the ':' char in the filename of file
to be shared so I always have to rename the file.
This commit is contained in:
David Maciejak
2026-03-20 10:11:02 +00:00
committed by Carlos R. Mafra
parent 412b3eace2
commit be495bedbc
4 changed files with 38 additions and 1 deletions
+3
View File
@@ -191,6 +191,9 @@
#define DEF_APPMENU_X 10
#define DEF_APPMENU_Y 10
/* default strftime format for screenshot filenames */
#define DEF_SCREENSHOT_FILENAME_TEMPLATE "\"screenshot_%Y-%m-%d_at_%H:%M:%S\""
/* calculate window edge resistance from edge resistance */
#define WIN_RESISTANCE(x) (((x)*20)/30)