mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-30 08:10:42 +00:00
Add screenshot support
This commit is contained in:
parent
c2ddd6e720
commit
8808ac6be4
5 changed files with 262 additions and 2 deletions
|
@ -0,0 +1,24 @@
|
|||
# - `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}
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue