From 5675edebc709c2b3f5f7cabd5c66810997551e28 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 3 Jan 2019 23:05:51 +0530 Subject: [PATCH] Add sample user scripts --- scripts/user-scripts/fzy.sh | 8 ++++++++ scripts/user-scripts/sxiv.sh | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 scripts/user-scripts/fzy.sh create mode 100644 scripts/user-scripts/sxiv.sh diff --git a/scripts/user-scripts/fzy.sh b/scripts/user-scripts/fzy.sh new file mode 100644 index 00000000..8bf5268e --- /dev/null +++ b/scripts/user-scripts/fzy.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +# Description: Fuzzy find files in directory subtree with fzy and open using xdg-open +# +# Shell: generic +# Author: Arun Prakash Jana + +xdg-open $(find -type f | fzy) >/dev/null 2>&1 diff --git a/scripts/user-scripts/sxiv.sh b/scripts/user-scripts/sxiv.sh new file mode 100644 index 00000000..2ee23985 --- /dev/null +++ b/scripts/user-scripts/sxiv.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +# Description: Open images in current directory in sxiv +# +# Shell: generic +# Author: Arun Prakash Jana + +sxiv -q * >/dev/null 2>&1