feat: adds an option to run a script after a screenshot

This commit is contained in:
Giovane Perlin
2025-11-30 22:04:30 -04:00
committed by dec05eba
parent d7be9b38b1
commit 11aa237821
5 changed files with 44 additions and 7 deletions

View File

@@ -146,6 +146,8 @@ namespace gsr {
ConfigHotkey take_screenshot_hotkey;
ConfigHotkey take_screenshot_region_hotkey;
ConfigHotkey take_screenshot_window_hotkey; // Or desktop portal, on wayland
std::string custom_script;
};
struct Config {
@@ -164,4 +166,4 @@ namespace gsr {
std::optional<Config> read_config(const SupportedCaptureOptions &capture_options);
void save_config(Config &config);
}
}