From ac73688a2baca9bc5f3c8340b97bf535f682ae41 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 15 Aug 2023 12:59:22 +0400 Subject: Add binds to spawn fuzzel and nautilus --- README.md | 2 ++ src/input.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 0cc864e7..2ddca347 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,8 @@ The general system is: if a hotkey switches somewhere, then adding CtrlModT | Spawn `alacritty` | +| ModD | Spawn `fuzzel` | +| ModN | Spawn `nautilus` | | ModQ | Close the focused window | | ModH or Mod | Focus the window to the left | | ModL or Mod | Focus the window to the right | diff --git a/src/input.rs b/src/input.rs index 028b7035..f035a4eb 100644 --- a/src/input.rs +++ b/src/input.rs @@ -74,6 +74,8 @@ fn action(comp_mod: CompositorMod, keysym: KeysymHandle, mods: ModifiersState) - match modified { KEY_E => Action::Quit, KEY_t => Action::Spawn("alacritty".to_owned()), + KEY_d => Action::Spawn("fuzzel".to_owned()), + KEY_n => Action::Spawn("nautilus".to_owned()), KEY_q => Action::CloseWindow, KEY_F => Action::ToggleFullscreen, KEY_h | KEY_Left if mods.ctrl => Action::MoveLeft, -- cgit