10 lines
342 B
Bash
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
|