update time every min

This commit is contained in:
Venelin Dechkov
2026-07-30 11:54:49 +03:00
parent b275554213
commit 4a5e539580
4 changed files with 48 additions and 11 deletions
+11 -8
View File
@@ -8,7 +8,7 @@
#include <cppipe/commands.hpp>
#include <X11/X.h>
// #include "vene.h"
#include "vene_env.h"
#include <vene_env.h>
extern "C"
{
#include "slstatus/slstatus.h"
@@ -272,15 +272,13 @@ extern "C"
void vene_clip_history(const Arg*)
{
Cmd clipmenu("clipmenu", DMENU_ARGS);
Cmd get_clip("xclip", "-o");
Cmd xdotool("xdotool", "type", "--delay", "0", "--clearmodifiers");
// Select a history entry and put to clip
clipmenu();
Cmd clipmenu("clipmenu", DMENU_ARGS);
// Simulate keyboard input
run(xdotool + $(get_clip).c_str());
// Paste
Cmd xdotool("xdotool", "key", "--delay", "0", "--clearmodifiers", "shift+Insert");
clipmenu && xdotool;
}
void vene_browser(const Arg* browser_tag)
@@ -362,4 +360,9 @@ extern "C"
child = detach(toggle_mic);
has_child = true;
}
void vene_zzz(const Arg*)
{
ofstream("/sys/power/state") << "mem";
}
}