Improve lockhelper for gunter

This commit is contained in:
2024-06-11 00:53:59 +02:00
parent d5855878d3
commit eb0c53d8e2
6 changed files with 43 additions and 9 deletions

View File

@@ -1,6 +1,11 @@
#!/usr/bin/env bash
set -eo pipefail
grimblast save output /tmp/lock.png || true
hyprlock
mkdir -p /tmp/lockscreen || true
monitors=$(hyprctl monitors -j | jq -r '.[] | select( .name | contains ("DP")) | .name')
while IFS= read -r m; do
grim -o "$m" "/tmp/lockscreen/$m.png" || true
done <<< "$monitors"
hyprlock