generic remote
This commit is contained in:
parent
ec534d53d9
commit
e62bd84328
2 changed files with 8 additions and 2 deletions
17
hypr/scripts/remote.sh
Executable file
17
hypr/scripts/remote.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue