diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-10-09 17:26:07 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-10-09 17:26:07 +0100 |
commit | 777498e2ed6db0426b1366fe218bea905c881439 (patch) | |
tree | 122d7ea93e65a1be00421e86195096cdcb5713bd /bin/xopen | |
parent | f2c1c49654862c14b214e91d9b40eabed255f3af (diff) |
Add shortcut to run any script from bin
Diffstat (limited to 'bin/xopen')
-rwxr-xr-x | bin/xopen | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/bin/xopen b/bin/xopen deleted file mode 100755 index a133a47..0000000 --- a/bin/xopen +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/bash -cd ~ -PDF=$(locate "$HOME/*.pdf") -DJVU=$(locate "$HOME/*.djvu") -RESULTS="$PDF -$DJVU" -TARGET=$(echo "${RESULTS//"$HOME/"/}" | dmenu -i -p "Open File:" | tr -d '[[:space:]]') -[[ -n $TARGET ]] || exit -xdg-open "$TARGET" & |