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:
@@ -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}\""
|
||||
|
||||
Reference in New Issue
Block a user