From 597bb886d926b4910c555efebe5c60a991bbd5fd Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 11 Jul 2021 23:05:29 +0100 Subject: (xboxdrv)~split config into general, typing and media Each config file is loaded in gamepad-daemon, general then typing then media. Each profile is pretty self explanatory, and allows for splitting of responsibilities. Config switches occur through the guide button. --- xboxdrv/.config/xboxdrv/config.xboxdrv | 55 --------------------------------- xboxdrv/.config/xboxdrv/general.xboxdrv | 51 ++++++++++++++++++++++++++++++ xboxdrv/.config/xboxdrv/media.xboxdrv | 47 ++++++++++++++++++++++++++++ xboxdrv/.config/xboxdrv/typing.xboxdrv | 44 ++++++++++++++++++++++++++ 4 files changed, 142 insertions(+), 55 deletions(-) delete mode 100644 xboxdrv/.config/xboxdrv/config.xboxdrv create mode 100644 xboxdrv/.config/xboxdrv/general.xboxdrv create mode 100644 xboxdrv/.config/xboxdrv/media.xboxdrv create mode 100644 xboxdrv/.config/xboxdrv/typing.xboxdrv (limited to 'xboxdrv/.config') diff --git a/xboxdrv/.config/xboxdrv/config.xboxdrv b/xboxdrv/.config/xboxdrv/config.xboxdrv deleted file mode 100644 index 445bb0d..0000000 --- a/xboxdrv/.config/xboxdrv/config.xboxdrv +++ /dev/null @@ -1,55 +0,0 @@ -# Mouse Emulation -# =============== -# -# This configuration file emulates a mouse. The left stick controls -# the cursor, the right stick becomes a horizontal and vertical scroll -# wheel, the dpad acts as cursor keys, the start and back buttons -# become forward and back buttons, the guide button escape and LB and -# RB become page up and page down and the face button act as mouse -# button. - -[xboxdrv] -ui-clear=true - -[ui-axismap] -x1^dead:4000 = REL_X:750:-1 -y1^dead:4000 = REL_Y:750:-1 - -# y2^dead:6000^invert = REL_WHEEL:5:100 -# x2^dead:6000 = REL_HWHEEL:5:100 -# trigger^invert=REL_WHEEL:5:100 - -y2^dead:6000^invert = rel-repeat:REL_WHEEL:1:50 -x2^dead:6000 = rel-repeat:REL_HWHEEL:1:50 -# trigger^invert = rel-repeat:REL_WHEEL:1:50 - -lt = KEY_VOLUMEDOWN:20 -rt = KEY_VOLUMEUP:20 - -[ui-buttonmap] -a = BTN_LEFT -b = BTN_RIGHT -x = BTN_MIDDLE -y = KEY_ENTER - -rb = KEY_PAGEDOWN -lb = KEY_PAGEUP - -tl = KEY_BACKSPACE -tr = KEY_SPACE - -[ui-buttonmap] -dl = KEY_LEFT -dr = KEY_RIGHT -du = KEY_UP -dd = KEY_DOWN - -# lt = KEY_VOLUMEDOWN -# rt = KEY_VOLUMEUP - -[ui-buttonmap] -start = KEY_FORWARD -back = KEY_BACK -guide = KEY_LEFTMETA+KEY_HOME - -# EOF # diff --git a/xboxdrv/.config/xboxdrv/general.xboxdrv b/xboxdrv/.config/xboxdrv/general.xboxdrv new file mode 100644 index 0000000..1574af0 --- /dev/null +++ b/xboxdrv/.config/xboxdrv/general.xboxdrv @@ -0,0 +1,51 @@ +# Mouse Emulation +# =============== +# +# This configuration file emulates a mouse. The left stick controls +# the cursor, the right stick becomes a horizontal and vertical scroll +# wheel, the dpad acts as cursor keys, the start and back buttons +# become forward and back buttons, the guide button escape and LB and +# RB become page up and page down and the face button act as mouse +# button. + +[xboxdrv] +ui-clear=true + +[ui-axismap] +x1^dead:4000 = REL_X:550:-1 +y1^dead:4000 = REL_Y:550:-1 + +# y2^dead:6000^invert = REL_WHEEL:5:100 +# x2^dead:6000 = REL_HWHEEL:5:100 +# trigger^invert=REL_WHEEL:5:100 + +y2^dead:6000^invert = rel-repeat:REL_WHEEL:1:50 +x2^dead:6000 = rel-repeat:REL_HWHEEL:1:50 +# trigger^invert = rel-repeat:REL_WHEEL:1:50 + +[ui-buttonmap] +a = KEY_SPACE +b = KEY_PAGEUP +x = KEY_LEFTMETA+KEY_B +y = KEY_ENTER + +lb = KEY_VOLUMEDOWN +rb = KEY_VOLUMEUP + +tl = BTN_MIDDLE +tr = KEY_LEFTCTRL+KEY_T + +lt = BTN_RIGHT +rt = BTN_LEFT + +[ui-buttonmap] +dl = KEY_LEFT +dr = KEY_RIGHT +du = KEY_UP +dd = KEY_DOWN + +[ui-buttonmap] +start = KEY_FORWARD +back = KEY_BACK + +# EOF # diff --git a/xboxdrv/.config/xboxdrv/media.xboxdrv b/xboxdrv/.config/xboxdrv/media.xboxdrv new file mode 100644 index 0000000..7f95710 --- /dev/null +++ b/xboxdrv/.config/xboxdrv/media.xboxdrv @@ -0,0 +1,47 @@ +# Media Emulation +# =============== + +[xboxdrv] +ui-clear=true + +[ui-axismap] +x1^dead:4000 = REL_X:550:-1 +y1^dead:4000 = REL_Y:550:-1 + +# y2^dead:6000^invert = REL_WHEEL:5:100 +# x2^dead:6000 = REL_HWHEEL:5:100 +# trigger^invert=REL_WHEEL:5:100 + +y2^dead:6000^invert = rel-repeat:REL_WHEEL:1:50 +x2^dead:6000 = rel-repeat:REL_HWHEEL:1:50 +# trigger^invert = rel-repeat:REL_WHEEL:1:50 + +[ui-buttonmap] +a = KEY_PAUSE +b = KEY_REWIND +x = KEY_SCREENLOCK +y = KEY_SLEEP + +lb = KEY_VOLUMEDOWN +rb = KEY_VOLUMEUP + +# lb+lb = KEY_LEFTCTRL+KEY_T +# rb+rb = KEY_LEFTCTRL+KEY_LEFTSHIFT+KEY_T + +tl = BTN_MIDDLE +tr = KEY_I+KEY_M+KEY_ESC + +lt = BTN_RIGHT +rt = BTN_LEFT + +[ui-buttonmap] +dl = KEY_PREVIOUSSONG +dr = KEY_NEXTSONG +du = KEY_VOLUMEUP +dd = KEY_VOLUMEDOWN + +[ui-buttonmap] +start = KEY_FORWARD +back = KEY_BACK + +# EOF # diff --git a/xboxdrv/.config/xboxdrv/typing.xboxdrv b/xboxdrv/.config/xboxdrv/typing.xboxdrv new file mode 100644 index 0000000..399f8cb --- /dev/null +++ b/xboxdrv/.config/xboxdrv/typing.xboxdrv @@ -0,0 +1,44 @@ +# Typing Emulation +# =============== + +[xboxdrv] +ui-clear=true + +[ui-axismap] +x1^dead:4000 = REL_X:550:-1 +y1^dead:4000 = REL_Y:550:-1 + +# y2^dead:6000^invert = REL_WHEEL:5:100 +# x2^dead:6000 = REL_HWHEEL:5:100 +# trigger^invert=REL_WHEEL:5:100 + +y2^dead:6000^invert = rel-repeat:REL_WHEEL:1:50 +x2^dead:6000 = rel-repeat:REL_HWHEEL:1:50 +# trigger^invert = rel-repeat:REL_WHEEL:1:50 + +[ui-buttonmap] +a = KEY_SPACE +b = KEY_PAGEUP +x = KEY_BACKSPACE +y = KEY_ENTER + +lb = KEY_LEFT +rb = KEY_RIGHT + +tl = KEY_PASTE +tr = KEY_COPY + +lt = BTN_RIGHT +rt = BTN_LEFT + +[ui-buttonmap] +dl = KEY_LEFT +dr = KEY_RIGHT +du = KEY_UP +dd = KEY_DOWN + +[ui-buttonmap] +start = KEY_LEFTMETA+KEY_HOME +back = KEY_BACK + +# EOF # -- cgit v1.2.3-13-gbd6f