nixos-config/hypr/scripts/anki-remote.sh

12 lines
192 B
Bash
Raw Normal View History

2024-11-29 14:19:35 -05:00
#!/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
fi