handle foot edge case with copy and paste
This commit is contained in:
parent
29ca55a447
commit
ffc3ebaeb2
1 changed files with 9 additions and 5 deletions
|
@ -2,15 +2,19 @@
|
||||||
|
|
||||||
active_window=$(hyprctl activewindow -j | jq -r ".class")
|
active_window=$(hyprctl activewindow -j | jq -r ".class")
|
||||||
|
|
||||||
if [ "$active_window" = "anki" ]; then
|
|
||||||
if [ "$1" = "space" ]; then
|
if [ "$1" = "space" ]; then
|
||||||
|
if [ "$active_window" = "anki" ]; then
|
||||||
wtype " "
|
wtype " "
|
||||||
|
elif [ "$active_window" = "foot" ]; then
|
||||||
|
wtype -M ctrl -M shift -k c
|
||||||
else
|
else
|
||||||
wtype "1"
|
wtype -M ctrl -k c
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ "$1" = "space" ]; then
|
if [ "$active_window" = "anki" ]; then
|
||||||
wtype -M ctrl -k c
|
wtype "1"
|
||||||
|
elif [ "$active_window" = "foot" ]; then
|
||||||
|
wtype -M ctrl -M shift -k v
|
||||||
else
|
else
|
||||||
wtype -M ctrl -k v
|
wtype -M ctrl -k v
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue