This commit is contained in:
commit
95a533c876
451 changed files with 18255 additions and 0 deletions
11
modules/home/hyprland/applications/screenshot/screenshot.nix
Normal file
11
modules/home/hyprland/applications/screenshot/screenshot.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
# pass the mode (output, window, region) as a command line argument
|
||||
|
||||
let
|
||||
screenshotDir = "${config.xdg.userDirs.pictures}/screenshots";
|
||||
in
|
||||
(pkgs.writeShellScriptBin "screenshot" ''
|
||||
mkdir -p ${screenshotDir}
|
||||
${pkgs.hyprshot}/bin/hyprshot --mode $1 --output-folder ${screenshotDir} --filename screenshot_$(date +"%Y-%m-%d_%H-%M-%S").png
|
||||
'')
|
||||
Loading…
Add table
Add a link
Reference in a new issue