nixdots/home/programs/graphical/wms/hyprland/packages/hyprland-screenshot/default.nix

25 lines
578 B
Nix
Raw Normal View History

2024-06-21 10:19:03 +00:00
# - `grim`: screenshot utility for wayland
# - `slurp`: to select an area
# - `hyprctl`: to read properties of current window
# - `wl-copy`: clipboard utility
# - `jq`: json utility to parse hyprctl output
# - `notify-send`: to show notifications
# - `swappy`: for editing the screenshots (only required for --edit)
{pkgs, ...}:
pkgs.writeShellApplication {
name = "hyprland-screenshot";
runtimeInputs = with pkgs; [
jq
grim
slurp
swappy
wl-clipboard
libnotify
hyprland
];
text = ''
${builtins.readFile ./hyprland-screenshot.sh}
'';
}