anki remote and wallpaper

This commit is contained in:
Cy Pokhrel 2024-11-29 14:19:35 -05:00
parent 75ab33c639
commit 86efe3c022
No known key found for this signature in database
GPG key ID: 1200FBE36C2ADE2E
3 changed files with 21 additions and 1 deletions

11
hypr/scripts/anki-remote.sh Executable file
View file

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