From d40bac06363c22127fc28386bea6df2e4de2e842 Mon Sep 17 00:00:00 2001 From: Vangamar Date: Thu, 28 Apr 2016 18:15:27 -0500 Subject: [PATCH] Updated shell script to launch g13d with a .bind file (markdown) --- shell-script-to-launch-g13d-with-a-.bind-file.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/shell-script-to-launch-g13d-with-a-.bind-file.md b/shell-script-to-launch-g13d-with-a-.bind-file.md index a0c267a..2c12e1e 100644 --- a/shell-script-to-launch-g13d-with-a-.bind-file.md +++ b/shell-script-to-launch-g13d-with-a-.bind-file.md @@ -31,9 +31,14 @@ If you disagree with this approach, delete the two **sudo chmod** lines, or neve exit 1 fi - # This /tmp config file is read in by g13d at startup - cat "$bindFile" > /tmp/g13-0 # Fixes no write access to usb device sudo chmod a+rw -R /dev/bus/usb/* sudo chmod a+rw /dev/uinput + + # works but prints messier output + #./g13d --config "$bindFile" + + # cleaner output than passing in via '--config' above + # This /tmp config file is read in by g13d at startup + cat "$bindFile" > /tmp/g13-0 ./g13d