allow customizing screenshots path and fix battery stuff

This commit is contained in:
notgne2 2022-01-12 16:51:39 -07:00
parent 7ff488ef2b
commit d72a8c0021
No known key found for this signature in database
GPG key ID: BB661E172B42A7F8
2 changed files with 15 additions and 13 deletions

View file

@ -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 = { };