~proycon/sxmo-utils

076687209731e12dc772216f5d4613b13d6ce24e — Willow Barraco 2 months ago c95f3d9 master
Deactivate vol key custom repeat for menus

This value seems too fast and cause problems:

https://gitlab.com/postmarketOS/pmaports/-/issues/2282#note_1550179911

I'm in favor of droping this completly. I don't use this repeat behavior
cause it is not precise enough anyway. Waiting a bit longer to browser
large menus seems okay.

I moved this to the multikey_retrocompat cause this script still expect
those values.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
1 files changed, 7 insertions(+), 2 deletions(-)

M scripts/core/sxmo_swayinitconf.sh
M scripts/core/sxmo_swayinitconf.sh => scripts/core/sxmo_swayinitconf.sh +7 -2
@@ 19,6 19,13 @@ multikey_retrocompat() {
	swaymsg -- input "$pwr" repeat_delay 200
	swaymsg -- input "$pwr" repeat_rate 15

	if ! [ "$vols" = "none" ]; then
		for vol in $vols; do
			swaymsg -- input "$vol" repeat_delay 200
			swaymsg -- input "$vol" repeat_rate 15
		done
	fi

	swaymsg -- bindsym --locked --input-device="$pwr" XF86PowerOff exec sxmo_multikey.sh \
		powerbutton \
		powerbutton_one \


@@ 64,8 71,6 @@ swaymsg -- input "$pwr" xkb_file "$(xdg_data_path sxmo/xkb/xkb_mobile_normal_but

if ! [ "$vols" = "none" ]; then
	for vol in $vols; do
		swaymsg -- input "$vol" repeat_delay 200
		swaymsg -- input "$vol" repeat_rate 15
		swaymsg -- input "$vol" xkb_file "$(xdg_data_path sxmo/xkb/xkb_mobile_normal_buttons)"
	done
fi