13 lines
202 B
Bash
13 lines
202 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
NAME="$1"
|
||
|
TRANSFORM="$2"
|
||
|
|
||
|
TARGET="$(~/.config/hypr/scripts/displaybyname.sh $NAME)"
|
||
|
|
||
|
if [ -z "$TARGET" ]; then
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
hyprctl keyword monitor "${TARGET},transform,${TRANSFORM}"
|