stupid screenshots

This commit is contained in:
Tristan 2023-04-18 08:58:39 +01:00
parent 04a6a50fbc
commit f98dbe041b
4 changed files with 15 additions and 14 deletions

View file

@ -35,6 +35,7 @@
imv imv
libsixel libsixel
swaybg swaybg
imagemagick
brave brave
logseq logseq
@ -356,4 +357,12 @@
programs.librewolf.enable = true; programs.librewolf.enable = true;
programs.git = {
enable = true;
aliases = {
graph = "log --oneline --all --graph";
amend = "commit --amend --no-edit";
};
};
} }

View file

@ -1,9 +1,11 @@
#!/bin/sh #!/bin/sh
OUT_DIR=${GRIM_DEFAULT_DIR:-~/Pictures/Screenshots/} OUT_DIR=${GRIM_DEFAULT_DIR:-~/Pictures/Screenshots}
mkdir -p "$OUT_DIR" mkdir -p "$OUT_DIR"
FILE=$OUT_DIR/$(date +"%Y-%m-%dT%H:%M:%SZ").png
grim -g "$(slurp -o)" - | wl-copy grim -g "$(slurp -o)" "$FILE"
notify-send "Screenshot Taken" "to the clipboard" notify-send "Screenshot Taken" "$FILE"
wl-paste > $OUT_DIR/$(date +"%Y-%m-%dT%H:%M:%SZ").png
cat "$FILE" | wl-copy -t image/png

View file

@ -17,13 +17,8 @@
]; ];
programs.git = { programs.git = {
enable = true;
userName = "Tristan Beedell"; userName = "Tristan Beedell";
userEmail = "tristan.beedell@cryoserver.com"; userEmail = "tristan.beedell@cryoserver.com";
aliases = {
graph = "log --oneline --all --graph";
amend = "commit --amend --no-edit";
};
}; };
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {

View file

@ -18,13 +18,8 @@
services.nextcloud-client.startInBackground = true; services.nextcloud-client.startInBackground = true;
programs.git = { programs.git = {
enable = true;
userName = "tristan"; userName = "tristan";
userEmail = "tristan@tristans.cloud"; userEmail = "tristan@tristans.cloud";
aliases = {
graph = "log --oneline --all --graph";
amend = "commit --amend --no-edit";
};
}; };
accounts.email.accounts."tristan@tristans.cloud" = { accounts.email.accounts."tristan@tristans.cloud" = {