summaryrefslogtreecommitdiff
path: root/home/config/i3/keybindings.nix
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-09-20 21:10:16 +0200
committerQuentin Aristote <quentin@aristote.fr>2021-09-20 21:10:16 +0200
commit59f56c4b8f47a0e8733289e8de31ea82bf956f11 (patch)
tree8e9a17c55837ac714dc043eb8009c8549b4cb625 /home/config/i3/keybindings.nix
parentc30ec2ed23b1815a113988270ac6d5516c3ba5ff (diff)
add keybinding to restart emacs
Diffstat (limited to 'home/config/i3/keybindings.nix')
-rw-r--r--home/config/i3/keybindings.nix6
1 files changed, 5 insertions, 1 deletions
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
+ { }));
};
}