From df557aa663fdf8bce38021cf1f72acc74ee73923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Mei=C3=9Felbach?= Date: Fri, 15 Nov 2019 20:25:04 +0100 Subject: [PATCH] Use exec setsid instead of swaymsg. Makes this script entirely independent from sway and thereby fixes #7 --- README.md | 3 ++- sway-launcher-desktop.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bc198a2..c4a39d7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ ![screenshot_2019-10-25-213740](https://user-images.githubusercontent.com/4208996/67599848-3a1f3680-f771-11e9-9715-da6e943ae14e.png) -This is a launcher menu made for the Sway window manager made with bash and the amazing [fzf](https://github.com/junegunn/fzf). +This is a TUI-based launcher menu made with bash and the amazing [fzf](https://github.com/junegunn/fzf). +Despite its name, it does not (read: no longer) depend on the Sway window manager in any way and can be used with just about any WM. ## Features - Lists and executes available binaries diff --git a/sway-launcher-desktop.sh b/sway-launcher-desktop.sh index eb70b0d..ff788ba 100755 --- a/sway-launcher-desktop.sh +++ b/sway-launcher-desktop.sh @@ -213,4 +213,4 @@ command) ;; esac -swaymsg exec "'$command'" +exec setsid /bin/sh -c "$command"