From f98dbe041b5109685769269de76a3712f5824176 Mon Sep 17 00:00:00 2001 From: Tristan Date: Tue, 18 Apr 2023 08:58:39 +0100 Subject: [PATCH] stupid screenshots --- system/global/home.nix | 9 +++++++++ system/global/scripts/screenshot | 10 ++++++---- system/work/home.nix | 5 ----- system/zenix/home.nix | 5 ----- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/system/global/home.nix b/system/global/home.nix index 1339673..79d1cc5 100644 --- a/system/global/home.nix +++ b/system/global/home.nix @@ -35,6 +35,7 @@ imv libsixel swaybg + imagemagick brave logseq @@ -356,4 +357,12 @@ programs.librewolf.enable = true; + programs.git = { + enable = true; + aliases = { + graph = "log --oneline --all --graph"; + amend = "commit --amend --no-edit"; + }; + }; + } diff --git a/system/global/scripts/screenshot b/system/global/scripts/screenshot index 17d261a..66f3c4f 100755 --- a/system/global/scripts/screenshot +++ b/system/global/scripts/screenshot @@ -1,9 +1,11 @@ #!/bin/sh -OUT_DIR=${GRIM_DEFAULT_DIR:-~/Pictures/Screenshots/} +OUT_DIR=${GRIM_DEFAULT_DIR:-~/Pictures/Screenshots} mkdir -p "$OUT_DIR" +FILE=$OUT_DIR/$(date +"%Y-%m-%dT%H:%M:%SZ").png -grim -g "$(slurp -o)" - | wl-copy -notify-send "Screenshot Taken" "to the clipboard" -wl-paste > $OUT_DIR/$(date +"%Y-%m-%dT%H:%M:%SZ").png +grim -g "$(slurp -o)" "$FILE" +notify-send "Screenshot Taken" "$FILE" + +cat "$FILE" | wl-copy -t image/png diff --git a/system/work/home.nix b/system/work/home.nix index f660243..d2062f9 100644 --- a/system/work/home.nix +++ b/system/work/home.nix @@ -17,13 +17,8 @@ ]; programs.git = { - enable = true; userName = "Tristan Beedell"; userEmail = "tristan.beedell@cryoserver.com"; - aliases = { - graph = "log --oneline --all --graph"; - amend = "commit --amend --no-edit"; - }; }; wayland.windowManager.hyprland = { diff --git a/system/zenix/home.nix b/system/zenix/home.nix index c30edfb..bb4cfb7 100644 --- a/system/zenix/home.nix +++ b/system/zenix/home.nix @@ -18,13 +18,8 @@ services.nextcloud-client.startInBackground = true; programs.git = { - enable = true; userName = "tristan"; userEmail = "tristan@tristans.cloud"; - aliases = { - graph = "log --oneline --all --graph"; - amend = "commit --amend --no-edit"; - }; }; accounts.email.accounts."tristan@tristans.cloud" = {