feat: resize target window to some defaults for now

This commit is contained in:
Julian Stiller 2025-04-13 17:21:16 +02:00
parent 0d0ee0853a
commit b4ee29873d

2
ndrop
View file

@ -239,6 +239,7 @@ if [[ -n ${WINDOW_ID} ]]; then
fi
niri msg action move-window-to-workspace --window-id "${WINDOW_ID}" "${ACTIVE_WORKSPACE}"
niri msg action focus-window --id "${WINDOW_ID}"
niri msg action set-window-width 90% && niri msg action set-window-height 70%
exit 0
fi
fi
@ -251,6 +252,7 @@ else
else
# shellcheck disable=SC2086 # when quoting COMMANDLINE the execution of the command fails
$COMMANDLINE || notify "ndrop: Error executing given command" "$COMMANDLINE"
niri msg action set-window-width 90% && niri msg action set-window-height 70%
fi
if $VERBOSE; then notify_low "ndrop: No running program matches class '$CLASS'." "Currently active classes are '$(niri msg --json windows | jq -r '.[] | .app_id' | sort | tr '\n' ' ')'. Executed '$COMMANDLINE' in case it was not running already."; fi
fi