mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 00:31:54 -05:00
home/wayland/helpers: save screenshots to config.xdg.userDirs.pictures
Some checks failed
nix-build / default-build (push) Has been cancelled
nix-build / fallarbor-build (push) Has been cancelled
nix-build / lavaridge-build (push) Has been cancelled
nix-build / mauville-build (push) Has been cancelled
nix-build / petalburg-build (push) Has been cancelled
nix-build / rustboro-build (push) Has been cancelled
nix-check / fmt-check (push) Has been cancelled
nix-check / eval-check (push) Has been cancelled
Some checks failed
nix-build / default-build (push) Has been cancelled
nix-build / fallarbor-build (push) Has been cancelled
nix-build / lavaridge-build (push) Has been cancelled
nix-build / mauville-build (push) Has been cancelled
nix-build / petalburg-build (push) Has been cancelled
nix-build / rustboro-build (push) Has been cancelled
nix-check / fmt-check (push) Has been cancelled
nix-check / eval-check (push) Has been cancelled
This commit is contained in:
parent
f32bd338a4
commit
ff4478271c
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
|
@ -19,7 +20,7 @@
|
||||||
|
|
||||||
screenshot = rec {
|
screenshot = rec {
|
||||||
bin = pkgs.writeShellScript "screenshooter" ''
|
bin = pkgs.writeShellScript "screenshooter" ''
|
||||||
FILENAME=$HOME/pics/screenshots/$(date +'%Y-%m-%d-%H:%M_grim.png')
|
FILENAME=${config.xdg.userDirs.pictures}/screenshots/$(date +'%Y-%m-%d-%H:%M_grim.png')
|
||||||
|
|
||||||
if [ "$1" == "region" ]; then
|
if [ "$1" == "region" ]; then
|
||||||
${lib.getExe pkgs.grim} -g "$(${lib.getExe pkgs.slurp})" "$FILENAME"
|
${lib.getExe pkgs.grim} -g "$(${lib.getExe pkgs.slurp})" "$FILENAME"
|
||||||
|
|
Loading…
Reference in a new issue