aboutsummaryrefslogtreecommitdiff
path: root/config.hpp
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-01-28 18:11:42 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-01-28 18:11:42 +0100
commite651d2636724cd6c5a55f3847d275f9be620db47 (patch)
tree0622875cce0aa2ec85feb7060471eeedb2a28bdc /config.hpp
parent8227a8d984a7d2e18acf70ff20d4dd30880ecc77 (diff)
add download capability
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) {