Files
nixconfig/modules/home/wayland/apps/eww/bar/scripts/lock
T
2026-09-10 19:54:50 +02:00

10 lines
342 B
Bash

#!/usr/bin/env bash
# Lock the session. hyprlock runs as its own transient unit so that an eww
# restart can never take the lock screen down with it.
unit=eww-lock
eww close popup 2>/dev/null
eww close powermenu 2>/dev/null
eww update active-panel= 2>/dev/null
systemctl --user is-active --quiet "$unit" && exit 0
detach -u "$unit" hyprlock