allow customizing screenshots path and fix battery stuff
This commit is contained in:
parent
7ff488ef2b
commit
d72a8c0021
2 changed files with 15 additions and 13 deletions
|
@ -18,8 +18,8 @@ let
|
|||
|
||||
getscrloc = pkgs.writeScript "getscrloc.sh" ''
|
||||
#!${pkgs.zsh}/bin/zsh
|
||||
mkdir -p "$HOME/Pictures/Screenshots"
|
||||
echo "$HOME/Pictures/Screenshots/$(date +%F_%T).''${1:-png}"
|
||||
mkdir -p "${cfg.screenshotsPath}"
|
||||
echo "${cfg.screenshotsPath}/$(date +%F_%T).''${1:-png}"
|
||||
'';
|
||||
|
||||
scrsaveclip = pkgs.writeScript "scr-save-clip.sh" ''
|
||||
|
@ -106,6 +106,12 @@ in
|
|||
"A path to a script that takes a path to a file and returns a URL";
|
||||
};
|
||||
|
||||
screenshotsPath = mkOption {
|
||||
description = "Path to save screenshots in";
|
||||
default = "$HOME/Pictures/Screenshots";
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
bitwardenSession = mkOption {
|
||||
description = "Session key for bitwarden";
|
||||
default = "";
|
||||
|
@ -123,12 +129,6 @@ in
|
|||
default = { };
|
||||
};
|
||||
|
||||
makoArgs = mkOption {
|
||||
description = "Args for mako notification displayer";
|
||||
default = "";
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
screensaver = mkOption {
|
||||
description = "ezpcusr screensaver";
|
||||
default = { };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue