proof of concept for stevia (phosh-osk-stub) auto-changing shortcuts application-specifically
Diffstat (limited to 'pos-dyntercomms.sh')
-rwxr-xr-xpos-dyntercomms.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/pos-dyntercomms.sh b/pos-dyntercomms.sh
index 22e4a43..e9de0a3 100755
--- a/pos-dyntercomms.sh
+++ b/pos-dyntercomms.sh
@@ -8,7 +8,7 @@ setComms(){
activewmclass="$1"
activetitle="$2"
if ! test "$activewmclass"; then
- json="$(hyprctl -j -i 0 activewindow)"
+ json="$(hyprctl -j activewindow)"
activewmclass="$(printf "%s" "$json" | jq -r .class)"
activetitle="$(printf "%s" "$json" | jq -r .title)"
fi
@@ -137,7 +137,7 @@ case "$activewmclass" in
;;
*micro*)
#Micro
- c="'Prior','Next','<alt>Comma','<alt>Period','<ctrl>s','<ctrl>q','<ctrl>f','<ctrl>p','<ctrl>n','<ctrl>e','<ctrl>c','<ctrl>v','<ctrl>z','<ctrl>y'"
+ c="'Prior','Next','<alt>comma','<alt>period','<ctrl>s','<ctrl>q','<ctrl>f','<ctrl>p','<ctrl>n','<ctrl>e','<ctrl>c','<ctrl>v','<ctrl>z','<ctrl>y'"
CHOICES="
$icon_prv Previous Tab ^ 1 ^ sxmo_type -M Alt , -m Alt
$icon_nxt Next Tab ^ 1 ^ sxmo_type -M Alt . -m Alt
@@ -514,6 +514,9 @@ case "$activewmclass" in
c="'<ctrl>equal','<ctrl>minus','<ctrl><shift>F','<ctrl>f','<ctrl>r','<ctrl>d','<ctrl>l'"
WINNAME=Maps
;;
+ org.gnome.Loupe)
+ c="'Left','Right'"
+ ;;
*mepo*)
# Mepo
# The choices / hotkeys for the contextmenu are generated through mepo's