From 8ce1d2206677ff29f2e859e2e15d7fa66b92b3de Mon Sep 17 00:00:00 2001 From: tux Date: Mon, 11 May 2026 07:12:53 +0530 Subject: [PATCH] feat(desktop): add hyprland screenshot and screenrecord tools --- modules/hm/desktop/hyprland.nix | 23 +++++++++++++++++------ modules/hm/desktop/satty.nix | 19 +++++++++++++++++++ 2 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 modules/hm/desktop/satty.nix diff --git a/modules/hm/desktop/hyprland.nix b/modules/hm/desktop/hyprland.nix index a15b882..a0505d5 100644 --- a/modules/hm/desktop/hyprland.nix +++ b/modules/hm/desktop/hyprland.nix @@ -2,12 +2,6 @@ flake.modules.homeManager.desktop = { pkgs, ... }: { - - home.packages = with pkgs; [ - ags - awww - ]; - wayland.windowManager.hyprland = { enable = true; package = null; @@ -15,5 +9,22 @@ xwayland.enable = true; systemd.variables = [ "--all" ]; }; + + home.packages = with pkgs; [ + ags + awww + grim + slurp + hyprshot + wl-clipboard + wl-screenrec + (writeShellScriptBin "hypr-screenshot" '' + hyprshot -m region -r ppm - | satty --filename - + '') + + (writeShellScriptBin "hypr-screenrecord" '' + wl-screenrec -g "$(slurp)" + '') + ]; }; } diff --git a/modules/hm/desktop/satty.nix b/modules/hm/desktop/satty.nix new file mode 100644 index 0000000..3f7c05f --- /dev/null +++ b/modules/hm/desktop/satty.nix @@ -0,0 +1,19 @@ +{ + flake.modules.homeManager.desktop = { + programs.satty = { + enable = true; + settings = { + general = { + corner-roundness = 12; + initial-tool = "arrow"; + early-exit = true; + copy-command = "wl-copy"; + }; + + font = { + family = "JetBrainsMono NerdFont"; + }; + }; + }; + }; +}