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"; + }; + }; + }; + }; +}