diff options
| author | Moritz Meißelbach <arbelzapf@gmail.com> | 2019-11-15 20:25:04 +0100 |
|---|---|---|
| committer | Moritz Meißelbach <arbelzapf@gmail.com> | 2019-11-15 20:25:04 +0100 |
| commit | df557aa663fdf8bce38021cf1f72acc74ee73923 (patch) | |
| tree | bd67dfc4b73b614aaaf1bb85fdde47585fc5b40a | |
| parent | 83d25aeb49ae54b41341320a3f48c57b372c9a7f (diff) | |
| download | sway-launcher-desktop-df557aa663fdf8bce38021cf1f72acc74ee73923.tar.gz sway-launcher-desktop-df557aa663fdf8bce38021cf1f72acc74ee73923.zip | |
Use exec setsid instead of swaymsg. Makes this script entirely independent from sway and thereby fixes #7
| -rw-r--r-- | README.md | 3 | ||||
| -rwxr-xr-x | sway-launcher-desktop.sh | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -2,7 +2,8 @@  -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" |
