This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // copy-screenshot.ts | |
| var COMMAND_NAME = "screenshot-to-clipboard"; | |
| var path = mp.utils.get_user_path("~/AppData/Local/Temp/mpv-screenshot-clipboard.png"); | |
| function main() { | |
| print("Saving screenshot to " + path); | |
| mp.commandv("osd-msg", "screenshot-to-file", path, "video"); | |
| mp.commandv("run", "cb", "cp", path); | |
| } | |
| mp.add_key_binding(undefined, COMMAND_NAME, main); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This relies on the latest stash having untracked files | |
| # Always create stash with: | |
| # | |
| # git stash -u | |
| # | |
| # Always apply your stash with: | |
| # | |
| # git stash apply | |
| # | |
| # Never do `git stash pop`! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /// script | |
| # dependencies = [ | |
| # "retention-rules", | |
| # ] | |
| # /// | |
| import logging | |
| import os | |
| import re |
OlderNewer