-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] add argument to ignore devices
--ignore-device takes the same format as --device and ignores the devices listed, separated by semicolon. If a device is listed both in the --device argument and --ignore-device argument, it is not added.
- Loading branch information
1 parent
34b9619
commit 593d28d
Showing
6 changed files
with
134 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug executable 'swhkd'", | ||
"cargo": { | ||
"args": [ | ||
"build", | ||
"--bin=swhkd", | ||
"--package=Simple-Wayland-HotKey-Daemon" | ||
], | ||
"filter": { | ||
"name": "swhkd", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug unit tests in executable 'swhkd'", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--bin=swhkd", | ||
"--package=Simple-Wayland-HotKey-Daemon" | ||
], | ||
"filter": { | ||
"name": "swhkd", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug executable 'swhks'", | ||
"cargo": { | ||
"args": [ | ||
"build", | ||
"--bin=swhks", | ||
"--package=swhks" | ||
], | ||
"filter": { | ||
"name": "swhks", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug unit tests in executable 'swhks'", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--bin=swhks", | ||
"--package=swhks" | ||
], | ||
"filter": { | ||
"name": "swhks", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Notes | ||
|
||
Uinput docs: <https://kernel.org/doc/html/v4.12/input/uinput.html> | ||
Libevdev: <https://www.freedesktop.org/software/libevdev/doc/latest/> | ||
|
||
Command to run swhkd | ||
```sh | ||
pkexec swhkd -d -D 'AT Translated Set 2 keyboard' | ||
``` | ||
|
||
Language guide: https://github.com/baskerville/sxhkd/blob/master/doc/sxhkd.1.asciidoc | ||
|
||
Keyboard recognition: https://unix.stackexchange.com/questions/523108/getting-type-of-evdev-device | ||
|
||
Parser discussion: <https://github.com/waycrate/swhkd/issues/168> | ||
|
||
Run with minimal config | ||
```sh | ||
pkexec swhkd -d -c $PWD/test.conf | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
set -xe | ||
|
||
make | ||
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alt + ctrl + q | ||
qalculate-gtk |