1
0
Fork 0

Add falchion file

This commit is contained in:
Florian RICHER 2022-01-05 19:20:22 +01:00
parent 3e1430c6e2
commit 93fa7905c5
5 changed files with 42 additions and 7 deletions

View file

@ -1,10 +1,4 @@
## Installation
Required package
- ripgrep
- fd-find
- lldb-vscode (included with lldb package)
- lazygit
- rust-analyzer
- dartls (included with flutter)
See .env file and run install.sh on linux and install.ps1 to install on wsl

View file

@ -0,0 +1,6 @@
Section "InputClass"
Identifier "Disable Asus falchion sys control"
MatchIsKeyboard "on"
MatchProduct "ASUSTeK ROG FALCHION System Control"
Option "Ignore" "on"
EndSection

View file

@ -0,0 +1,3 @@
evdev:input:b*v0B05p193Ee0111*
KEYBOARD_KEY_10081=reserved
KEYBOARD_KEY_10082=reserved

View file

@ -0,0 +1,20 @@
# Author
Github: jnettlet
# Source Url:
99-asus-falchion.hwdb : [GITHUB](https://gist.github.com/jnettlet/afb20a048b8720f3b4eb8506d8b05643)
40-libinput.conf : [Ask Ubuntu](https://askubuntu.com/questions/1351203/how-do-i-stop-my-rog-falchion-wireless-keyboard-from-rebooting-ubuntu)
# Installation
## X11
Append the following config to /usr/share/X11/xorg.conf.d/40-libinput.conf or use this and add it in startup script see `example_script.sh`
```bash
xinput disable XX # XX being the device id related to 'ASUSTeK ROG FALCHION System Control'
```

View file

@ -0,0 +1,12 @@
#!/bin/bash
IDENTIFIER="ASUSTeK ROG FALCHION System Control"
LINE=$(xinput list | grep "$IDENTIFIER")
ID=$(echo ${LINE#*id=} | tr '\t' ' ' | cut -d ' ' -f1)
if [ -n "$ID" ]; then
xinput disable $ID
echo "Disabled xinput ID $ID ($IDENTIFIER)"
else
echo "No xinput ID for '$IDENTIFIER' found."
fi