nixos-config/hypr/scripts/remote.sh
2024-12-03 19:05:18 -05:00

17 lines
285 B
Bash
Executable file

#!/usr/bin/env bash
active_window=$(hyprctl activewindow -j | jq -r ".class")
if [ "$active_window" = "anki" ]; then
if [ "$1" = "space" ]; then
wtype " "
else
wtype "1"
fi
else
if [ "$1" = "space" ]; then
wtype -M ctrl -k c
else
wtype -M ctrl -k v
fi
fi