[refactor] Utilize cargo pkg authors

main
Shinyzenith 2 years ago
parent 7f03ae5d5f
commit a9d6966ad5
No known key found for this signature in database
GPG Key ID: A3DFCDC66E9E2950

@ -2,9 +2,9 @@
name = "Simple-Wayland-HotKey-Daemon"
version = "0.1.0"
edition = "2021"
authors = ["Shinyzenith <aakashsensharma@gmail.com>"]
[dependencies]
#async-std = "1.10.0"
evdev = "0.11.3"
glob = "0.3.0"
log = "0.4.0"

@ -0,0 +1,2 @@
rustup
make

@ -11,7 +11,7 @@ pub fn main() {
/* Clap builder for flag handling */
let args = App::new("swhkd")
.version(env!("CARGO_PKG_VERSION"))
.author("Shinyzenith <aakashsensharma@gmail.com>")
.author(env!("CARGO_PKG_AUTHORS"))
.about("Simple Wayland HotKey Daemon")
.arg(
arg!(-c --config <CONFIG_FILE_PATH>)
@ -106,11 +106,7 @@ pub fn check_keyboard(input_path: String) -> bool {
}
/* Check for the presence of enter key. */
if device
.unwrap()
.supported_keys()
.map_or(false, |keys| keys.contains(Key::KEY_ENTER))
{
if device.unwrap().supported_keys().map_or(false, |keys| keys.contains(Key::KEY_ENTER)) {
log::debug!("{} is a keyboard.", input_path);
return true;
} else {

Loading…
Cancel
Save