From e62bd84328e640db19d1187d48dc4b00bae560f0 Mon Sep 17 00:00:00 2001 From: cy Date: Tue, 3 Dec 2024 19:05:18 -0500 Subject: [PATCH] generic remote --- hypr/hyprland.conf | 4 ++-- hypr/scripts/{anki-remote.sh => remote.sh} | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) rename hypr/scripts/{anki-remote.sh => remote.sh} (67%) diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 89ec2e1..ab2818f 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -199,8 +199,8 @@ bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 1%+ bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 1%- -# anki remote -$remote = ~/.dotfiles/hypr/scripts/anki-remote.sh +# remote +$remote = ~/.dotfiles/hypr/scripts/remote.sh bind = , mouse:276, exec, $remote "space" bind = , mouse:275, exec, $remote diff --git a/hypr/scripts/anki-remote.sh b/hypr/scripts/remote.sh similarity index 67% rename from hypr/scripts/anki-remote.sh rename to hypr/scripts/remote.sh index 6c96e3c..2c70b52 100755 --- a/hypr/scripts/anki-remote.sh +++ b/hypr/scripts/remote.sh @@ -8,4 +8,10 @@ if [ "$active_window" = "anki" ]; then else wtype "1" fi +else + if [ "$1" = "space" ]; then + wtype -M ctrl -k c + else + wtype -M ctrl -k v + fi fi