added stuff
This commit is contained in:
parent
e8d9044d2b
commit
9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions
23
nyx/homes/notashelf/services/wayland/ags/bin/open_window
Executable file
23
nyx/homes/notashelf/services/wayland/ags/bin/open_window
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env bash
|
||||
# vim: syntax=bash
|
||||
|
||||
open_window() {
|
||||
local position="$1"
|
||||
local size="$2"
|
||||
local command="$3"
|
||||
|
||||
# Validate input
|
||||
if [[ -z "$position" || -z "$size" || -z "$command" ]]; then
|
||||
echo "Error: Position, size, and command are required." 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
hyprctl dispatch exec "[float; move ${position//,/ }; size ${size//x/ }] $command"
|
||||
}
|
||||
|
||||
if [[ $# -ne 3 ]]; then
|
||||
echo "Usage: $0 <position> <size> <command>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
open_window "$1" "$2" "$3"
|
Loading…
Add table
Add a link
Reference in a new issue