[update] Change git slug

main
Shinyzenith 2 years ago
parent 45b3b1b260
commit 978fa8195b
No known key found for this signature in database
GPG Key ID: A3DFCDC66E9E2950

@ -39,5 +39,5 @@ https://discord.gg/KKZRDYrRYW
## Contributors:
<a href="https://github.com/Shinyzenith/swhkd/graphs/contributors">
<img src="https://contrib.rocks/image?repo=Shinyzenith/swhkd" />
<img src="https://contrib.rocks/image?repo=waycrate/swhkd" />
</a>

@ -3,6 +3,8 @@ use evdev::{Device, Key};
use nix::unistd;
use std::{env, io::prelude::*, os::unix::net::UnixStream, path::Path, process::exit};
mod config;
pub fn main() {
let args = set_flags().get_matches();
env::set_var("RUST_LOG", "swhkd=warn");
@ -28,6 +30,26 @@ pub fn main() {
exit(1);
}
let hotkeys = match config::load(config_file_path) {
Err(e) => {
log::error!("Error: failed to parse config file.");
exit(1);
}
Ok(out) => out,
};
for hotkey in hotkeys {
// for keysym in hotkey.keysym{
// log::debug!("Keysym: {:#?}", keysym);
// }
log::debug!("Keysym: {:#?}", hotkey.keysym);
for modifier in hotkey.modifiers {
log::debug!("Modifier: {:#?}", modifier);
}
log::debug!("Command: {:#?}", hotkey.command);
}
log::trace!("Attempting to find all keyboard file descriptors.");
let mut keyboard_devices: Vec<Device> = Vec::new();
for (_, device) in evdev::enumerate().enumerate() {

@ -7,8 +7,6 @@ use std::{
};
use sysinfo::{ProcessExt, System, SystemExt};
mod config;
fn main() -> std::io::Result<()> {
env::set_var("RUST_LOG", "swhks=trace");
env_logger::init();

Loading…
Cancel
Save