From f4b77c42ca78c5265c4754caeef5289e3841f5e9 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Thu, 23 Dec 2021 22:20:14 -0600 Subject: some youtube dl script and dmenu runapplication and test timmywm and modified other scripts idjlol --- launch/dmenu_runapp | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 launch/dmenu_runapp (limited to 'launch/dmenu_runapp') diff --git a/launch/dmenu_runapp b/launch/dmenu_runapp new file mode 100755 index 0000000..bf0e148 --- /dev/null +++ b/launch/dmenu_runapp @@ -0,0 +1,4 @@ +#!/bin/sh +apps=/usr/share/applications +name="$(grep -rh -m1 '^Name=' $apps | cut -d'=' -f2- | sort | uniq | dmenu "$@")" +$(grep '^Exec=[^%]*' -o -m1 $(grep -rl -m1 "$name" $apps) | cut -d'=' -f2-) & -- cgit v1.2.3