Signed-off-by: hazardchem <hazardchem@disroot.org>
---
.../default_hooks/sxmo_hook_contextmenu.sh | 592 +++++++++---------
1 file changed, 296 insertions(+), 296 deletions(-)
diff --git a/configs/default_hooks/sxmo_hook_contextmenu.sh b/configs/default_hooks/sxmo_hook_contextmenu.sh
index 9c752755..334cb5f3 100755
--- a/configs/default_hooks/sxmo_hook_contextmenu.sh
@@ -127,17 +127,17 @@ case "$WMCLASS" in
*mpv*)
# MPV
CHOICES="
- $icon_pau Pause ^ 0 ^ sxmo_type -k Space
- $icon_fbw Seek ^ 1 ^ sxmo_type -k Left
- $icon_ffw Seek ^ 1 ^ sxmo_type -k Right
- $icon_aru App Volume Up ^ 1 ^ sxmo_type 0
- $icon_ard App Volume Down ^ 1 ^ sxmo_type 9
- $icon_aru Speed up ^ 1 ^ sxmo_type -k bracketRight
- $icon_ard Speed down ^ 1 ^ sxmo_type -k bracketLeft
- $icon_cam Screenshot ^ 1 ^ sxmo_type s
- $icon_itm Loopmark ^ 1 ^ sxmo_type l
- $icon_inf Info ^ 1 ^ sxmo_type i
- $icon_inf Seek Info ^ 1 ^ sxmo_type o
+ $icon_pau Pause ^ 0 ^ sxmo_type.sh -k Space
+ $icon_fbw Seek ^ 1 ^ sxmo_type.sh -k Left
+ $icon_ffw Seek ^ 1 ^ sxmo_type.sh -k Right
+ $icon_aru App Volume Up ^ 1 ^ sxmo_type.sh 0
+ $icon_ard App Volume Down ^ 1 ^ sxmo_type.sh 9
+ $icon_aru Speed up ^ 1 ^ sxmo_type.sh -k bracketRight
+ $icon_ard Speed down ^ 1 ^ sxmo_type.sh -k bracketLeft
+ $icon_cam Screenshot ^ 1 ^ sxmo_type.sh s
+ $icon_itm Loopmark ^ 1 ^ sxmo_type.sh l
+ $icon_inf Info ^ 1 ^ sxmo_type.sh i
+ $icon_inf Seek Info ^ 1 ^ sxmo_type.sh o
"
WINNAME=Mpv
;;
@@ -152,45 +152,45 @@ case "$WMCLASS" in
*feh*)
# Feh
CHOICES="
- $icon_arr Next ^ 1 ^ sxmo_type -k Space
- $icon_arl Previous ^ 1 ^ sxmo_type -k BackSpace
- $icon_zmi Zoom in ^ 1 ^ sxmo_type -k up
- $icon_zmo Zoom out ^ 1 ^ sxmo_type -k down
- $icon_exp Zoom to fit ^ 1 ^ sxmo_type -k slash
- $icon_shr Zoom to fill ^ 1 ^ sxmo_type '!'
- $icon_rol Rotate ^ 1 ^ sxmo_type -k less
- $icon_ror Rotate ^ 1 ^ sxmo_type -k greater
- $icon_a2y Flip ^ 1 ^ sxmo_type -k underscore
- $icon_a2x Mirror ^ 1 ^ sxmo_type -k bar
- $icon_inf Toggle filename ^ 1 ^ sxmo_type d
+ $icon_arr Next ^ 1 ^ sxmo_type.sh -k Space
+ $icon_arl Previous ^ 1 ^ sxmo_type.sh -k BackSpace
+ $icon_zmi Zoom in ^ 1 ^ sxmo_type.sh -k up
+ $icon_zmo Zoom out ^ 1 ^ sxmo_type.sh -k down
+ $icon_exp Zoom to fit ^ 1 ^ sxmo_type.sh -k slash
+ $icon_shr Zoom to fill ^ 1 ^ sxmo_type.sh '!'
+ $icon_rol Rotate ^ 1 ^ sxmo_type.sh -k less
+ $icon_ror Rotate ^ 1 ^ sxmo_type.sh -k greater
+ $icon_a2y Flip ^ 1 ^ sxmo_type.sh -k underscore
+ $icon_a2x Mirror ^ 1 ^ sxmo_type.sh -k bar
+ $icon_inf Toggle filename ^ 1 ^ sxmo_type.sh d
"
WINNAME=Feh
;;
*sxiv*)
# Sxiv
CHOICES="
- $icon_arr Next ^ 1 ^ sxmo_type -k Space
- $icon_arl Previous ^ 1 ^ sxmo_type -k BackSpace
- $icon_zmi Zoom in ^ 1 ^ sxmo_type -k equal
- $icon_zmo Zoom out ^ 1 ^ sxmo_type -k minus
- $icon_rol Rotate ^ 1 ^ sxmo_type -k less
- $icon_ror Rotate ^ 1 ^ sxmo_type -k greater
- $icon_a2y Flip ^ 1 ^ sxmo_type -k question
- $icon_a2x Mirror ^ 1 ^ sxmo_type -k bar
- $icon_grd Thumbnail ^ 0 ^ sxmo_type -k Return
+ $icon_arr Next ^ 1 ^ sxmo_type.sh -k Space
+ $icon_arl Previous ^ 1 ^ sxmo_type.sh -k BackSpace
+ $icon_zmi Zoom in ^ 1 ^ sxmo_type.sh -k equal
+ $icon_zmo Zoom out ^ 1 ^ sxmo_type.sh -k minus
+ $icon_rol Rotate ^ 1 ^ sxmo_type.sh -k less
+ $icon_ror Rotate ^ 1 ^ sxmo_type.sh -k greater
+ $icon_a2y Flip ^ 1 ^ sxmo_type.sh -k question
+ $icon_a2x Mirror ^ 1 ^ sxmo_type.sh -k bar
+ $icon_grd Thumbnail ^ 0 ^ sxmo_type.sh -k Return
"
WINNAME=Sxiv
;;
*imv*)
# imv
CHOICES="
- $icon_arr Next ^ 1 ^ sxmo_type -k Right
- $icon_arl Previous ^ 1 ^ sxmo_type -k Left
- $icon_zmi Zoom in ^ 1 ^ sxmo_type -k i
- $icon_zmo Zoom out ^ 1 ^ sxmo_type -k minus
- $icon_exp Zoom to fit ^ 1 ^ sxmo_type -k r
- $icon_ror Rotate ^ 1 ^ sxmo_type -M ctrl r
- $icon_inf Toggle filename ^ 1 ^ sxmo_type -k d
+ $icon_arr Next ^ 1 ^ sxmo_type.sh -k Right
+ $icon_arl Previous ^ 1 ^ sxmo_type.sh -k Left
+ $icon_zmi Zoom in ^ 1 ^ sxmo_type.sh -k i
+ $icon_zmo Zoom out ^ 1 ^ sxmo_type.sh -k minus
+ $icon_exp Zoom to fit ^ 1 ^ sxmo_type.sh -k r
+ $icon_ror Rotate ^ 1 ^ sxmo_type.sh -M ctrl r
+ $icon_inf Toggle filename ^ 1 ^ sxmo_type.sh -k d
"
WINNAME=Imv
;;
@@ -204,15 +204,15 @@ case "$WMCLASS" in
*sthotkeys*)
# St hotkeys
CHOICES="
- Send Ctrl-C ^ 0 ^ sxmo_type -M Ctrl -k c
- Send Ctrl-Z ^ 0 ^ sxmo_type -M Ctrl -k z
- Send Ctrl-L ^ 0 ^ sxmo_type -M Ctrl -k l
- Send Ctrl-D ^ 0 ^ sxmo_type -M Ctrl -k d
- Send Ctrl-A ^ 0 ^ sxmo_type -M Ctrl -k a
- Send Ctrl-B ^ 0 ^ sxmo_type -M Ctrl -k b
- Send ESC:w ^ 0 ^ sxmo_type -k Escape -s 300 -M Shift -k semicolon -m Shift -k w -k Return
- Send ESC:wq ^ 0 ^ sxmo_type -k Escape -s 300 -M Shift -k semicolon -m Shift -k w -k q -k Return
- Send ESC:wq! ^ 0 ^ sxmo_type -k Escape -s 300 -M Shift -k semicolon -m Shift -k q -k exclam -k Return
+ Send Ctrl-C ^ 0 ^ sxmo_type.sh -M Ctrl -k c
+ Send Ctrl-Z ^ 0 ^ sxmo_type.sh -M Ctrl -k z
+ Send Ctrl-L ^ 0 ^ sxmo_type.sh -M Ctrl -k l
+ Send Ctrl-D ^ 0 ^ sxmo_type.sh -M Ctrl -k d
+ Send Ctrl-A ^ 0 ^ sxmo_type.sh -M Ctrl -k a
+ Send Ctrl-B ^ 0 ^ sxmo_type.sh -M Ctrl -k b
+ Send ESC:w ^ 0 ^ sxmo_type.sh -k Escape -s 300 -M Shift -k semicolon -m Shift -k w -k Return
+ Send ESC:wq ^ 0 ^ sxmo_type.sh -k Escape -s 300 -M Shift -k semicolon -m Shift -k w -k q -k Return
+ Send ESC:wq! ^ 0 ^ sxmo_type.sh -k Escape -s 300 -M Shift -k semicolon -m Shift -k q -k exclam -k Return
"
WINNAME=St
;;
@@ -231,19 +231,19 @@ case "$WMCLASS" in
*" vi "*|*" vim "*|*" vis "*|*" nvim "*|*neovim*|*kakoune*)
#Vim in foot
CHOICES="
- $icon_cls Save and Quit ^ 0 ^ sxmo_type -k Escape -s 300 ':wq' -k Return
- $icon_sav Save ^ 0 ^ sxmo_type -k Escape -s 300 ':w' -k Return
- $icon_cls Quit without saving ^ 0 ^ sxmo_type -k Escape -s 300 ':q!' -k Return
- $icon_aru Scroll up ^ 1 ^ sxmo_type -M Ctrl u
- $icon_ard Scroll down ^ 1 ^ sxmo_type -M Ctrl d
- $icon_trm Command prompt ^ 0 ^ sxmo_type -k Escape -s 300 ':'
- $icon_pst Paste Selection ^ 0 ^ sxmo_type -k Escape -s 300 -k quotedbl -k asterisk -k p
- $icon_pst Paste Clipboard ^ 0 ^ sxmo_type -k Escape -s 300 -k quotedbl -k plus -k p
- $icon_fnd Search ^ 0 ^ sxmo_type -k Escape -s 300 /
- $icon_arr Next buffer ^ 1 ^ sxmo_type -k Escape -s 300 ':bn' -k Return
- $icon_arl Previous buffer ^ 1 ^ sxmo_type -k Escape -s 300 ':bp' -k Return
- $icon_zmi Zoom in ^ 1 ^ sxmo_type -k Prior
- $icon_zmo Zoom out ^ 1 ^ sxmo_type -k Next
+ $icon_cls Save and Quit ^ 0 ^ sxmo_type.sh -k Escape -s 300 ':wq' -k Return
+ $icon_sav Save ^ 0 ^ sxmo_type.sh -k Escape -s 300 ':w' -k Return
+ $icon_cls Quit without saving ^ 0 ^ sxmo_type.sh -k Escape -s 300 ':q!' -k Return
+ $icon_aru Scroll up ^ 1 ^ sxmo_type.sh -M Ctrl u
+ $icon_ard Scroll down ^ 1 ^ sxmo_type.sh -M Ctrl d
+ $icon_trm Command prompt ^ 0 ^ sxmo_type.sh -k Escape -s 300 ':'
+ $icon_pst Paste Selection ^ 0 ^ sxmo_type.sh -k Escape -s 300 -k quotedbl -k asterisk -k p
+ $icon_pst Paste Clipboard ^ 0 ^ sxmo_type.sh -k Escape -s 300 -k quotedbl -k plus -k p
+ $icon_fnd Search ^ 0 ^ sxmo_type.sh -k Escape -s 300 /
+ $icon_arr Next buffer ^ 1 ^ sxmo_type.sh -k Escape -s 300 ':bn' -k Return
+ $icon_arl Previous buffer ^ 1 ^ sxmo_type.sh -k Escape -s 300 ':bp' -k Return
+ $icon_zmi Zoom in ^ 1 ^ sxmo_type.sh -k Prior
+ $icon_zmo Zoom out ^ 1 ^ sxmo_type.sh -k Next
$icon_mnu Terminal menu ^ 0 ^ sxmo_appmenu.sh $WMCLASS
"
WINNAME=Vim
@@ -251,15 +251,15 @@ case "$WMCLASS" in
*nano*)
#Nano in foot
CHOICES="
- $icon_aru Scroll up ^ 1 ^ sxmo_type -k Prior
- $icon_ard Scroll down ^ 1 ^ sxmo_type -k Next
- $icon_sav Save ^ 0 ^ sxmo_type -M Ctrl o
- $icon_cls Quit ^ 0 ^ sxmo_type -M Ctrl x
- $icon_pst Paste ^ 0 ^ sxmo_type -M Ctrl u
- $icon_itm Type complete ^ 0 ^ sxmo_type -M Shift -M Ctrl u
- $icon_cpy Copy complete ^ 0 ^ sxmo_type -M Shift -M Ctrl i
- $icon_zmi Zoom in ^ 1 ^ sxmo_type -k Prior
- $icon_zmo Zoom out ^ 1 ^ sxmo_type -k Next
+ $icon_aru Scroll up ^ 1 ^ sxmo_type.sh -k Prior
+ $icon_ard Scroll down ^ 1 ^ sxmo_type.sh -k Next
+ $icon_sav Save ^ 0 ^ sxmo_type.sh -M Ctrl o
+ $icon_cls Quit ^ 0 ^ sxmo_type.sh -M Ctrl x
+ $icon_pst Paste ^ 0 ^ sxmo_type.sh -M Ctrl u
+ $icon_itm Type complete ^ 0 ^ sxmo_type.sh -M Shift -M Ctrl u
+ $icon_cpy Copy complete ^ 0 ^ sxmo_type.sh -M Shift -M Ctrl i
+ $icon_zmi Zoom in ^ 1 ^ sxmo_type.sh -k Prior
+ $icon_zmo Zoom out ^ 1 ^ sxmo_type.sh -k Next
$icon_mnu Terminal menu ^ 0 ^ sxmo_appmenu.sh $WMCLASS
"
WINNAME=Nano
@@ -267,18 +267,18 @@ case "$WMCLASS" in
*micro*)
#Micro
CHOICES="
- $icon_aru Scroll up ^ 1 ^ sxmo_type -k Prior
- $icon_ard Scroll down ^ 1 ^ sxmo_type -k Next
- $icon_prv Previous Tab ^ 1 ^ sxmo_type -M Alt , -m Alt
- $icon_nxt Next Tab ^ 1 ^ sxmo_type -M Alt . -m Alt
- $icon_sav Save ^ 1 ^ sxmo_type -M Ctrl s -m Ctrl
- $icon_cls Quit ^ 0 ^ sxmo_type -M Ctrl q -m Ctrl
- $icon_fnd Find ^ 0 ^ sxmo_type -M Ctrl f -m Ctrl
- $icon_fnd Find Previous ^ 1 ^ sxmo_type -M Ctrl p -m Ctrl
- $icon_fnd Find Next ^ 1 ^ sxmo_type -M Ctrl n -m Ctrl
- $icon_trm Command Bar ^ 0 ^ sxmo_type -M Ctrl e -m Ctrl
- $icon_cpy Copy ^ 0 ^ sxmo_type -M Ctrl c -m Ctrl
- $icon_pst Paste ^ 0 ^ sxmo_type -M Ctrl v -m Ctrl
+ $icon_aru Scroll up ^ 1 ^ sxmo_type.sh -k Prior
+ $icon_ard Scroll down ^ 1 ^ sxmo_type.sh -k Next
+ $icon_prv Previous Tab ^ 1 ^ sxmo_type.sh -M Alt , -m Alt
+ $icon_nxt Next Tab ^ 1 ^ sxmo_type.sh -M Alt . -m Alt
+ $icon_sav Save ^ 1 ^ sxmo_type.sh -M Ctrl s -m Ctrl
+ $icon_cls Quit ^ 0 ^ sxmo_type.sh -M Ctrl q -m Ctrl
+ $icon_fnd Find ^ 0 ^ sxmo_type.sh -M Ctrl f -m Ctrl
+ $icon_fnd Find Previous ^ 1 ^ sxmo_type.sh -M Ctrl p -m Ctrl
+ $icon_fnd Find Next ^ 1 ^ sxmo_type.sh -M Ctrl n -m Ctrl
+ $icon_trm Command Bar ^ 0 ^ sxmo_type.sh -M Ctrl e -m Ctrl
+ $icon_cpy Copy ^ 0 ^ sxmo_type.sh -M Ctrl c -m Ctrl
+ $icon_pst Paste ^ 0 ^ sxmo_type.sh -M Ctrl v -m Ctrl
$icon_mnu Terminal menu ^ 0 ^ sxmo_appmenu.sh $WMCLASS
"
WINNAME=Micro
@@ -286,18 +286,18 @@ case "$WMCLASS" in
*tuir*)
#tuir (reddit client) in foot
CHOICES="
- $icon_aru Previous ^ 1 ^ sxmo_type k
- $icon_ard Next ^ 1 ^ sxmo_type j
- $icon_aru Scroll up ^ 1 ^ sxmo_type -k Prior
- $icon_ard Scroll down ^ 1 ^ sxmo_type -k Next
- $icon_ret Open ^ 0 ^ sxmo_type o
- $icon_arl Back ^ 0 ^ sxmo_type h
- $icon_arr Comments ^ 0 ^ sxmo_type l
- $icon_edt Post ^ 0 ^ sxmo_type c
- $icon_rld Refresh ^ 0 ^ sxmo_type r
- $icon_cls Quit ^ 0 ^ sxmo_type q
- $icon_zmi Zoom in ^ 1 ^ sxmo_type -k Prior
- $icon_zmo Zoom out ^ 1 ^ sxmo_type -k Next
+ $icon_aru Previous ^ 1 ^ sxmo_type.sh k
+ $icon_ard Next ^ 1 ^ sxmo_type.sh j
+ $icon_aru Scroll up ^ 1 ^ sxmo_type.sh -k Prior
+ $icon_ard Scroll down ^ 1 ^ sxmo_type.sh -k Next
+ $icon_ret Open ^ 0 ^ sxmo_type.sh o
+ $icon_arl Back ^ 0 ^ sxmo_type.sh h
+ $icon_arr Comments ^ 0 ^ sxmo_type.sh l
+ $icon_edt Post ^ 0 ^ sxmo_type.sh c
+ $icon_rld Refresh ^ 0 ^ sxmo_type.sh r
+ $icon_cls Quit ^ 0 ^ sxmo_type.sh q
+ $icon_zmi Zoom in ^ 1 ^ sxmo_type.sh -k Prior
+ $icon_zmo Zoom out ^ 1 ^ sxmo_type.sh -k Next
$icon_mnu Terminal menu ^ 0 ^ sxmo_appmenu.sh $WMCLASS
"
WINNAME=tuir
@@ -305,16 +305,16 @@ case "$WMCLASS" in
*w3m*)
#w3m
CHOICES="
- $icon_arl Back ^ 1 ^ sxmo_type b
- $icon_glb Goto URL ^ 1 ^ sxmo_type u
- $icon_arr Next Link ^ 1 ^ sxmo_type -k Tab
- $icon_arl Previous Link ^ 1 ^ sxmo_type -M Shift -k Tab
- $icon_tab Open tab ^ 0 ^ sxmo_type t
- $icon_cls Close tab ^ 0 ^ sxmo_type -M Ctrl q
- $icon_itm Next tab ^ 1 ^ sxmo_type -k braceRight
- $icon_itm Previous tab ^ 1 ^ sxmo_type -k braceLeft
- $icon_zmi Zoom in ^ 1 ^ sxmo_type -k Prior
- $icon_zmo Zoom out ^ 1 ^ sxmo_type -k Next
+ $icon_arl Back ^ 1 ^ sxmo_type.sh b
+ $icon_glb Goto URL ^ 1 ^ sxmo_type.sh u
+ $icon_arr Next Link ^ 1 ^ sxmo_type.sh -k Tab
+ $icon_arl Previous Link ^ 1 ^ sxmo_type.sh -M Shift -k Tab
+ $icon_tab Open tab ^ 0 ^ sxmo_type.sh t
+ $icon_cls Close tab ^ 0 ^ sxmo_type.sh -M Ctrl q
+ $icon_itm Next tab ^ 1 ^ sxmo_type.sh -k braceRight
+ $icon_itm Previous tab ^ 1 ^ sxmo_type.sh -k braceLeft
+ $icon_zmi Zoom in ^ 1 ^ sxmo_type.sh -k Prior
+ $icon_zmo Zoom out ^ 1 ^ sxmo_type.sh -k Next
$icon_mnu Terminal menu ^ 0 ^ sxmo_appmenu.sh $WMCLASS
"
WINNAME=w3m
@@ -322,16 +322,16 @@ case "$WMCLASS" in
*ncmpcpp*)
#ncmpcpp
CHOICES="
- $icon_lst Playlist ^ 0 ^ sxmo_type 1
- $icon_fnd Browser ^ 0 ^ sxmo_type 2
- $icon_fnd Search ^ 0 ^ sxmo_type 3
- $icon_nxt Next track ^ 0 ^ sxmo_type -k greater
- $icon_prv Previous track ^ 0 ^ sxmo_type -k less
- $icon_pau Pause ^ 0 ^ sxmo_type p
- $icon_stp Stop ^ 0 ^ sxmo_type s
- $icon_rld Toggle repeat ^ 0 ^ sxmo_type r
- $icon_sfl Toggle random ^ 0 ^ sxmo_type z
- $icon_itm Toggle consume ^ 0 ^ sxmo_type R
+ $icon_lst Playlist ^ 0 ^ sxmo_type.sh 1
+ $icon_fnd Browser ^ 0 ^ sxmo_type.sh 2
+ $icon_fnd Search ^ 0 ^ sxmo_type.sh 3
+ $icon_nxt Next track ^ 0 ^ sxmo_type.sh -k greater
+ $icon_prv Previous track ^ 0 ^ sxmo_type.sh -k less
+ $icon_pau Pause ^ 0 ^ sxmo_type.sh p
+ $icon_stp Stop ^ 0 ^ sxmo_type.sh s
+ $icon_rld Toggle repeat ^ 0 ^ sxmo_type.sh r
+ $icon_sfl Toggle random ^ 0 ^ sxmo_type.sh z
+ $icon_itm Toggle consume ^ 0 ^ sxmo_type.sh R
$icon_mnu Terminal menu ^ 0 ^ sxmo_appmenu.sh $WMCLASS
"
WINNAME=ncmpcpp
@@ -339,25 +339,25 @@ case "$WMCLASS" in
*aerc*)
#aerc
CHOICES="
- $icon_pau Archive ^ 1 ^ sxmo_type ':archive flat' -k Return
- $icon_nxt Next Tab ^ 0 ^ sxmo_type ':next-tab' -k Return
- $icon_prv Previous Tab ^ 0 ^ sxmo_type ':prev-tab' -k Return
- $icon_cls Close Tab ^ 0 ^ sxmo_type ':close' -k Return
- $icon_itm Next Part ^ 1 ^ sxmo_type ':next-part' -k Return
- $icon_trm xdg-open Part ^ 0 ^ sxmo_type ':open' -k Return
+ $icon_pau Archive ^ 1 ^ sxmo_type.sh ':archive flat' -k Return
+ $icon_nxt Next Tab ^ 0 ^ sxmo_type.sh ':next-tab' -k Return
+ $icon_prv Previous Tab ^ 0 ^ sxmo_type.sh ':prev-tab' -k Return
+ $icon_cls Close Tab ^ 0 ^ sxmo_type.sh ':close' -k Return
+ $icon_itm Next Part ^ 1 ^ sxmo_type.sh ':next-part' -k Return
+ $icon_trm xdg-open Part ^ 0 ^ sxmo_type.sh ':open' -k Return
"
WINNAME=aerc
;;
*less*|*"git blame"*|*"git diff"*|*"git grep"*|*"git help"*|*"git log"*|*"git stash"*|*"git tag"*|*"git var"*)
#less
CHOICES="
- $icon_arr Page next ^ 1 ^ sxmo_type ':n' -k Return
- $icon_arl Page previous ^ 1 ^ sxmo_type ':p' -k Return
- $icon_cls Quit ^ 0 ^ sxmo_type q
- $icon_zmi Zoom in ^ 1 ^ sxmo_type -M Ctrl +
- $icon_zmo Zoom out ^ 1 ^ sxmo_type -M Ctrl -k Minus
- $icon_aru Scroll up ^ 1 ^ sxmo_type -k Prior
- $icon_ard Scroll down ^ 1 ^ sxmo_type -k Next
+ $icon_arr Page next ^ 1 ^ sxmo_type.sh ':n' -k Return
+ $icon_arl Page previous ^ 1 ^ sxmo_type.sh ':p' -k Return
+ $icon_cls Quit ^ 0 ^ sxmo_type.sh q
+ $icon_zmi Zoom in ^ 1 ^ sxmo_type.sh -M Ctrl +
+ $icon_zmo Zoom out ^ 1 ^ sxmo_type.sh -M Ctrl -k Minus
+ $icon_aru Scroll up ^ 1 ^ sxmo_type.sh -k Prior
+ $icon_ard Scroll down ^ 1 ^ sxmo_type.sh -k Next
$icon_mnu Terminal menu ^ 0 ^ sxmo_appmenu.sh $WMCLASS
"
WINNAME=less
@@ -373,24 +373,24 @@ case "$WMCLASS" in
;;
*senpai*)
CHOICES="
- $icon_aru Scroll up ^ 1 ^ sxmo_type -k Prior
- $icon_ard Scroll down ^ 1 ^ sxmo_type -k Next
- $icon_ac1 Previous Buffer ^ 1 ^ sxmo_type -M Alt -k Left
- $icon_ac4 Next Buffer ^ 1 ^ sxmo_type -M Alt -k Right
- $icon_lst Toggle Channels ^ 0 ^ sxmo_type -k F7
- $icon_usr Toggle Members ^ 0 ^ sxmo_type -k F8
+ $icon_aru Scroll up ^ 1 ^ sxmo_type.sh -k Prior
+ $icon_ard Scroll down ^ 1 ^ sxmo_type.sh -k Next
+ $icon_ac1 Previous Buffer ^ 1 ^ sxmo_type.sh -M Alt -k Left
+ $icon_ac4 Next Buffer ^ 1 ^ sxmo_type.sh -M Alt -k Right
+ $icon_lst Toggle Channels ^ 0 ^ sxmo_type.sh -k F7
+ $icon_usr Toggle Members ^ 0 ^ sxmo_type.sh -k F8
"
WINNAME=senpai
;;
*weechat*)
#weechat
CHOICES="
- $icon_msg Hotlist Next ^ 1 ^ sxmo_type -M Alt a
- $icon_arl History Previous ^ 1 ^ sxmo_type -M Alt -k Less
- $icon_arr History Next ^ 1 ^ sxmo_type -M Alt -k Greater
- $icon_trm Buffer ^ 0 ^ sxmo_type '/buffer '
- $icon_aru Scroll up ^ 1 ^ sxmo_type -k Prior
- $icon_ard Scroll down ^ 1 ^ sxmo_type -k Next
+ $icon_msg Hotlist Next ^ 1 ^ sxmo_type.sh -M Alt a
+ $icon_arl History Previous ^ 1 ^ sxmo_type.sh -M Alt -k Less
+ $icon_arr History Next ^ 1 ^ sxmo_type.sh -M Alt -k Greater
+ $icon_trm Buffer ^ 0 ^ sxmo_type.sh '/buffer '
+ $icon_aru Scroll up ^ 1 ^ sxmo_type.sh -k Prior
+ $icon_ard Scroll down ^ 1 ^ sxmo_type.sh -k Next
$icon_mnu Terminal menu ^ 0 ^ sxmo_appmenu.sh $WMCLASS
"
WINNAME=weechat
@@ -415,8 +415,8 @@ case "$WMCLASS" in
fi
)
- $icon_aru Scroll up ^ 1 ^ sxmo_type -M Shift -M Ctrl b
- $icon_ard Scroll down ^ 1 ^ sxmo_type -M Shift -M Ctrl f
+ $icon_aru Scroll up ^ 1 ^ sxmo_type.sh -M Shift -M Ctrl b
+ $icon_ard Scroll down ^ 1 ^ sxmo_type.sh -M Shift -M Ctrl f
$icon_mnu Terminal menu ^ 0 ^ sxmo_appmenu.sh $WMCLASS
"
WINNAME=phone
@@ -465,39 +465,39 @@ case "$WMCLASS" in
printf %s "$XPROPOUT" | grep -E '^_ST_SELMODE.+=' | cut -d= -f2 | tr -d ' '
)"
CHOICES="
- $icon_itm Type complete ^ 0 ^ sxmo_type -M Ctrl -M Shift -k u
- $icon_cpy Copy complete ^ 0 ^ sxmo_type -M Ctrl -M Shift -k i
+ $icon_itm Type complete ^ 0 ^ sxmo_type.sh -M Ctrl -M Shift -k u
+ $icon_cpy Copy complete ^ 0 ^ sxmo_type.sh -M Ctrl -M Shift -k i
$icon_itm Selmode $(
[ "$STSELMODEON" = 1 ] &&
printf %b "$icon_ton" ||
printf %b "$icon_tof"
- printf %b '^ 0 ^ sxmo_type -M Ctrl -M Shift -k s'
+ printf %b '^ 0 ^ sxmo_type.sh -M Ctrl -M Shift -k s'
)
- $([ "$STSELMODEON" = 1 ] && echo 'Copy selection ^ 0 ^ sxmo_type -M Ctrl -M Shift -k c')
- $icon_pst Paste ^ 0 ^ sxmo_type -M Ctrl -M Shift -k v
- $icon_zmi Zoom in ^ 1 ^ sxmo_type -M Ctrl -M Shift -k Prior
- $icon_zmo Zoom out ^ 1 ^ sxmo_type -M Ctrl -M Shift -k Next
- $icon_aru Scroll up ^ 1 ^ sxmo_type -M Ctrl -M Shift -k b
- $icon_ard Scroll down ^ 1 ^ sxmo_type -M Ctrl -M Shift -k f
- $icon_a2x Invert ^ 1 ^ sxmo_type -M Ctrl -M Shift -k x
+ $([ "$STSELMODEON" = 1 ] && echo 'Copy selection ^ 0 ^ sxmo_type.sh -M Ctrl -M Shift -k c')
+ $icon_pst Paste ^ 0 ^ sxmo_type.sh -M Ctrl -M Shift -k v
+ $icon_zmi Zoom in ^ 1 ^ sxmo_type.sh -M Ctrl -M Shift -k Prior
+ $icon_zmo Zoom out ^ 1 ^ sxmo_type.sh -M Ctrl -M Shift -k Next
+ $icon_aru Scroll up ^ 1 ^ sxmo_type.sh -M Ctrl -M Shift -k b
+ $icon_ard Scroll down ^ 1 ^ sxmo_type.sh -M Ctrl -M Shift -k f
+ $icon_a2x Invert ^ 1 ^ sxmo_type.sh -M Ctrl -M Shift -k x
$icon_kbd Hotkeys ^ 0 ^ sxmo_appmenu.sh sthotkeys
"
WINNAME=St
;;
*foot*)
CHOICES="
- $icon_cpy Copy ^ 0 ^ sxmo_type -M Shift -M Ctrl c
- $icon_pst Paste ^ 0 ^ sxmo_type -M Shift -M Ctrl v
- $icon_zmi Zoom in ^ 1 ^ sxmo_type -M Ctrl +
- $icon_zmo Zoom out ^ 1 ^ sxmo_type -M Ctrl -k Minus
- $icon_aru Scroll up ^ 1 ^ sxmo_type -M Shift -k Prior
- $icon_ard Scroll down ^ 1 ^ sxmo_type -M Shift -k Next
- $icon_lnk URL Mode ^ 0 ^ sxmo_type -M Shift -M Ctrl -k u
+ $icon_cpy Copy ^ 0 ^ sxmo_type.sh -M Shift -M Ctrl c
+ $icon_pst Paste ^ 0 ^ sxmo_type.sh -M Shift -M Ctrl v
+ $icon_zmi Zoom in ^ 1 ^ sxmo_type.sh -M Ctrl +
+ $icon_zmo Zoom out ^ 1 ^ sxmo_type.sh -M Ctrl -k Minus
+ $icon_aru Scroll up ^ 1 ^ sxmo_type.sh -M Shift -k Prior
+ $icon_ard Scroll down ^ 1 ^ sxmo_type.sh -M Shift -k Next
+ $icon_lnk URL Mode ^ 0 ^ sxmo_type.sh -M Shift -M Ctrl -k u
$icon_kbd Hotkeys ^ 0 ^ sxmo_appmenu.sh sthotkeys
- $icon_fnd Search Field ^ 0 ^ sxmo_type -M Ctrl -M Shift -k r
- $icon_aru Search Back ^ 0 ^ sxmo_type -M Ctrl -k r
- $icon_ard Search Forward ^ 0 ^ sxmo_type -M Ctrl -k s
- $icon_itm Search Extend ^ 0 ^ sxmo_type -M Ctrl -k w
+ $icon_fnd Search Field ^ 0 ^ sxmo_type.sh -M Ctrl -M Shift -k r
+ $icon_aru Search Back ^ 0 ^ sxmo_type.sh -M Ctrl -k r
+ $icon_ard Search Forward ^ 0 ^ sxmo_type.sh -M Ctrl -k s
+ $icon_itm Search Extend ^ 0 ^ sxmo_type.sh -M Ctrl -k w
"
WINNAME=Foot
;;
@@ -507,13 +507,13 @@ case "$WMCLASS" in
;;
*alacritty*)
CHOICES="
- $icon_cpy Copy ^ 0 ^ sxmo_type -M Shift -M Ctrl c
- $icon_pst Paste ^ 0 ^ sxmo_type -M Shift -M Ctrl v
- $icon_vim VI Mode ^ 0 ^ sxmo_type -M Ctrl -M Shift -k Space
- $icon_fnd Search Forward ^ 0 ^ sxmo_type -M Ctrl -M Shift -k f
- $icon_fnd Search Backward ^ 0 ^ sxmo_type -M Ctrl -M Shift -k b
- $icon_aru Search Previous ^ 0 ^ sxmo_type -k Enter
- $icon_ard Search Next ^ 0 ^ sxmo_type -M Shift -k Enter
+ $icon_cpy Copy ^ 0 ^ sxmo_type.sh -M Shift -M Ctrl c
+ $icon_pst Paste ^ 0 ^ sxmo_type.sh -M Shift -M Ctrl v
+ $icon_vim VI Mode ^ 0 ^ sxmo_type.sh -M Ctrl -M Shift -k Space
+ $icon_fnd Search Forward ^ 0 ^ sxmo_type.sh -M Ctrl -M Shift -k f
+ $icon_fnd Search Backward ^ 0 ^ sxmo_type.sh -M Ctrl -M Shift -k b
+ $icon_aru Search Previous ^ 0 ^ sxmo_type.sh -k Enter
+ $icon_ard Search Next ^ 0 ^ sxmo_type.sh -M Shift -k Enter
$icon_kbd Hotkeys ^ 0 ^ sxmo_appmenu.sh sthotkeys
"
WINNAME=Alacritty
@@ -529,9 +529,9 @@ case "$WMCLASS" in
printf %b "$icon_ton ^ 0 ^ sxmo_wm.sh inputevent touchscreen off" || \
printf %b "$icon_tof ^ 0 ^ sxmo_wm.sh inputevent touchscreen on"
)
- $icon_cfg Fullscreen ^ 0 ^ sxmo_type -k Ctrl -k Shift -k F
- $icon_cfg Menubar ^ 0 ^ sxmo_type -k Ctrl -k M
- $icon_cfg Toolbars ^ 0 ^ sxmo_type -k F7
+ $icon_cfg Fullscreen ^ 0 ^ sxmo_type.sh -k Ctrl -k Shift -k F
+ $icon_cfg Menubar ^ 0 ^ sxmo_type.sh -k Ctrl -k M
+ $icon_cfg Toolbars ^ 0 ^ sxmo_type.sh -k F7
$icon_cfg SXMO Bar ^ 0 ^ sxmo_wm.sh togglebar
"
WINNAME=Xournal
@@ -544,13 +544,13 @@ case "$WMCLASS" in
printf %b "$icon_ton ^ 0 ^ sxmo_wm.sh inputevent touchscreen off" || \
printf %b "$icon_tof ^ 0 ^ sxmo_wm.sh inputevent touchscreen on"
)
- $icon_flt Open ^ 0 ^ sxmo_type -k Ctrl -k o
- $icon_zmi Zoom ^ 1 ^ sxmo_type -k Ctrl -k plus
- $icon_zmo Zoom ^ 1 ^ sxmo_type -k Ctrl -k minus
- $icon_zmi Next Page ^ 1 ^ sxmo_type -k Next
- $icon_zmo Prev Page ^ 1 ^ sxmo_type -k Prior
- $icon_cfg Menubar ^ 0 ^ sxmo_type -k F10
- $icon_cfg Toolbars ^ 0 ^ sxmo_type -k F9
+ $icon_flt Open ^ 0 ^ sxmo_type.sh -k Ctrl -k o
+ $icon_zmi Zoom ^ 1 ^ sxmo_type.sh -k Ctrl -k plus
+ $icon_zmo Zoom ^ 1 ^ sxmo_type.sh -k Ctrl -k minus
+ $icon_zmi Next Page ^ 1 ^ sxmo_type.sh -k Next
+ $icon_zmo Prev Page ^ 1 ^ sxmo_type.sh -k Prior
+ $icon_cfg Menubar ^ 0 ^ sxmo_type.sh -k F10
+ $icon_cfg Toolbars ^ 0 ^ sxmo_type.sh -k F9
$icon_cfg SXMO Bar ^ 0 ^ sxmo_wm.sh togglebar
"
WINNAME=Xournal
@@ -558,15 +558,15 @@ case "$WMCLASS" in
*zathura*)
# Zathura
CHOICES="
- $icon_flt Open ^ 0 ^ sxmo_type -k o
- $icon_zmi Zoom ^ 1 ^ sxmo_type -k plus
- $icon_zmo Zoom ^ 1 ^ sxmo_type -k minus
- $icon_arl History ^ 1 ^ sxmo_type -M Ctrl -k o
- $icon_arr History ^ 1 ^ sxmo_type -M Ctrl -k i
- $icon_cfg Invert ^ 0 ^ sxmo_type -M Ctrl -k r
- $icon_flt Index ^ 0 ^ sxmo_type -k Tab
- $icon_cfg Fit ^ 0 ^ sxmo_type -k a
- $icon_cfg Width mode ^ 0 ^ sxmo_type -k s
+ $icon_flt Open ^ 0 ^ sxmo_type.sh -k o
+ $icon_zmi Zoom ^ 1 ^ sxmo_type.sh -k plus
+ $icon_zmo Zoom ^ 1 ^ sxmo_type.sh -k minus
+ $icon_arl History ^ 1 ^ sxmo_type.sh -M Ctrl -k o
+ $icon_arr History ^ 1 ^ sxmo_type.sh -M Ctrl -k i
+ $icon_cfg Invert ^ 0 ^ sxmo_type.sh -M Ctrl -k r
+ $icon_flt Index ^ 0 ^ sxmo_type.sh -k Tab
+ $icon_cfg Fit ^ 0 ^ sxmo_type.sh -k a
+ $icon_cfg Width mode ^ 0 ^ sxmo_type.sh -k s
"
WINNAME=Zathura
;;
@@ -575,29 +575,29 @@ case "$WMCLASS" in
CHOICES="
$icon_flt Pipe URL ^ 0 ^ sxmo_urlhandler.sh
$icon_lnk Enter URL ^ 0 ^ sxmo_type.sh -M Ctrl -k l
- $icon_zmi Zoom ^ 1 ^ sxmo_type -M Ctrl -k plus
- $icon_zmo Zoom ^ 1 ^ sxmo_type -M Ctrl -k minus
- $icon_arl History ^ 1 ^ sxmo_type -M Alt -k Left
- $icon_arr History ^ 1 ^ sxmo_type -M Alt -k Right
+ $icon_zmi Zoom ^ 1 ^ sxmo_type.sh -M Ctrl -k plus
+ $icon_zmo Zoom ^ 1 ^ sxmo_type.sh -M Ctrl -k minus
+ $icon_arl History ^ 1 ^ sxmo_type.sh -M Alt -k Left
+ $icon_arr History ^ 1 ^ sxmo_type.sh -M Alt -k Right
"
WINNAME=Netsurf
;;
*surf*)
# Surf
CHOICES="
- $icon_glb Navigate ^ 0 ^ sxmo_type -M Ctrl g
- $icon_lnk Link Menu ^ 0 ^ sxmo_type -M Ctrl d
+ $icon_glb Navigate ^ 0 ^ sxmo_type.sh -M Ctrl g
+ $icon_lnk Link Menu ^ 0 ^ sxmo_type.sh -M Ctrl d
$icon_flt Pipe URL ^ 0 ^ sxmo_urlhandler.sh
- $icon_fnd Search Page ^ 0 ^ sxmo_type -M Ctrl f
- $icon_fnd Find Next ^ 0 ^ sxmo_type -M Ctrl n
- $icon_zmi Zoom ^ 1 ^ sxmo_type -M Shift -M Ctrl k
- $icon_zmo Zoom ^ 1 ^ sxmo_type -M Shift -M Ctrl j
- $icon_aru Scroll ^ 1 ^ sxmo_type -M Shift -k Space
- $icon_ard Scroll ^ 1 ^ sxmo_type -k Space
- $icon_itm JS Toggle ^ 1 ^ sxmo_type -M Shift -M Ctrl s
- $icon_arl History ^ 1 ^ sxmo_type -M Ctrl h
- $icon_arr History ^ 1 ^ sxmo_type -M Ctrl l
- $icon_rld Refresh ^ 0 ^ sxmo_type -M Shift -M Ctrl r
+ $icon_fnd Search Page ^ 0 ^ sxmo_type.sh -M Ctrl f
+ $icon_fnd Find Next ^ 0 ^ sxmo_type.sh -M Ctrl n
+ $icon_zmi Zoom ^ 1 ^ sxmo_type.sh -M Shift -M Ctrl k
+ $icon_zmo Zoom ^ 1 ^ sxmo_type.sh -M Shift -M Ctrl j
+ $icon_aru Scroll ^ 1 ^ sxmo_type.sh -M Shift -k Space
+ $icon_ard Scroll ^ 1 ^ sxmo_type.sh -k Space
+ $icon_itm JS Toggle ^ 1 ^ sxmo_type.sh -M Shift -M Ctrl s
+ $icon_arl History ^ 1 ^ sxmo_type.sh -M Ctrl h
+ $icon_arr History ^ 1 ^ sxmo_type.sh -M Ctrl l
+ $icon_rld Refresh ^ 0 ^ sxmo_type.sh -M Shift -M Ctrl r
"
WINNAME=Surf
;;
@@ -605,16 +605,16 @@ case "$WMCLASS" in
# Falkon
CHOICES="
$icon_flt Pipe URL ^ 0 ^ sxmo_urlhandler.sh
- $icon_tab New Tab ^ 0 ^ sxmo_type -M Ctrl t
- $icon_win New Window ^ 0 ^ sxmo_type -M Ctrl n
- $icon_cls Close Tab ^ 0 ^ sxmo_type -M Ctrl w
- $icon_zmi Zoom ^ 1 ^ sxmo_type -M Ctrl -k plus
- $icon_zmo Zoom ^ 1 ^ sxmo_type -M Ctrl -k minus
- $icon_arl History ^ 1 ^ sxmo_type -M Alt -k Left
- $icon_arr History ^ 1 ^ sxmo_type -M Alt -k Right
- $icon_win Home ^ 0 ^ sxmo_type -M Alt -k Home
- $icon_zmo Full Screen ^ 0 ^ sxmo_type -k F11
- $icon_rld Refresh ^ 0 ^ sxmo_type -M Shift -M Ctrl r
+ $icon_tab New Tab ^ 0 ^ sxmo_type.sh -M Ctrl t
+ $icon_win New Window ^ 0 ^ sxmo_type.sh -M Ctrl n
+ $icon_cls Close Tab ^ 0 ^ sxmo_type.sh -M Ctrl w
+ $icon_zmi Zoom ^ 1 ^ sxmo_type.sh -M Ctrl -k plus
+ $icon_zmo Zoom ^ 1 ^ sxmo_type.sh -M Ctrl -k minus
+ $icon_arl History ^ 1 ^ sxmo_type.sh -M Alt -k Left
+ $icon_arr History ^ 1 ^ sxmo_type.sh -M Alt -k Right
+ $icon_win Home ^ 0 ^ sxmo_type.sh -M Alt -k Home
+ $icon_zmo Full Screen ^ 0 ^ sxmo_type.sh -k F11
+ $icon_rld Refresh ^ 0 ^ sxmo_type.sh -M Shift -M Ctrl r
"
WINNAME=Falkon
;;
@@ -622,44 +622,44 @@ case "$WMCLASS" in
# Firefox
CHOICES="
$icon_flt Pipe URL ^ 0 ^ sxmo_urlhandler.sh
- $icon_tab New Tab ^ 0 ^ sxmo_type -M Ctrl t
- $icon_win New Window ^ 0 ^ sxmo_type -M Ctrl n
- $icon_cls Close Tab ^ 0 ^ sxmo_type -M Ctrl w
- $icon_zmi Zoom ^ 1 ^ sxmo_type -M Ctrl -k plus
- $icon_zmo Zoom ^ 1 ^ sxmo_type -M Ctrl -k minus
- $icon_arl History ^ 1 ^ sxmo_type -M Alt -k Left
- $icon_arr History ^ 1 ^ sxmo_type -M Alt -k Right
- $icon_win Home ^ 0 ^ sxmo_type -M Alt -k Home
- $icon_zmo Full Screen ^ 0 ^ sxmo_type -k F11
- $icon_rld Refresh ^ 0 ^ sxmo_type -M Shift -M Ctrl r
+ $icon_tab New Tab ^ 0 ^ sxmo_type.sh -M Ctrl t
+ $icon_win New Window ^ 0 ^ sxmo_type.sh -M Ctrl n
+ $icon_cls Close Tab ^ 0 ^ sxmo_type.sh -M Ctrl w
+ $icon_zmi Zoom ^ 1 ^ sxmo_type.sh -M Ctrl -k plus
+ $icon_zmo Zoom ^ 1 ^ sxmo_type.sh -M Ctrl -k minus
+ $icon_arl History ^ 1 ^ sxmo_type.sh -M Alt -k Left
+ $icon_arr History ^ 1 ^ sxmo_type.sh -M Alt -k Right
+ $icon_win Home ^ 0 ^ sxmo_type.sh -M Alt -k Home
+ $icon_zmo Full Screen ^ 0 ^ sxmo_type.sh -k F11
+ $icon_rld Refresh ^ 0 ^ sxmo_type.sh -M Shift -M Ctrl r
"
WINNAME=Firefox
;;
*krita*)
# Krita
CHOICES="
- $icon_fnd Open ^ 0 ^ sxmo_type -M Ctrl o
- $icon_sav Save ^ 0 ^ sxmo_type -M Ctrl s
- $icon_pst Paste ^ 0 ^ sxmo_type -M Ctrl v
- $icon_del Delete ^ 0 ^ sxmo_type -k Delete
- $icon_win Select ^ 0 ^ sxmo_type -M Ctrl r
- $icon_modem_disabled Deselect ^ 0 ^ sxmo_type -M Ctrl -M Shift a
- $icon_wn2 Crop ^ 0 ^ sxmo_type c
- $icon_flt Fill ^ 0 ^ sxmo_type f
- $icon_modem_connected Gradient ^ 0 ^ sxmo_type g
- $icon_dof HSV Adjust ^ 0 ^ sxmo_type -M Ctrl u
- $icon_cls Close Image ^ 0 ^ sxmo_type -M Ctrl w
+ $icon_fnd Open ^ 0 ^ sxmo_type.sh -M Ctrl o
+ $icon_sav Save ^ 0 ^ sxmo_type.sh -M Ctrl s
+ $icon_pst Paste ^ 0 ^ sxmo_type.sh -M Ctrl v
+ $icon_del Delete ^ 0 ^ sxmo_type.sh -k Delete
+ $icon_win Select ^ 0 ^ sxmo_type.sh -M Ctrl r
+ $icon_modem_disabled Deselect ^ 0 ^ sxmo_type.sh -M Ctrl -M Shift a
+ $icon_wn2 Crop ^ 0 ^ sxmo_type.sh c
+ $icon_flt Fill ^ 0 ^ sxmo_type.sh f
+ $icon_modem_connected Gradient ^ 0 ^ sxmo_type.sh g
+ $icon_dof HSV Adjust ^ 0 ^ sxmo_type.sh -M Ctrl u
+ $icon_cls Close Image ^ 0 ^ sxmo_type.sh -M Ctrl w
"
WINNAME=Krita
;;
*vimb*)
CHOICES="
- $icon_glb Navigate ^ 0 ^ sxmo_type -k Escape o
- $icon_zmi Zoom ^ 1 ^ sxmo_type -k Escape zi
- $icon_zmo Zoom ^ 1 ^ sxmo_type -k Escape zo
- $icon_arl History ^ 1 ^ sxmo_type -M Ctrl o
- $icon_arr History ^ 1 ^ sxmo_type -M Ctrl i
- $icon_rld Refresh ^ 0 ^ sxmo_type -k Escape r
+ $icon_glb Navigate ^ 0 ^ sxmo_type.sh -k Escape o
+ $icon_zmi Zoom ^ 1 ^ sxmo_type.sh -k Escape zi
+ $icon_zmo Zoom ^ 1 ^ sxmo_type.sh -k Escape zo
+ $icon_arl History ^ 1 ^ sxmo_type.sh -M Ctrl o
+ $icon_arr History ^ 1 ^ sxmo_type.sh -M Ctrl i
+ $icon_rld Refresh ^ 0 ^ sxmo_type.sh -k Escape r
"
WINNAME=Vimb
;;
@@ -667,45 +667,45 @@ case "$WMCLASS" in
# Geopard
CHOICES="
$icon_flt Pipe URL ^ 0 ^ sxmo_urlhandler.sh
- $icon_pls New Tab ^ 0 ^ sxmo_type -M Ctrl t
- $icon_cls Close Tab ^ 0 ^ sxmo_type -M Ctrl w
- $icon_bok Open Bookmarks ^ 0 ^ sxmo_type -M Ctrl b
- $icon_pls Add Bookmark ^ 0 ^ sxmo_type -M Ctrl d
+ $icon_pls New Tab ^ 0 ^ sxmo_type.sh -M Ctrl t
+ $icon_cls Close Tab ^ 0 ^ sxmo_type.sh -M Ctrl w
+ $icon_bok Open Bookmarks ^ 0 ^ sxmo_type.sh -M Ctrl b
+ $icon_pls Add Bookmark ^ 0 ^ sxmo_type.sh -M Ctrl d
$icon_edt Edit Bookmarks ^ 0 ^ sxmo_terminal.sh $EDITOR ~/.local/share/geopard/bookmarks.gemini
- $icon_zmi Increase Font Size ^ 1 ^ sxmo_type -M Ctrl -k plus
- $icon_zmo Decrease Font Size ^ 1 ^ sxmo_type -M Ctrl -k minus
- $icon_arl History Back ^ 1 ^ sxmo_type -M Alt -k Left
- $icon_arr History Forward ^ 1 ^ sxmo_type -M Alt -k Right
- $icon_fnd URL Bar ^ 0 ^ sxmo_type -k F6
- $icon_rld Refresh ^ 0 ^ sxmo_type -k F6 -k Return
+ $icon_zmi Increase Font Size ^ 1 ^ sxmo_type.sh -M Ctrl -k plus
+ $icon_zmo Decrease Font Size ^ 1 ^ sxmo_type.sh -M Ctrl -k minus
+ $icon_arl History Back ^ 1 ^ sxmo_type.sh -M Alt -k Left
+ $icon_arr History Forward ^ 1 ^ sxmo_type.sh -M Alt -k Right
+ $icon_fnd URL Bar ^ 0 ^ sxmo_type.sh -k F6
+ $icon_rld Refresh ^ 0 ^ sxmo_type.sh -k F6 -k Return
"
WINNAME=Geopard
;;
*lagrange*)
# Lagrange
CHOICES="
- $icon_mnu Toggle sidebar ^ 0 ^ sxmo_type -M Shift -M Ctrl p
- $icon_bok Open bookmarks ^ 0 ^ sxmo_type -M Ctrl l && sxmo_type 'about:bookmarks' -k Return
- $icon_pls Add bookmark ^ 0 ^ sxmo_type -M Ctrl d
- $icon_zmi Zoom ^ 1 ^ sxmo_type -M Ctrl -k equal
- $icon_zmo Zoom ^ 1 ^ sxmo_type -M Ctrl -k minus
- $icon_aru Parent dir ^ 1 ^ sxmo_type -M Alt -k Up
- $icon_arl History ^ 1 ^ sxmo_type -M Alt -k Left
- $icon_arr History ^ 1 ^ sxmo_type -M Alt -k Right
- $icon_rld Refresh ^ 0 ^ sxmo_type -M Ctrl r
+ $icon_mnu Toggle sidebar ^ 0 ^ sxmo_type.sh -M Shift -M Ctrl p
+ $icon_bok Open bookmarks ^ 0 ^ sxmo_type.sh -M Ctrl l && sxmo_type.sh 'about:bookmarks' -k Return
+ $icon_pls Add bookmark ^ 0 ^ sxmo_type.sh -M Ctrl d
+ $icon_zmi Zoom ^ 1 ^ sxmo_type.sh -M Ctrl -k equal
+ $icon_zmo Zoom ^ 1 ^ sxmo_type.sh -M Ctrl -k minus
+ $icon_aru Parent dir ^ 1 ^ sxmo_type.sh -M Alt -k Up
+ $icon_arl History ^ 1 ^ sxmo_type.sh -M Alt -k Left
+ $icon_arr History ^ 1 ^ sxmo_type.sh -M Alt -k Right
+ $icon_rld Refresh ^ 0 ^ sxmo_type.sh -M Ctrl r
"
WINNAME=Lagrange
;;
org.gnome.maps)
CHOICES="
$icon_gps Toggle Geoclue ^ 0 ^ superctl status geoclue-agent |grep started >/dev/null && superctl stop geoclue-agent || superctl start geoclue-agent
- $icon_zmi Zoom in ^ 1 ^ sxmo_type -M ctrl =
- $icon_zmo Zoom out ^ 1 ^ sxmo_type -M ctrl -k minus
- $icon_fnd Explore POI ^ 0 ^ sxmo_type -M ctrl -M Shift F
- $icon_fnd Search ^ 0 ^ sxmo_type -M ctrl f
- $icon_lst Show last results ^ 0 ^ sxmo_type -M ctrl r
- $icon_map Toggle route planner ^ 0 ^ sxmo_type -M ctrl d
- $icon_gps Show current location ^ 0 ^ sxmo_type -M ctrl l
+ $icon_zmi Zoom in ^ 1 ^ sxmo_type.sh -M ctrl =
+ $icon_zmo Zoom out ^ 1 ^ sxmo_type.sh -M ctrl -k minus
+ $icon_fnd Explore POI ^ 0 ^ sxmo_type.sh -M ctrl -M Shift F
+ $icon_fnd Search ^ 0 ^ sxmo_type.sh -M ctrl f
+ $icon_lst Show last results ^ 0 ^ sxmo_type.sh -M ctrl r
+ $icon_map Toggle route planner ^ 0 ^ sxmo_type.sh -M ctrl d
+ $icon_gps Show current location ^ 0 ^ sxmo_type.sh -M ctrl l
"
WINNAME=Maps
;;
@@ -720,29 +720,29 @@ case "$WMCLASS" in
*foxtrot*)
# Foxtrot GPS
CHOICES="
- $icon_zmi Zoom ^ 1 ^ sxmo_type i
- $icon_zmo Zoom ^ 1 ^ sxmo_type o
- $icon_itm Panel Toggle ^ 1 ^ sxmo_type m
- $icon_itm GPSD Toggle ^ 1 ^ sxmo_type a
+ $icon_zmi Zoom ^ 1 ^ sxmo_type.sh i
+ $icon_zmo Zoom ^ 1 ^ sxmo_type.sh o
+ $icon_itm Panel Toggle ^ 1 ^ sxmo_type.sh m
+ $icon_itm GPSD Toggle ^ 1 ^ sxmo_type.sh a
"
WINNAME=Maps
;;
*badwolf*)
# Badwolf Browser
CHOICES="
- $icon_tab New Tab ^ 0 ^ sxmo_type -M Ctrl -k t
- $icon_cls Close Tab ^ 0 ^ sxmo_type -M Alt -k d
- $icon_fnd Reset Zoom ^ 0 ^ sxmo_type -M Ctrl -k 0
- $icon_arr History ^ 1 ^ sxmo_type -M Ctrl ]
- $icon_arl History ^ 1 ^ sxmo_type -M Ctrl [
- $icon_arr Next Tab ^ 1 ^ sxmo_type -M Alt -k Right
- $icon_arl Previous Tab ^ 1 ^ sxmo_type -M Alt -k Left
- $icon_rld Refresh ^ 0 ^ sxmo_type -M Shift -M Ctrl -k r
- $icon_fnd Search ^ 0 ^ sxmo_type -M Shift -M Ctrl -k f
- $icon_arr Next (Search) ^ 0 ^ sxmo_type -M Shift -M Ctrl -k g
- $icon_arl Previous (Search) ^ 0 ^ sxmo_type -M Shift -M Ctrl -M Shift -k g
- $icon_flt URL Bar ^ 0 ^ sxmo_type -M Shift -M Ctrl l
- $icon_fnd Open Web Inspector ^ 0 ^ sxmo_type -k F12
+ $icon_tab New Tab ^ 0 ^ sxmo_type.sh -M Ctrl -k t
+ $icon_cls Close Tab ^ 0 ^ sxmo_type.sh -M Alt -k d
+ $icon_fnd Reset Zoom ^ 0 ^ sxmo_type.sh -M Ctrl -k 0
+ $icon_arr History ^ 1 ^ sxmo_type.sh -M Ctrl ]
+ $icon_arl History ^ 1 ^ sxmo_type.sh -M Ctrl [
+ $icon_arr Next Tab ^ 1 ^ sxmo_type.sh -M Alt -k Right
+ $icon_arl Previous Tab ^ 1 ^ sxmo_type.sh -M Alt -k Left
+ $icon_rld Refresh ^ 0 ^ sxmo_type.sh -M Shift -M Ctrl -k r
+ $icon_fnd Search ^ 0 ^ sxmo_type.sh -M Shift -M Ctrl -k f
+ $icon_arr Next (Search) ^ 0 ^ sxmo_type.sh -M Shift -M Ctrl -k g
+ $icon_arl Previous (Search) ^ 0 ^ sxmo_type.sh -M Shift -M Ctrl -M Shift -k g
+ $icon_flt URL Bar ^ 0 ^ sxmo_type.sh -M Shift -M Ctrl l
+ $icon_fnd Open Web Inspector ^ 0 ^ sxmo_type.sh -k F12
"
WINNAME=Badwolf
;;
@@ -762,19 +762,19 @@ case "$WMCLASS" in
*mupdf*)
# Mupdf
CHOICES="
- $icon_nxt Next Page ^ 0 ^ sxmo_type -k Space
- $icon_prv Previous Page ^ 0 ^ sxmo_type -k b
- $icon_chk Mark Page ^ 0 ^ sxmo_type -k m
- $icon_ret Pop To Last Mark ^ 0 ^ sxmo_type -k t
- $icon_zmi Zoom In ^ 1 ^ sxmo_type -k +
- $icon_zmo Zoom Out ^ 1 ^ sxmo_type -k -
- $icon_fnd Fit Width ^ 0 ^ sxmo_type -k W
- $icon_fnd Fit Height ^ 0 ^ sxmo_type -k H
- $icon_fnd Zoom To Fit ^ 0 ^ sxmo_type -k Z
- $icon_fnd Reset Zoom ^ 0 ^ sxmo_type -k z
- $icon_rol Rotate Counterclockwise ^ 0 ^ sxmo_type -k [
- $icon_ror Rotate Clockwise ^ 0 ^ sxmo_type -k ]
- $icon_fnd Search ^ 0 ^ sxmo_type -k /
+ $icon_nxt Next Page ^ 0 ^ sxmo_type.sh -k Space
+ $icon_prv Previous Page ^ 0 ^ sxmo_type.sh -k b
+ $icon_chk Mark Page ^ 0 ^ sxmo_type.sh -k m
+ $icon_ret Pop To Last Mark ^ 0 ^ sxmo_type.sh -k t
+ $icon_zmi Zoom In ^ 1 ^ sxmo_type.sh -k +
+ $icon_zmo Zoom Out ^ 1 ^ sxmo_type.sh -k -
+ $icon_fnd Fit Width ^ 0 ^ sxmo_type.sh -k W
+ $icon_fnd Fit Height ^ 0 ^ sxmo_type.sh -k H
+ $icon_fnd Zoom To Fit ^ 0 ^ sxmo_type.sh -k Z
+ $icon_fnd Reset Zoom ^ 0 ^ sxmo_type.sh -k z
+ $icon_rol Rotate Counterclockwise ^ 0 ^ sxmo_type.sh -k [
+ $icon_ror Rotate Clockwise ^ 0 ^ sxmo_type.sh -k ]
+ $icon_fnd Search ^ 0 ^ sxmo_type.sh -k /
"
WINNAME=Mupdf
;;
--
2.45.2
On Wed, Dec 18, 2024 at 04:03:06PM +1000, hazardchem wrote:
> > sxmo_type() {
> > → sxmo_type.sh -s 200 "$@" # dunno why this is necessary but it sucks without
> > }
> >
> > Someone remember why? Does it works if we drop this?
IIRC sometimes applications will skip key presses if they come in to fast.
> Looks like that is an alias for sleep in xdotool and add a delay in wtype.
>
> Could we look at instead including that into sxmo_type.sh, using a delay between
> each command if needed.
I'm not sure that's a good idea, I suspect it'll make some of the
gestures that use wtype noticeably more sluggish. Search sxmo_type in
sxmo_hook_inputhandler.sh for examples.
What is the point of this patch exactly? Is it to get everything using
the same call to make the hook easier to understand? If you send another
version, make sure to include the answer to this in the commit
description to justify it, since it's not just a typo / bugfix.
Inlining the sxmo_type function (so adding -s 200 everywhere it's used)
might be a better options, I'm not sure if there would be downsides to
that too.
Looking a little closer a bunch of the places where this is used that it
might not have an effect. It might be worth looking into these, and of
course document your findings in the commit message of the next patch.
Marking as needs revision for now, although it might turn out to be the
right thing to do after some research.
- Aren
On Sun, Dec 29, 2024 at 11:20:15AM -0500, Aren wrote:
> On Wed, Dec 18, 2024 at 04:03:06PM +1000, hazardchem wrote:
> I'm not sure that's a good idea, I suspect it'll make some of the
> gestures that use wtype noticeably more sluggish. Search sxmo_type in
> sxmo_hook_inputhandler.sh for examples.
> What is the point of this patch exactly? Is it to get everything using
> the same call to make the hook easier to understand? If you send another
> version, make sure to include the answer to this in the commit
> description to justify it, since it's not just a typo / bugfix.
I thought initally it was just a typo that was noted on irc.
> Inlining the sxmo_type function (so adding -s 200 everywhere it's used)
> might be a better options, I'm not sure if there would be downsides to
> that too.
>
> Looking a little closer a bunch of the places where this is used that it
> might not have an effect. It might be worth looking into these, and of
> course document your findings in the commit message of the next patch.
Would a better approach if we still need this to change the name instead.
I would think sxmo_type_with_delay would be clearer or adding a note at the top
stating this is an alias found in sxmo_appmenu.sh.
> Marking as needs revision for now, although it might turn out to be the
> right thing to do after some research.
Sounds good.