Add a bemenu control mode to access bemenu control with buttons

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
Stacy Harper 2021-08-29 20:39:46 +02:00 committed by Maarten van Gompel
parent d430cce8ff
commit f86cc46d03
6 changed files with 77 additions and 2 deletions

View file

@ -61,11 +61,13 @@ exec sxmo_idle.sh start
input 0:0:axp20x-pek {
repeat_delay 200
repeat_rate 15
xkb_file /usr/share/sxmo/sway/xkb_mobile_normal_buttons
}
# Volume buttons
input 1:1:1c21800.lradc {
repeat_delay 200
repeat_rate 15
xkb_file /usr/share/sxmo/sway/xkb_mobile_normal_buttons
}
exec sxmo_multikey.sh clear
@ -84,6 +86,10 @@ exec sxmo_multikey.sh clear
# Next workspace
bindsym --input-device=1:1:1c21800.lradc 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 # placeholder for "menu" mode
}
# Kill focused window
bindsym $mod+Shift+q kill
@ -252,3 +258,4 @@ exec sxmo_modemmonitortoggle.sh restart
exec sxmo_notificationmonitor.sh
exec mako
exec sxmo_hooks.sh lisgdstart
exec sxmo_menumode_toggler.sh

View file

@ -0,0 +1,22 @@
xkb_keymap {
xkb_keycodes "(unnamed)" {
minimum = 122;
maximum = 124;
<VOL-> = 122;
<VOL+> = 123;
<POWR> = 124;
alias <I122> = <VOL->;
alias <I123> = <VOL+>;
alias <I124> = <POWR>;
};
xkb_types "(unnamed)" {
};
xkb_compatibility "(unnamed)" {
};
xkb_symbols "(unnamed)" {
name[group1]="Mobile Convenient Buttons";
key <VOL-> { [ Down ] };
key <VOL+> { [ Up ] };
key <POWR> { [ Return ] };
};
};

View file

@ -0,0 +1,22 @@
xkb_keymap {
xkb_keycodes "(unnamed)" {
minimum = 122;
maximum = 124;
<VOL-> = 122;
<VOL+> = 123;
<POWR> = 124;
alias <I122> = <VOL->;
alias <I123> = <VOL+>;
alias <I124> = <POWR>;
};
xkb_types "(unnamed)" {
};
xkb_compatibility "(unnamed)" {
};
xkb_symbols "(unnamed)" {
name[group1]="Mobile Convenient Buttons";
key <VOL-> { [ XF86AudioLowerVolume ] };
key <VOL+> { [ XF86AudioRaiseVolume ] };
key <POWR> { [ XF86PowerOff ] };
};
};