added hyprlock, wlogout, and wlogout script.

This commit is contained in:
2025-06-10 18:49:54 -05:00
parent fafe4746e4
commit a67c7f6bab
10 changed files with 210 additions and 4 deletions

15
env/.config/wlogout/wlogout.sh vendored Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# https://github.com/zDyanTB/HyprNova/blob/master/.config/hypr/scripts/wlogout.sh
A_1080=1000
B_1080=1000
# Check if wlogout is already running
if pgrep -x "wlogout" > /dev/null; then
pkill -x "wlogout"
exit 0
fi
# Detect monitor resolution and scaling factor
resolution=$(hyprctl -j monitors | jq -r '.[] | select(.focused==true) | .height / .scale' | awk -F'.' '{print $1}')
hypr_scale=$(hyprctl -j monitors | jq -r '.[] | select(.focused==true) | .scale')
wlogout --protocol layer-shell -b 4 -T $(awk "BEGIN {printf \"%.0f\", $A_1080 * 1080 * $hypr_scale / $resolution}") -B $(awk "BEGIN {printf \"%.0f\", $B_1080 * 1080 * $hypr_scale / $resolution}") &