diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-19 00:52:48 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-19 00:52:48 +0200 | 
| commit | 0e217b38780f15818f90d81ae5476d854e12e60f (patch) | |
| tree | 2016c134ee5ca0f46f2d28bb251f990bf780d38e /bin/guiscripts | |
| parent | a2081449840a2d8f47bb3710ff8745a4d9b06733 (diff) | |
made dmhelp menu script
Diffstat (limited to 'bin/guiscripts')
| -rwxr-xr-x | bin/guiscripts/dmhelp | 32 | 
1 files changed, 0 insertions, 32 deletions
diff --git a/bin/guiscripts/dmhelp b/bin/guiscripts/dmhelp deleted file mode 100755 index a9027ef..0000000 --- a/bin/guiscripts/dmhelp +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env sh -OPTIONS="/tmp/dmh_options.txt" - -if [ "$MENUCMD" = "tofi" ] -then -	program="$(tofi-run --prompt-text "program: ")" -	menucmd="tofi --width 50% --height 30% --matching-algorithm normal --prompt-text $program:" -elif [ "$MENUCMD" = "dmenu" ] -then -	program="$(dmenu_path | dmenu -l 4 -g 5 -p "program:")"  -	menucmd="dmenu -l 20 -g 1 -x -i -p $program:"  -else -	program="$(dmenu_path | fzf)" -	menucmd="fzf" -fi - -test -z "${program}" && exit 1 - -if $program --help > "$OPTIONS" -then -    option="$(grep -E "^ *-[-a-Z]* " "$OPTIONS" | -		tr -s ' ' | -		sort | -		uniq | -		column -l 2 -t | -		$menucmd | -		awk '{print $1}')" - -test -z "$option" && exit 1 - -rm -f "$OPTIONS" -setsid $program $option  | 
