mirror of
https://github.com/basecamp/omarchy.git
synced 2025-08-04 07:39:24 +00:00
Start screensaver automatically (#453)
* No need to kill any more since any key will quit * Command to refresh hypridle * Start screensaver automatically after a minute * Add migration
This commit is contained in:

committed by
GitHub

parent
4db468a450
commit
6ecc09abdb
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
pkill -f "alacritty --class Screensaver" ||
|
||||
pgrep -f "alacritty --class Screensaver" ||
|
||||
alacritty --class Screensaver --title Screensaver -o 'colors.primary.background="#000000"' \
|
||||
-o 'colors.cursor.cursor="#000000"' -e ~/.local/share/omarchy/bin/omarchy-cmd-screensaver
|
||||
|
6
bin/omarchy-refresh-hypridle
Executable file
6
bin/omarchy-refresh-hypridle
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
omarchy-refresh-config hypr/hypridle.conf
|
||||
pkill -x hypridle
|
||||
uwsm app -- hypridle >/dev/null 2>&1 &
|
||||
|
@ -5,6 +5,11 @@ general {
|
||||
on_unlock_cmd = omarchy-restart-waybar # prevent stacking of waybar when waking
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 60 # 1min
|
||||
on-timeout = omarchy-launch-screensaver # start screensaver
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 300 # 5min
|
||||
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
||||
|
5
migrations/1754136581.sh
Normal file
5
migrations/1754136581.sh
Normal file
@ -0,0 +1,5 @@
|
||||
echo "Start screensaver automatically after 1 minute"
|
||||
|
||||
if ! grep -q "omarchy-launch-screensaver" ~/.config/hypr/hypridle.conf; then
|
||||
omarchy-refresh-hypridle
|
||||
fi
|
Reference in New Issue
Block a user