mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
* Better system idle * Just use refresh Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
18 lines
398 B
Bash
Executable File
18 lines
398 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Lock the screen from idle and turn the display off after a delay
|
|
# omarchy:group=system
|
|
# omarchy:name=idle
|
|
# omarchy:examples=omarchy system idle
|
|
|
|
if ! loginctl lock-session; then
|
|
omarchy-system-lock
|
|
fi
|
|
|
|
(
|
|
sleep 10
|
|
pidof hyprlock >/dev/null || exit 0
|
|
brightnessctl -sd '*::kbd_backlight' set 0 >/dev/null 2>&1
|
|
hyprctl dispatch dpms off >/dev/null 2>&1
|
|
) &
|