From 69aeeb51d249736c37ea6aa095be4ffb020731d8 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Tue, 12 Mar 2019 16:19:34 +0530 Subject: GUI app launcher with drop-down menu `nlauncher` is POSIX compliant. It needs `fzy`. --- user-scripts/nlaunch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 user-scripts/nlaunch (limited to 'user-scripts') diff --git a/user-scripts/nlaunch b/user-scripts/nlaunch new file mode 100755 index 0000000..79540c8 --- /dev/null +++ b/user-scripts/nlaunch @@ -0,0 +1,17 @@ +#!/usr/bin/env sh + +# Description: Fuzzy find executables in $PATH and launch an application +# stdin, stdout, stderr are suppressed so CLI utilities exit silently +# +# Shell: POSIX compliant +# Author: Arun Prakash Jana + +IFS=':' + +get_selection() { + ls -H $PATH | sort | fzy +} + +if selection=$( get_selection ); then + "$selection" 2>&1 >/dev/null & +fi -- cgit v1.2.3-70-g09d2