From 34aa284462361531d3d581b6030b7cfca5dd890d Mon Sep 17 00:00:00 2001 From: Schweber <64630479+Schweber@users.noreply.github.com> Date: Wed, 18 Sep 2024 14:03:10 +0200 Subject: [PATCH] Expand Readme Remove --focus override --- README.md | 8 +++++--- ndrop | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6c9db57..c903137 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ndrop -This Bash script emulates the main features of [tdrop](https://github.com/noctuid/tdrop) in niri: +This Bash script emulates the main features of [tdrop](https://github.com/noctuid/tdrop) in [niri](https://github.com/YaLTeR/niri): - if the specified program is not running: launch it and bring it to the foreground. - if the specified program is already running on another workspace: bring it to the current workspace and focus it. @@ -64,9 +64,11 @@ binds { ## Troubleshooting -### Programs are not moved away from the starting workspace +### Programs are not moved away from the present workspace -Please see the example bindings. The has to be a workspace named `ndrop` for ndrop to work. +Please see the example bindings. There has to be a workspace named `ndrop` for ndrop to work and `ndrop` may not be your present workspace. + +So far, i've found no way to have named workspaces that are "out of the way" of the regular workspaces so the behaviour of `ndrop` is inferior to `hdrop`. ### Further instances of programs are started instead of hiding/unhiding a running instance diff --git a/ndrop b/ndrop index efe2608..8061fb1 100755 --- a/ndrop +++ b/ndrop @@ -195,7 +195,7 @@ fi WINDOW_ID=$(niri msg --json windows | jq -r ".[] | select(.app_id==\"$CLASS\") | .id") ### OVERRIDE ### -FOCUS=true +# FOCUS=true if [[ -n $(niri msg --json windows | jq -r ".[] | select(.app_id==\"$CLASS\" and .workspace_id!=\"$ACTIVE_WORKSPACE\")") ]]; then if [[ $FOCUS == false ]]; then