1
0
mirror of https://github.com/artizirk/dotfiles.git synced 2025-12-21 17:06:49 +02:00

Implement fixes by mikroskeem

This commit is contained in:
2018-11-19 17:10:32 +02:00
parent 6a17adc1ec
commit 402ede807f
2 changed files with 10 additions and 8 deletions

View File

@@ -3,10 +3,12 @@ oIFS=$IFS
IFS=:
data_dirs=($XDG_DATA_DIRS)
IFS=$oIFS
data_dirs+=("~/.local/share")
(
for folder in ${data_dirs[*]}; do
find ${folder%/}/applications -name \*.desktop;
done
) | xargs basename -s .desktop -a | fzf | xargs -r swaymsg -t command exec gtk-launch
data_dirs+=("${HOME}/.local/share")
fzf_history="${HOME}/.desktop_launcher_history"
for folder in ${data_dirs[*]}; do find "${folder%/}/applications" -name '*.desktop' -print0; done \
| xargs -0 basename -z -s .desktop -a \
| sort -r -z \
| fzf +m --read0 --history="${fzf_history}" \
| xargs -r swaymsg -t command exec gtk-launch