pinwheel: Add module for screenshots
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
./modules/swaylock
|
||||
./modules/dunst
|
||||
./modules/bemenu
|
||||
./modules/screenshot
|
||||
./modules/fzf
|
||||
./modules/syncthing
|
||||
./modules/firefox
|
||||
|
||||
20
hosts/pinwheel/modules/screenshot/default.nix
Normal file
20
hosts/pinwheel/modules/screenshot/default.nix
Normal 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}"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user