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

Switch launcher to i3-dmenu-desktop

This commit is contained in:
2019-07-05 12:45:20 +03:00
parent 4587563062
commit 405bb65393
2 changed files with 564 additions and 11 deletions

View File

@@ -1,14 +1,4 @@
#!/bin/bash
oIFS=$IFS
IFS=:
data_dirs=($XDG_DATA_DIRS)
IFS=$oIFS
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
i3-dmenu-desktop --dmenu="fzf +m --history=\"${fzf_history}\""