feat(desktop): add hyprland screenshot and screenrecord tools

This commit is contained in:
tux
2026-05-11 07:12:53 +05:30
parent 5f895aeee0
commit 8ce1d22066
2 changed files with 36 additions and 6 deletions

View File

@@ -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)"
'')
];
};
}