shift+ins paste

This commit is contained in:
Venelin Dechkov
2026-07-30 11:54:49 +03:00
parent 47306a4169
commit f20804a589
3 changed files with 12 additions and 8 deletions
+9 -7
View File
@@ -97,12 +97,6 @@ extern "C"
// strcpy(BOOKMARK_DIR, HOME);
// strcat(BOOKMARK_DIR, "/notes/bookmarks/web");
// sprintf(OPEN_BOOKMARK_CMD, "xdg-open $(dmenumap ~/notes/bookmarks/web/$(ls %s | dmenu "DMENU_OPTS") "DMENU_OPTS")", BOOKMARK_DIR);
// strcpy(OPEN_BOOKMARK_CMD, "xdg-open $(dmenumap "DMENU_OPTS" ~/notes/bookmarks/web/$(ls ");
// strcat(OPEN_BOOKMARK_CMD, BOOKMARK_DIR);
// strcat(OPEN_BOOKMARK_CMD, " | dmenu "DMENU_OPTS);
}
void vene_updatestatus(char status[])
@@ -256,6 +250,14 @@ extern "C"
scrot | tee | xclip; // todo: cppipe < string
}
void vene_paste_sel(const Arg*)
{
Cmd xclip("xclip", "-selection", "primary", "-o");
Cmd xdotool("xdotool", "click", "--delay", "0", "--clearmodifiers", "2");
xclip | xdotool;
}
void vene_browser(const Arg* browser_tag)
{
bool browser_tag_used = false;
@@ -278,7 +280,7 @@ extern "C"
void vene_webbookmark() // todo: cppipe exceptions
{
Cmd dmenu( "dmenu", "-b", "-f", "-i", "-l", "30");
Cmd dmenu( "dmenu", "-b", "-f", "-i", "-l", "30", "-fn", "monospace:size=14");
string bm_root (HOME);
bm_root += "/sync/bookmarks/web/";