mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-12 11:59:59 -05:00
record: add arg to copy screen recording to clipboard (#83)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from pathlib import Path
|
||||
import json
|
||||
import re
|
||||
import shutil
|
||||
@@ -108,6 +109,10 @@ class Command:
|
||||
except IOError:
|
||||
pass
|
||||
|
||||
if self.args.clipboard:
|
||||
file_uri = Path(new_path).resolve().as_uri() + "\n"
|
||||
subprocess.run(["wl-copy", "--type", "text/uri-list"], input=file_uri.encode())
|
||||
|
||||
action = notify(
|
||||
"--action=watch=Watch",
|
||||
"--action=open=Open",
|
||||
|
||||
Reference in New Issue
Block a user