disabled screenshot keybind since it doesnt work and also somehow grabs up

This commit is contained in:
Janis 2021-11-29 00:07:56 +01:00
parent 6404888941
commit c72356a087
2 changed files with 9 additions and 8 deletions

View file

@ -267,6 +267,7 @@ impl XLib {
} }
xlib::KeyPress | xlib::KeyRelease => { xlib::KeyPress | xlib::KeyRelease => {
let ev = unsafe { &event.key }; let ev = unsafe { &event.key };
let keycode = let keycode =
keysym_to_virtual_keycode(self.keyev_to_keysym(ev).get()); keysym_to_virtual_keycode(self.keyev_to_keysym(ev).get());
let state = if ev.type_ == xlib::KeyPress { let state = if ev.type_ == xlib::KeyPress {

View file

@ -190,15 +190,15 @@ where
}, },
)); ));
self.add_keybind(KeyBinding::new( // self.add_keybind(KeyBinding::new(
KeyBind::new(VirtualKeyCode::Print), // KeyBind::new(VirtualKeyCode::Print),
|wm, _| wm.spawn("screenshot.sh", &[]), // |wm, _| wm.spawn("screenshot.sh", &[]),
)); // ));
self.add_keybind(KeyBinding::new( // self.add_keybind(KeyBinding::new(
KeyBind::new(VirtualKeyCode::Print).with_mod(ModifierKey::Shift), // KeyBind::new(VirtualKeyCode::Print).with_mod(ModifierKey::Shift),
|wm, _| wm.spawn("screenshot.sh", &["-edit"]), // |wm, _| wm.spawn("screenshot.sh", &["-edit"]),
)); // ));
self.add_keybind(KeyBinding::new( self.add_keybind(KeyBinding::new(
KeyBind::new(VirtualKeyCode::M).with_mod(self.config.mod_key), KeyBind::new(VirtualKeyCode::M).with_mod(self.config.mod_key),