From f4b51b51e710e0a40d606b17c56b2b1f18d74baa Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 8 Dec 2024 03:18:00 -0500 Subject: [PATCH] back and forward buttons on chromium --- sway/scripts/remote.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sway/scripts/remote.sh b/sway/scripts/remote.sh index a3bd00b..1cb5de1 100755 --- a/sway/scripts/remote.sh +++ b/sway/scripts/remote.sh @@ -6,11 +6,11 @@ if [ "$1" = "btn1" ]; then if [ "$active_window" = "anki" ]; then wtype " " elif [ "$active_window" = "foot" ]; then - wtype -M ctrl -M shift -k c - wtype -m ctrl + wtype -M ctrl -M shift -k c -m ctrl -m shift + elif [ "$active_window" = "chromium-browser" ]; then + wtype -M alt -P right -p right -m alt else - wtype -M ctrl -k c - wtype -m ctrl + wtype -M ctrl -k c -m ctrl fi else if [ "$active_window" = "anki" ]; then @@ -18,6 +18,8 @@ else elif [ "$active_window" = "foot" ]; then wtype -M ctrl -M shift -k v wtype -m ctrl + elif [ "$active_window" = "chromium-browser" ]; then + wtype -M alt -P left -p left -m alt else wtype -M ctrl -k v wtype -m ctrl