From b17bc19cfd216cc3683c11236b46d6c1a29dc686 Mon Sep 17 00:00:00 2001 From: NullBite Date: Mon, 22 Apr 2024 16:49:46 -0400 Subject: [PATCH] hyprland: edit config shortcut --- home/sessions/hyprland/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/home/sessions/hyprland/default.nix b/home/sessions/hyprland/default.nix index 320b4f1..54db4a9 100644 --- a/home/sessions/hyprland/default.nix +++ b/home/sessions/hyprland/default.nix @@ -298,7 +298,12 @@ in "$mod, mouse_up, workspace, e-1" # show this file (help) - ("$mod, slash, exec, ${terminal} -e ${pkgs.neovim}/bin/nvim '+set nomodifiable' '+noremap q :q' " + args.vars.self.outPath + "/home/hyprland.nix") + ("$mod, slash, exec, ${terminal} -e ${pkgs.neovim}/bin/nvim '+set nomodifiable' '+noremap q :q' " + + lib.escapeShellArg (args.vars.self.outPath + "/home/sessions/hyprland/default.nix")) + + # edit this file + ("$mod SHIFT, slash, exec, ${terminal} -e ${pkgs.neovim}/bin/nvim " + + lib.escapeShellArg (config.nixfiles.path + "/home/sessions/hyprland/default.nix")) ]; # repeat, ignore mods