aboutsummaryrefslogtreecommitdiffstats
path: root/sxhkd
diff options
context:
space:
mode:
Diffstat (limited to 'sxhkd')
-rw-r--r--sxhkd/default.nix11
1 files changed, 4 insertions, 7 deletions
diff --git a/sxhkd/default.nix b/sxhkd/default.nix
index 762c6b0..c481136 100644
--- a/sxhkd/default.nix
+++ b/sxhkd/default.nix
@@ -1,13 +1,8 @@
-{ pkgs, ... }:
+{ pkgs, config, ... }:
{
services.sxhkd.enable = true;
- xdg.configFile."sxhkd/scripts/show-keybindings.sh" = {
- source = ./scripts/show-keybindings.sh;
- executable = true;
- };
-
services.sxhkd.keybindings =
let
modKey = "alt";
@@ -16,7 +11,9 @@
${(createKeybinding
"s"
"Show keybindings.")}
- = "$HOME/.config/sxhkd/scripts/show-keybindings.sh";
+ = pkgs.writeShellScript
+ "show-keybindings.sh"
+ (builtins.readFile ./scripts/show-keybindings.sh);
${(createKeybinding
"r"