diff options
| author | Andrew Guschin <saintruler@gmail.com> | 2021-09-22 13:48:05 +0400 |
|---|---|---|
| committer | Andrew Guschin <saintruler@gmail.com> | 2021-09-22 13:48:05 +0400 |
| commit | bd330942776437d7965ecdb8863b0cb4d080b2ee (patch) | |
| tree | c5f4709d15dc2bb775436aec4477a92f9ab67547 /.local/bin | |
| parent | 97afd09fbe73955d1c636d3f223a68e411413ef9 (diff) | |
Added dmenu-desktop script
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/scripts/dmenu-desktop | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.local/bin/scripts/dmenu-desktop b/.local/bin/scripts/dmenu-desktop new file mode 100755 index 0000000..82504e1 --- /dev/null +++ b/.local/bin/scripts/dmenu-desktop @@ -0,0 +1,12 @@ +#!/bin/sh +# find "/usr/share/applications" "$XDG_DATA_HOME/applications" -type f \ + # | dmenucmd -i + +find "/usr/share/applications" "$XDG_DATA_HOME/applications" -type f \ + | xargs grep "^Name=" \ + | sed -e "s/\(.*\):Name=\(.*\)/\2\t\1/g" - \ + | sort \ + | dmenucmd \ + | cut -f2 \ + | xargs basename \ + | xargs gtk-launch |