From 21265ba643f1c12ad40e5195de8a3a97682adbde Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Tue, 24 Sep 2024 09:50:16 +0530 Subject: Too many changes to count. --- sxhkd/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'sxhkd') 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" -- cgit v1.2.3