diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-08-15 12:59:22 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-08-15 12:59:22 +0400 |
| commit | ac73688a2baca9bc5f3c8340b97bf535f682ae41 (patch) | |
| tree | cd626f5aef4ca278a35cd3059d6e8994e5f07592 | |
| parent | 7ad1fd3be976df44973dbd61f3838902d38e5fed (diff) | |
| download | niri-ac73688a2baca9bc5f3c8340b97bf535f682ae41.tar.gz niri-ac73688a2baca9bc5f3c8340b97bf535f682ae41.tar.bz2 niri-ac73688a2baca9bc5f3c8340b97bf535f682ae41.zip | |
Add binds to spawn fuzzel and nautilus
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | src/input.rs | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -52,6 +52,8 @@ The general system is: if a hotkey switches somewhere, then adding <kbd>Ctrl</kb | Hotkey | Description | | ------ | ----------- | | <kbd>Mod</kbd><kbd>T</kbd> | Spawn `alacritty` | +| <kbd>Mod</kbd><kbd>D</kbd> | Spawn `fuzzel` | +| <kbd>Mod</kbd><kbd>N</kbd> | Spawn `nautilus` | | <kbd>Mod</kbd><kbd>Q</kbd> | Close the focused window | | <kbd>Mod</kbd><kbd>H</kbd> or <kbd>Mod</kbd><kbd>←</kbd> | Focus the window to the left | | <kbd>Mod</kbd><kbd>L</kbd> or <kbd>Mod</kbd><kbd>→</kbd> | 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, |
