Better system idle (#5619)
* 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>
This commit is contained in:
co-authored by
Copilot Autofix powered by AI
parent
bc4e26ecf4
commit
dd46e965d8
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/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
|
||||
) &
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# omarchy:summary=Resume displays and brightness after idle
|
||||
# omarchy:group=system
|
||||
# omarchy:name=idle resume
|
||||
# omarchy:examples=omarchy system idle resume
|
||||
|
||||
hyprctl dispatch dpms on >/dev/null 2>&1
|
||||
brightnessctl -r >/dev/null 2>&1
|
||||
brightnessctl -rd '*::kbd_backlight' >/dev/null 2>&1
|
||||
Reference in New Issue
Block a user