- Split keybindings and mousebindings into separate modules - Remove unwanted MacOS things
26 lines
640 B
Rust
26 lines
640 B
Rust
use penrose::x11rb::RustConn;
|
|
use penrose::{
|
|
Result,
|
|
core::bindings::parse_keybindings_with_xmodmap,
|
|
core::{Config, WindowManager},
|
|
};
|
|
use tracing_subscriber::{self, prelude::*};
|
|
|
|
mod keybindings;
|
|
mod mousebindings;
|
|
|
|
fn main() -> Result<()> {
|
|
tracing_subscriber::fmt()
|
|
.with_env_filter("info")
|
|
.finish()
|
|
.init();
|
|
|
|
let conn = RustConn::new()?;
|
|
let key_bindings = parse_keybindings_with_xmodmap(keybindings::raw_key_bindings())?;
|
|
let mouse_bindings = mousebindings::mouse_bindings();
|
|
|
|
let wm = WindowManager::new(Config::default(), key_bindings, mouse_bindings, conn)?;
|
|
|
|
wm.run()
|
|
}
|