~sircmpwn/email-test-drive

sxmo-utils: configs/sway: Add volume buttons of OnePlus 6 v1 PROPOSED

Hugo Martinet: 1
 configs/sway: Add volume buttons of OnePlus 6

 1 files changed, 22 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/email-test-drive/patches/28144/mbox | git am -3
Learn more about email & git

[PATCH sxmo-utils] configs/sway: Add volume buttons of OnePlus 6 Export this patch

---
 configs/sway/mobile_inputs_outputs | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/configs/sway/mobile_inputs_outputs b/configs/sway/mobile_inputs_outputs
index bc4596f..a34d90e 100644
--- a/configs/sway/mobile_inputs_outputs
+++ b/configs/sway/mobile_inputs_outputs
@@ -68,6 +68,14 @@ input 1:1:gpio-keys {
    xkb_file /usr/share/sxmo/sway/xkb_mobile_normal_buttons
}

### OnePlus 6 (oneplus-enchilada)
# Volume buttons
input 1:1:Volume_keys {
    repeat_delay 200
    repeat_rate 15
    xkb_file /usr/share/sxmo/sway/xkb_mobile_normal_buttons
}

exec sxmo_multikey.sh clear

### PinePhone (pine64-pinephone) / PineTab (pine64-pinetab)
@@ -136,6 +144,20 @@ bindsym --input-device=1:1:gpio-keys XF86AudioLowerVolume \
    "sxmo_inputhandler.sh voldown_one" \
    "sxmo_inputhandler.sh voldown_two" \
    "sxmo_inputhandler.sh voldown_three"
    
### OnePlus 6 (oneplus-enchilada)
# Multikey handling for volup button
bindsym --input-device=1:1:Volume_keys XF86AudioRaiseVolume \
    exec sxmo_multikey.sh volup \
    "sxmo_inputhandler.sh volup_one" \
    "sxmo_inputhandler.sh volup_two" \
    "sxmo_inputhandler.sh volup_three"
# Multikey handling for voldown button
bindsym --input-device=1:1:Volume_keys XF86AudioLowerVolume \
    exec sxmo_multikey.sh voldown \
    "sxmo_inputhandler.sh voldown_one" \
    "sxmo_inputhandler.sh voldown_two" \
    "sxmo_inputhandler.sh voldown_three"

mode "menu" {
    bindsym --input-device=1:1:1c21800.lradc XF86AudioMute exec nothing # just a placeholder for "menu" mode
-- 
2.34.1