summaryrefslogtreecommitdiff
path: root/config/hyprland/hypr/screenshot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/hyprland/hypr/screenshot.sh')
-rwxr-xr-xconfig/hyprland/hypr/screenshot.sh28
1 files changed, 0 insertions, 28 deletions
diff --git a/config/hyprland/hypr/screenshot.sh b/config/hyprland/hypr/screenshot.sh
deleted file mode 100755
index 694e099..0000000
--- a/config/hyprland/hypr/screenshot.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-dir="$(xdg-user-dir PICTURES)"
-dir="${dir:-$HOME/pics}/screenshots"
-date="$(date +%y%m%d_%H_%M_%S)"
-mkdir -p "$dir"
-
-case $1 in
- "-m")
- actwin="$(hyprctl activewindow -j | jq -r '.monitor')"
- actmon="$(hyprctl monitors -j |
- jq -r ".[] | select(.id == $actwin)" |
- jq -r '.name')"
- grim -o "$actmon" "$dir/${date}_mon.png"
- ;;
- "-f")
- grim "$dir/${date}_full.png"
- ;;
- "-s")
- grim -g "$(slurp)" "$dir/${date}_sel.png"
- ;;
- "-sc")
- grim -g "$(slurp)" - | wl-copy
- ;;
- *)
- exit
- ;;
-esac