Skip to content

Commit 20dc4a3

Browse files
committed
autoscreen: change output filename
1 parent 7bba762 commit 20dc4a3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/autoscreen-gaming/autoscreen-gaming.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let
88
TODAY="$(${pkgs.coreutils-full}/bin/date +%Y-%m-%d)"
99
DESTINATION_DIR="$HOME/Nextcloud/10-19_Images/11_Captures-d-écran/11.01_autoscreen/$TODAY"
1010
${pkgs.coreutils-full}/bin/mkdir -p "$DESTINATION_DIR"
11-
${pkgs.grim}/bin/grim "$DESTINATION_DIR/$(hostname)_nixos_autoscreen-gaming_$(${pkgs.coreutils-full}/bin/date +%Y-%m-%d_%H:%M:%S_%s).png"
11+
${pkgs.grim}/bin/grim "$DESTINATION_DIR/$(${pkgs.coreutils-full}/bin/date +%Y-%m-%d_%H:%M:%S_%s)_$(hostname)_nixos_autoscreen-gaming.png"
1212
fi
1313
'';
1414
in

apps/autoscreen-gnome/autoscreen-gnome.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let
55
DESTINATION_DIR="$HOME/Nextcloud/10-19_Images/11_Captures-d-écran/11.01_autoscreen/$TODAY"
66
77
${pkgs.coreutils-full}/bin/mkdir -p "$DESTINATION_DIR"
8-
${pkgs.flameshot}/bin/flameshot full -p "$DESTINATION_DIR/$(hostname)_nixos_autoscreen_$(${pkgs.coreutils-full}/bin/date +%Y-%m-%d_%H:%M:%S_%s).png"
8+
${pkgs.flameshot}/bin/flameshot full -p "$DESTINATION_DIR/$(${pkgs.coreutils-full}/bin/date +%Y-%m-%d_%H:%M:%S_%s)_$(hostname)_nixos_autoscreen.png"
99
'';
1010
in
1111
{

apps/autoscreen/autoscreen.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let
55
DESTINATION_DIR="$HOME/Nextcloud/10-19_Images/11_Captures-d-écran/11.01_autoscreen/$TODAY"
66
77
${pkgs.coreutils-full}/bin/mkdir -p "$DESTINATION_DIR"
8-
${pkgs.grim}/bin/grim "$DESTINATION_DIR/$(hostname)_nixos_autoscreen_$(${pkgs.coreutils-full}/bin/date +%Y-%m-%d_%H:%M:%S_%s).png"
8+
${pkgs.grim}/bin/grim "$DESTINATION_DIR/$(${pkgs.coreutils-full}/bin/date +%Y-%m-%d_%H:%M:%S_%s)_$(hostname)_nixos_autoscreen.png"
99
'';
1010
in
1111
{

0 commit comments

Comments
 (0)