From 0e1a5953fc13ae98dd157719bd30b159f7d0c653 Mon Sep 17 00:00:00 2001 From: NullBite Date: Mon, 22 Jan 2024 00:24:03 +0100 Subject: [PATCH] Add a help keybind to hyprland that opens the config --- home/hyprland.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home/hyprland.nix b/home/hyprland.nix index 69e25f2..ac06cdc 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, osConfig, ... }: +{ lib, pkgs, osConfig, ... }@args: let mkd = lib.mkDefault; terminal = "${pkgs.kitty}/bin/kitty"; @@ -187,6 +187,9 @@ in # Scroll through existing workspaces with mod + scroll "$mod, mouse_down, workspace, e+1" "$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") ]; bindm = [