From 93fa7905c5b7cffc372eacefdad8d44310dd0584 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Wed, 5 Jan 2022 19:20:22 +0100 Subject: [PATCH] Add falchion file --- README.md | 8 +------- useful_scripts/falchion/40-libinput.conf | 6 ++++++ useful_scripts/falchion/99-asus-falchion.hwdb | 3 +++ useful_scripts/falchion/README.md | 20 +++++++++++++++++++ useful_scripts/falchion/example_script.sh | 12 +++++++++++ 5 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 useful_scripts/falchion/40-libinput.conf create mode 100644 useful_scripts/falchion/99-asus-falchion.hwdb create mode 100644 useful_scripts/falchion/README.md create mode 100644 useful_scripts/falchion/example_script.sh diff --git a/README.md b/README.md index b5b35b5..1795593 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,4 @@ ## Installation -Required package -- ripgrep -- fd-find -- lldb-vscode (included with lldb package) -- lazygit -- rust-analyzer -- dartls (included with flutter) \ No newline at end of file +See .env file and run install.sh on linux and install.ps1 to install on wsl \ No newline at end of file diff --git a/useful_scripts/falchion/40-libinput.conf b/useful_scripts/falchion/40-libinput.conf new file mode 100644 index 0000000..cfdcc49 --- /dev/null +++ b/useful_scripts/falchion/40-libinput.conf @@ -0,0 +1,6 @@ +Section "InputClass" + Identifier "Disable Asus falchion sys control" + MatchIsKeyboard "on" + MatchProduct "ASUSTeK ROG FALCHION System Control" + Option "Ignore" "on" +EndSection \ No newline at end of file diff --git a/useful_scripts/falchion/99-asus-falchion.hwdb b/useful_scripts/falchion/99-asus-falchion.hwdb new file mode 100644 index 0000000..a0eeb09 --- /dev/null +++ b/useful_scripts/falchion/99-asus-falchion.hwdb @@ -0,0 +1,3 @@ +evdev:input:b*v0B05p193Ee0111* + KEYBOARD_KEY_10081=reserved + KEYBOARD_KEY_10082=reserved \ No newline at end of file diff --git a/useful_scripts/falchion/README.md b/useful_scripts/falchion/README.md new file mode 100644 index 0000000..aaf4a23 --- /dev/null +++ b/useful_scripts/falchion/README.md @@ -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' +``` \ No newline at end of file diff --git a/useful_scripts/falchion/example_script.sh b/useful_scripts/falchion/example_script.sh new file mode 100644 index 0000000..cc30eca --- /dev/null +++ b/useful_scripts/falchion/example_script.sh @@ -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 \ No newline at end of file