hyprland scripts

This commit is contained in:
Hannes
2025-10-16 20:50:11 +02:00
parent 3add98f7bb
commit 178bff8856
41 changed files with 446 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
time=`date +%Y-%m-%d-%I-%M-%S`
geometry=$(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .current_mode.width, .current_mode.height' | tr '\n' 'x')
dir="`xdg-user-dir PICTURES`/Screenshots"
file="Screenshot_${time}_${geometry}.png"
if [[ ! -d "$dir" ]]; then
mkdir -p "$dir"
fi
# Take Screenshot
cd "$dir" && sleep 0.5 && grim "$file" && wl-copy < "$file"
# Open Screenshot
viewnior ${dir}/"$file"