added stuff
This commit is contained in:
parent
937f28770d
commit
236b8c2a6b
907 changed files with 70990 additions and 0 deletions
21
nyx/homes/notashelf/services/wayland/ags/bin/move_window
Executable file
21
nyx/homes/notashelf/services/wayland/ags/bin/move_window
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env bash
|
||||
# vim: syntax=sh
|
||||
|
||||
move_window() {
|
||||
local position="$1"
|
||||
local size="$2"
|
||||
|
||||
if [[ -z "$position" || -z "$size" ]]; then
|
||||
echo "Error: Both position and size are required." 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
hyprctl --batch "dispatch moveactive exact ${position//,/ }; dispatch resizeactive exact ${size//x/ }"
|
||||
}
|
||||
|
||||
if [[ $# -ne 2 ]]; then
|
||||
echo "Usage: $0 <position> <size>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
move_window "$1" "$2"
|
Loading…
Add table
Add a link
Reference in a new issue