update time every min
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user