feat: add screen shot/record scripts

This commit is contained in:
tux
2026-02-04 18:08:01 +05:30
parent 7f18b96cdd
commit 2d023bdfba
2 changed files with 33 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
../../modules/home/desktop/awesome
../../modules/home/desktop/hyprland
../../modules/home/desktop/vicinae
../../modules/home/desktop/utils
../../modules/home/picom
../../modules/home/alacritty
../../modules/home/wezterm

View File

@@ -0,0 +1,32 @@
{pkgs, ...}: {
programs.satty = {
enable = true;
settings = {
general = {
corner-roundness = 12;
initial-tool = "arrow";
early-exit = true;
copy-command = "wl-copy";
};
font = {
family = "JetBrainsMono NerdFont";
};
};
};
home.packages = with pkgs; [
grim
slurp
hyprshot
wl-clipboard
wl-screenrec
(writeShellScriptBin "hypr-screenshot" ''
hyprshot -m region -r ppm - | satty --filename -
'')
(writeShellScriptBin "hypr-screenrecord" ''
wl-screenrec -g "$(slurp)"
'')
];
}