screenshot to clip

This commit is contained in:
vrd
2026-07-30 11:54:49 +03:00
committed by Venelin Dechkov
parent c626039502
commit 47306a4169
3 changed files with 11 additions and 3 deletions
+8
View File
@@ -248,6 +248,14 @@ extern "C"
}
}
void vene_screenshot(const Arg*)
{
Cmd scrot("scrot", "-s");
Cmd tee("tee", SCREEN_CAPS_DIR);
Cmd xclip("xclip", "-selection", "clipboard", "-t", "image/png");
scrot | tee | xclip; // todo: cppipe < string
}
void vene_browser(const Arg* browser_tag)
{
bool browser_tag_used = false;