Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tag for disabling screenshots (Part of the Better Exam Support Project) #1470

Merged
2 changes: 2 additions & 0 deletions plugin/screenshot/screenshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

mod = Module()

mod.tag("screenshot_disabled", desc="Activating this tag disables screenshot commands")

default_folder = ""
if app.platform == "windows":
default_folder = os.path.expanduser(os.path.join("~", r"OneDrive\\Pictures"))
Expand Down
3 changes: 3 additions & 0 deletions plugin/screenshot/screenshot.talon
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
not tag: user.screenshot_disabled
-

^grab screen$: user.screenshot()
^grab screen <number_small>$: user.screenshot(number_small)
^grab window$: user.screenshot_window()
Expand Down