dotfiles/hyprland/scripts/transformbyname.sh

13 lines
202 B
Bash
Executable File

#!/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}"