aboutsummaryrefslogtreecommitdiff
path: root/config.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'config.hpp')
-rw-r--r--config.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.hpp b/config.hpp
index e5e0551..3afaa99 100644
--- a/config.hpp
+++ b/config.hpp
@@ -3,6 +3,11 @@ const char search_engine[] = "https://search.nathanreiner.xyz/search?
const char dmenu_args[] = "-s 0 -b";
const unsigned scroll_speed = 100;
+/* DOWNLOAD(URI) */
+#define DOWNLOAD(u) \
+ const char *a[] = { "st", "-e", "curl", "-g", "-L", "-J", "-O", u, NULL }; \
+ execvp(a[0], (char*const*)a);
+
#define MODIFIER Qt::ALT
void register_shortcuts(QWidget *view) {