pinwheel: Add module for screenshots
This commit is contained in:
21
flake.lock
generated
21
flake.lock
generated
@@ -125,6 +125,26 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"hyprland-contrib": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1695455081,
|
||||
"narHash": "sha256-AtAMze2J5Maol28OLQoCFgppRWEy06Mn9RhduXNmhiI=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "contrib",
|
||||
"rev": "33663f663e07b4ca52c9165f74e3d793f08b15e7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hyprwm",
|
||||
"repo": "contrib",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1695109627,
|
||||
@@ -194,6 +214,7 @@
|
||||
"agenix": "agenix",
|
||||
"emacs-overlay": "emacs-overlay",
|
||||
"home-manager": "home-manager_2",
|
||||
"hyprland-contrib": "hyprland-contrib",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixpkgs2211": "nixpkgs2211"
|
||||
|
||||
@@ -21,6 +21,11 @@
|
||||
url = "github:nix-community/emacs-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
hyprland-contrib = {
|
||||
url = "github:hyprwm/contrib";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, ... } @inputs : {
|
||||
|
||||
@@ -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