mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-10 10:12:37 +08:00
hyprland: remove border in screenshot
This commit is contained in:
parent
2d2f716be2
commit
8727aa4281
1 changed files with 2 additions and 2 deletions
|
|
@ -9,14 +9,14 @@ let
|
|||
meta.description = ''
|
||||
Blue-light filter screenshot script for Hyprland. Directly copies region to clipboard.
|
||||
'';
|
||||
runtimeInputs = with pkgs; [ hyprshade hyprshot ];
|
||||
runtimeInputs = with pkgs; [ grim slurp wl-clipboard ];
|
||||
text = ''
|
||||
#!/bin/sh
|
||||
trap 'hyprshade on ${blue-light-filter}' EXIT
|
||||
# Turn off blue light filter
|
||||
hyprshade off
|
||||
# Take a screenshot of a region and copy it to clipboard
|
||||
hyprshot --clipboard-only -m region
|
||||
grim -g "$(slurp -w 0 -b 00000088)" - | wl-copy
|
||||
'';
|
||||
};
|
||||
screenrec = pkgs.writeShellApplication {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue