aboutsummaryrefslogtreecommitdiff
path: root/screenshot
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2025-09-24 05:01:20 +0200
committersrdusr <trevorgray@srdusr.com>2025-09-24 05:01:20 +0200
commit553cb2204b0bf27afe13c6332f5679bbd47172a0 (patch)
tree75c86ff018122a682e0afd7a0e2a0228a63e44bd /screenshot
parentb20e4e004be74884cc72c57a3128e36fd5177d7a (diff)
downloaddotfiles-553cb2204b0bf27afe13c6332f5679bbd47172a0.tar.gz
dotfiles-553cb2204b0bf27afe13c6332f5679bbd47172a0.zip
Update/Overhaul
Diffstat (limited to 'screenshot')
-rwxr-xr-xscreenshot38
1 files changed, 0 insertions, 38 deletions
diff --git a/screenshot b/screenshot
deleted file mode 100755
index 25fc3bd..0000000
--- a/screenshot
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-DATE="$(date +'%d-%m-%y_%H:%M:%S')"
-DIR="$HOME/pictures/screenshots"
-PIC="$DIR/$DATE.jpg"
-
-[ ! -d "$DIR" ] && mkdir -pv "$DIR"
-
-abort() {
- notify-send -a "Warn" -i dialog-error "Screenshot" "aborted"
- exit 1
-}
-
-notification() {
- NOTIFY=$(notify-send -A open=Open -A delete=Delete -a Screenshot -i "$PIC" "Screenshot" "$PIC")
- if [[ $NOTIFY == "open" ]]; then
- viewnior "$PIC"
- elif [[ $NOTIFY == "delete" ]]; then
- rm -rf "$PIC"
- else
- exit 0
- fi
-}
-
-case "$1" in
- full)
- flameshot full -p "$PIC" || abort
- #flameshot full -p ~/pictures/screenshots
- xclip -selection primary <"$PIC"
- notification
- ;;
- crop)
- flameshot gui -p "$PIC" || abort
- #flameshot gui -p ~/pictures/screenshots
- xclip -selection primary <"$PIC"
- notification
- ;;
-esac