hyprland scripts
This commit is contained in:
16
.config/hypr/scripts/screenshot/screenshot_area_2.sh
Executable file
16
.config/hypr/scripts/screenshot/screenshot_area_2.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
###
|
||||
### ~/.config/hypr/scripts/screenshot/screenshot_area.sh
|
||||
###
|
||||
|
||||
time=`date +%Y-%m-%d-%I-%M-%S`
|
||||
geometry=$(hyprctl monitors -j | jq -r '.[] | select(.focused) | "\(.width)x\(.height)"')
|
||||
dir="`xdg-user-dir PICTURES`/Screenshots"
|
||||
file="Screenshot_${time}_${geometry}.png"
|
||||
|
||||
if [[ ! -d "$dir" ]]; then
|
||||
mkdir -p "$dir"
|
||||
fi
|
||||
|
||||
# Take Screenshot
|
||||
cd "$dir" && grim -g "$(slurp)" "$file" && wl-copy < "$file"
|
||||
Reference in New Issue
Block a user