From a3d2b478b96863f9764d9f47867860b131e3ae40 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Fri, 8 Mar 2024 20:37:06 -0800 Subject: add powermenu --- flake.lock | 16 ++++++++++++++++ flake.nix | 3 ++- home.nix | 3 ++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/flake.lock b/flake.lock index a308e91..9929199 100644 --- a/flake.lock +++ b/flake.lock @@ -110,10 +110,26 @@ "home-manager": "home-manager", "nixpkgs": "nixpkgs", "nur": "nur", + "scripts": "scripts", "sops-nix": "sops-nix", "wallpapers": "wallpapers" } }, + "scripts": { + "locked": { + "lastModified": 1709958643, + "narHash": "sha256-+NHuHYUTUkjIOaCZlH7gICDwRu2dMgJ6smmU9DvgLT0=", + "owner": "ret2pop", + "repo": "scripts", + "rev": "8e230dcb118d5a25629c1980a4764ae071bfb2bf", + "type": "github" + }, + "original": { + "owner": "ret2pop", + "repo": "scripts", + "type": "github" + } + }, "sops-nix": { "inputs": { "nixpkgs": "nixpkgs_2", diff --git a/flake.nix b/flake.nix index e8739d4..3e4fa78 100644 --- a/flake.nix +++ b/flake.nix @@ -14,9 +14,10 @@ }; wallpapers.url = "github:ret2pop/wallpapers"; sops-nix.url = "github:Mic92/sops-nix"; + scripts.url = "github:ret2pop/scripts"; }; - outputs = { self, nixpkgs, home-manager, nur, disko, wallpapers, sops-nix, ... }@attrs: { + outputs = { self, nixpkgs, home-manager, nur, disko, wallpapers, sops-nix, scripts, ... }@attrs: { nixosConfigurations = { continuity = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; diff --git a/home.nix b/home.nix index cad0839..36c2a01 100644 --- a/home.nix +++ b/home.nix @@ -1,4 +1,4 @@ -{ config, lib, nixpkgs, pkgs, wallpapers, ... }: +{ config, lib, nixpkgs, pkgs, wallpapers, scripts, ... }: { home.username = "preston"; home.homeDirectory = "/home/preston"; @@ -944,6 +944,7 @@ "$mod, E, exec, emacs" "$mod, V, exec, Discord" "$mod, D, exec, wofi --show run" + "$mod, P, exec, bash ${scripts}/powermenu.sh" "$mod, Q, killactive" "$mod SHIFT, H, movewindow, l" "$mod SHIFT, L, movewindow, r" -- cgit