aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/hyprshot
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-01-26 23:33:00 +0300
committerawy <awy@awy.one>2025-01-26 23:33:00 +0300
commitfc195aa0960fc4c9cd53c1a101925566f5ae0cbb (patch)
treeafdec07ed81de3ae24a13a167117d920e2af8e3d /.local/bin/hyprshot
parent00a071b2388f59142b79443dfeb58fe1feaab431 (diff)
update
Diffstat (limited to '.local/bin/hyprshot')
-rwxr-xr-x.local/bin/hyprshot28
1 files changed, 0 insertions, 28 deletions
diff --git a/.local/bin/hyprshot b/.local/bin/hyprshot
deleted file mode 100755
index 7036c84..0000000
--- a/.local/bin/hyprshot
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-part() {
- geometry="$(slurp)"
- sleep "0.5"
- grim -g "${geometry}" -t jpeg - | wl-copy
-}
-
-full() {
- grim -t jpeg - | wl-copy
-}
-
-rec() {
- killall -SIGINT gpu-screen-recorder
- homeuser='/home/awy'
- availableDisplay=$(hyprctl monitors | grep Monitor | cut -d' ' -f2)
- filename=$(date +"%Y-%m-%d %H:%M:%S")
- choice="$(printf "$availableDisplay\nExit\n" | rofi -dmenu -l "5")"
- [ "${choice}" != "Exit" ] || [ -z "${choice}" ] &&
- gpu-screen-recorder -w $choice -f 60 -a default_output -a default_input -o "$homeuser/$filename.mp4"
-
-}
-
-case $1 in
- 1) part ;;
- 2) full ;;
- 3) rec ;;
-esac