Skip to content

Instantly share code, notes, and snippets.

@danshick
danshick / trigger-screen-shot.py
Created March 4, 2021 19:34
Python script to trigger a screenshot via xdg-desktop-portal
#!/usr/bin/python3
# this used to live at https://gitlab.gnome.org/snippets/814
# but has since been deleted, the original author is unknown
# reuploading here for safe keeping
import dbus
import secrets
import re