From bd644f5a17f66d89c08458aacc57cb932a9d291d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 24 Jan 2021 22:26:21 -0300 Subject: xmonad: Bind M-b to URL form to add to buku --- xmonad/scripts/yad-buku.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 xmonad/scripts/yad-buku.sh (limited to 'xmonad/scripts') diff --git a/xmonad/scripts/yad-buku.sh b/xmonad/scripts/yad-buku.sh new file mode 100755 index 00000000..20d2f8e0 --- /dev/null +++ b/xmonad/scripts/yad-buku.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -euo + +URL="$(yad --title 'Add the URL' --form --field 'URL')" + +if [ -n "$URL" ]; then + buku -a "$URL" +fi -- cgit v1.3