From cd5fabb36a693ebd27395cee50b22b633f24e55b Mon Sep 17 00:00:00 2001 From: tslil clingman <> Date: Tue, 26 Apr 2022 18:30:09 -0400 Subject: Updated scripts for Qubes 4.1 --- qubes-dwm-6.2/scripts/dmenu_all | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'qubes-dwm-6.2/scripts/dmenu_all') diff --git a/qubes-dwm-6.2/scripts/dmenu_all b/qubes-dwm-6.2/scripts/dmenu_all index e63bf80..7030fbe 100755 --- a/qubes-dwm-6.2/scripts/dmenu_all +++ b/qubes-dwm-6.2/scripts/dmenu_all @@ -4,23 +4,16 @@ app_path="$HOME/.local/share/applications/" scrape_apps() { - grep '^Name=\|^Exec=' "$app_path"/*.desktop | grep ':Name=' | cut -d= -f2- + grep '^Name=' "$app_path"/*.desktop | exclude | cut -d= -f2- } exclude() { - grep -v "Qube Settings" + grep -v "Qube Settings\|os\.vm\.debian-11-dvm\|os\.vm\.whonix-ws-16" } -tidy() { - sed 's/Rxvt Color Unicode Terminal/urxvt/' -} - -untidy() { - sed 's/urxvt/Rxvt Color Unicode Terminal/' -} find_file() { - grep "^Name=$1" "$app_path"/*.desktop | cut -d: -f1 + grep "^Name=$1" "$app_path"/*.desktop | exclude | cut -d: -f1 } # Expects the contents of a desktop file @@ -29,8 +22,8 @@ execute_app() { eval " $cmd" } -choice=$(scrape_apps | exclude | tidy | sort | wrap_dmenu -p "Run" $* | untidy) +choice=$(scrape_apps | sort | wrap_dmenu -p "Run" $*) [ -z "$choice" ] && exit file="$(find_file "$choice")" [ -z "$file" ] && exit -execute_app "$file" \ No newline at end of file +execute_app "$file" -- cgit v1.2.3