generic remote

This commit is contained in:
cy 2024-12-03 19:05:18 -05:00
parent ec534d53d9
commit e62bd84328
2 changed files with 8 additions and 2 deletions

17
hypr/scripts/remote.sh Executable file
View file

@ -0,0 +1,17 @@
#!/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