mirror of
https://github.com/artizirk/dotfiles.git
synced 2024-11-22 08:20:59 +02:00
sway launcher
This commit is contained in:
parent
b421f4d856
commit
c3bcf54b54
12
.bin/desktop_launcher.sh
Executable file
12
.bin/desktop_launcher.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user