From 59f56c4b8f47a0e8733289e8de31ea82bf956f11 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Mon, 20 Sep 2021 21:10:16 +0200 Subject: add keybinding to restart emacs --- home/config/i3/keybindings.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'home/config/i3') diff --git a/home/config/i3/keybindings.nix b/home/config/i3/keybindings.nix index b35f666..b35dc8a 100644 --- a/home/config/i3/keybindings.nix +++ b/home/config/i3/keybindings.nix @@ -44,6 +44,10 @@ in { "${modifier}+d" = ''exec "${rofi} -modi drun,run,window -show drun"''; "${modifier}+Shift+d" = "exec ${rofi} -show window"; } else - { })); + { }) // (if config.services.emacs.client.enable then { + "${modifier}+Control+r" = + "exec systemctl --user restart emacs.service"; + } else + { })); }; } -- cgit v1.2.3