aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/loadwall
diff options
context:
space:
mode:
authorLoek Le Blansch <l.leblansch@gmail.com>2020-06-21 22:05:17 +0200
committerLoek Le Blansch <l.leblansch@gmail.com>2020-06-21 22:05:17 +0200
commit47a4416df21412a9184a9b5045233260c1cb80bb (patch)
treebd5463ec7698868ab61d84a1ae0af1ebd4984ce8 /.local/share/bin/loadwall
dots v2
Diffstat (limited to '.local/share/bin/loadwall')
-rwxr-xr-x.local/share/bin/loadwall5
1 files changed, 5 insertions, 0 deletions
diff --git a/.local/share/bin/loadwall b/.local/share/bin/loadwall
new file mode 100755
index 0000000..e419667
--- /dev/null
+++ b/.local/share/bin/loadwall
@@ -0,0 +1,5 @@
+#!/bin/node
+var args = process.argv;
+var image = args.find(a => a.match(/\.(png|jpeg|jpg)/g));
+var wal = require(__dirname + "/pywal/jswal.js");
+wal(["--bg-fill", image]);