mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-02-05 00:26:47 +05:30
feat: add screen shot/record scripts
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
../../modules/home/desktop/awesome
|
||||
../../modules/home/desktop/hyprland
|
||||
../../modules/home/desktop/vicinae
|
||||
../../modules/home/desktop/utils
|
||||
../../modules/home/picom
|
||||
../../modules/home/alacritty
|
||||
../../modules/home/wezterm
|
||||
|
||||
32
modules/home/desktop/utils/default.nix
Normal file
32
modules/home/desktop/utils/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{pkgs, ...}: {
|
||||
programs.satty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
corner-roundness = 12;
|
||||
initial-tool = "arrow";
|
||||
early-exit = true;
|
||||
copy-command = "wl-copy";
|
||||
};
|
||||
|
||||
font = {
|
||||
family = "JetBrainsMono NerdFont";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
grim
|
||||
slurp
|
||||
hyprshot
|
||||
wl-clipboard
|
||||
wl-screenrec
|
||||
(writeShellScriptBin "hypr-screenshot" ''
|
||||
hyprshot -m region -r ppm - | satty --filename -
|
||||
'')
|
||||
|
||||
(writeShellScriptBin "hypr-screenrecord" ''
|
||||
wl-screenrec -g "$(slurp)"
|
||||
'')
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user