dotfiles/hyprland/scripts/transformbyname.sh

13 lines
202 B
Bash
Raw Permalink Normal View History

2023-08-18 19:38:09 +02:00
#!/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}"