From c3bcf54b54daed4237c20d8f9e0463b978edec97 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Mon, 12 Nov 2018 16:48:09 +0200 Subject: [PATCH] sway launcher --- .bin/desktop_launcher.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 .bin/desktop_launcher.sh diff --git a/.bin/desktop_launcher.sh b/.bin/desktop_launcher.sh new file mode 100755 index 0000000..b5bc475 --- /dev/null +++ b/.bin/desktop_launcher.sh @@ -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 +