feat: resize target window to some defaults for now
This commit is contained in:
parent
0d0ee0853a
commit
b4ee29873d
1 changed files with 2 additions and 0 deletions
2
ndrop
2
ndrop
|
@ -239,6 +239,7 @@ if [[ -n ${WINDOW_ID} ]]; then
|
||||||
fi
|
fi
|
||||||
niri msg action move-window-to-workspace --window-id "${WINDOW_ID}" "${ACTIVE_WORKSPACE}"
|
niri msg action move-window-to-workspace --window-id "${WINDOW_ID}" "${ACTIVE_WORKSPACE}"
|
||||||
niri msg action focus-window --id "${WINDOW_ID}"
|
niri msg action focus-window --id "${WINDOW_ID}"
|
||||||
|
niri msg action set-window-width 90% && niri msg action set-window-height 70%
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -251,6 +252,7 @@ else
|
||||||
else
|
else
|
||||||
# shellcheck disable=SC2086 # when quoting COMMANDLINE the execution of the command fails
|
# shellcheck disable=SC2086 # when quoting COMMANDLINE the execution of the command fails
|
||||||
$COMMANDLINE || notify "ndrop: Error executing given command" "$COMMANDLINE"
|
$COMMANDLINE || notify "ndrop: Error executing given command" "$COMMANDLINE"
|
||||||
|
niri msg action set-window-width 90% && niri msg action set-window-height 70%
|
||||||
fi
|
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
|
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
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue