From 524daba5eb429cb9fcf3fda767b0abe23779c0c6 Mon Sep 17 00:00:00 2001 From: elwrcl Date: Wed, 30 Sep 2026 14:15:20 +0300 Subject: [PATCH] valw: install and bind for the test day --- flake.lock | 21 +++++++++++++++++++ flake.nix | 5 +++++ hosts/copland.ulu.nix | 1 + modules/home/home-valw.ulu.nix | 8 +++++++ .../home/niri/desktop-niri-keybinds.ulu.nix | 3 ++- 5 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 modules/home/home-valw.ulu.nix diff --git a/flake.lock b/flake.lock index f61a110..817dd88 100755 --- a/flake.lock +++ b/flake.lock @@ -616,6 +616,7 @@ "scx_soryu": "scx_soryu", "theme-assets": "theme-assets", "themes": "themes", + "valw": "valw", "zen-browser": "zen-browser" } }, @@ -709,6 +710,26 @@ "type": "github" } }, + "valw": { + "inputs": { + "flake-parts": [ + "flake-parts" + ], + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1790766906, + "narHash": "sha256-/AQlzYb1oa9Bsah5G2aRPzhvzkSURyTZMO2M9vGposs=", + "path": "/home/elars/Projects/valw", + "type": "path" + }, + "original": { + "path": "/home/elars/Projects/valw", + "type": "path" + } + }, "xwayland-satellite-stable": { "flake": false, "locked": { diff --git a/flake.nix b/flake.nix index a5db3d4..7141043 100644 --- a/flake.nix +++ b/flake.nix @@ -77,6 +77,11 @@ scx_soryu = { url = "github:elwrcl/scx_soryu"; }; + valw = { + url = "path:/home/elars/Projects/valw"; + inputs.nixpkgs.follows = "nixpkgs"; + inputs.flake-parts.follows = "flake-parts"; + }; }; outputs = diff --git a/hosts/copland.ulu.nix b/hosts/copland.ulu.nix index 154bc1a..a3b6bd2 100644 --- a/hosts/copland.ulu.nix +++ b/hosts/copland.ulu.nix @@ -86,6 +86,7 @@ in config.flake.homeModules.home-gdrive-rclone config.flake.homeModules.home-easyeffects config.flake.homeModules.home-nyi + config.flake.homeModules.home-valw config.flake.homeModules.home-discord config.flake.homeModules.home-noctalia config.flake.homeModules.desktop-niri-home diff --git a/modules/home/home-valw.ulu.nix b/modules/home/home-valw.ulu.nix new file mode 100644 index 0000000..81b1f0b --- /dev/null +++ b/modules/home/home-valw.ulu.nix @@ -0,0 +1,8 @@ +{ ... }: +{ + flake.homeModules.home-valw = + { inputs, pkgs, ... }: + { + home.packages = [ inputs.valw.packages.${pkgs.stdenv.hostPlatform.system}.default ]; + }; +} diff --git a/modules/home/niri/desktop-niri-keybinds.ulu.nix b/modules/home/niri/desktop-niri-keybinds.ulu.nix index 525a2f3..560a842 100644 --- a/modules/home/niri/desktop-niri-keybinds.ulu.nix +++ b/modules/home/niri/desktop-niri-keybinds.ulu.nix @@ -38,7 +38,8 @@ "Mod+Alt+V".action.spawn = [ "pavucontrol" ]; "Mod+Shift+V".action.spawn-sh = "noctalia msg panel-toggle clipboard"; "Mod+Shift+L".action.spawn-sh = "noctalia msg lock"; - "Mod+Shift+S".action.spawn-sh = "noctalia msg screenshot-region"; + "Mod+Shift+S".action.spawn = [ "valw" "region" ]; + "Print".action.spawn = [ "valw" "screen" ]; "Ctrl+Shift+Escape".action.spawn = [ "ghostty" "-e"