pinwheel: Add module for screenshots

This commit is contained in:
Alexander Heldt
2023-09-24 21:07:05 +02:00
parent 8a249741a6
commit fd4b574ee7
4 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
{ inputs, pkgs, system, ...}:
let
grimblast = inputs.hyprland-contrib.packages.${system}.grimblast;
area = "${pkgs.libnotify}/bin/notify-send 'ps: selected area' && ${grimblast}/bin/grimblast copy area";
screen = "${pkgs.libnotify}/bin/notify-send 'ps: selected screen' &&${grimblast}/bin/grimblast copy output";
in
{
home-manager.users.alex = {
home.packages = [ grimblast ];
wayland.windowManager.hyprland = {
settings = {
bind = [
"$mod, Print, exec, ${area}"
"$mod CTRL, Print, exec, ${screen}"
];
};
};
};
}