mirror of
https://codeberg.org/icewind/shortcutd.git
synced 2026-06-03 09:14:07 +02:00
fix: 🐛 Fix input devices Glob pattern missing devices in
`/dev/by-path/`
This commit is contained in:
parent
6ab675c3d0
commit
4024ede364
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ impl ShortcutSignal {
|
|||
async fn main() -> Result<(), MainError> {
|
||||
tracing_subscriber::fmt::init();
|
||||
let devices =
|
||||
glob::glob("/dev/input/by-id/*-kbd")?.collect::<Result<Vec<PathBuf>, GlobError>>()?;
|
||||
glob::glob("/dev/input/by-*/*-kbd")?.collect::<Result<Vec<PathBuf>, GlobError>>()?;
|
||||
|
||||
let listener = ShortcutListener::new();
|
||||
let mut shortcut_events = pin!(listener.listen(&devices)?);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue