add(hypridle): xscreensaver is back!

This commit is contained in:
kenji
2026-06-24 19:33:53 -05:00
parent 6d4cdc5e0e
commit b9a9b5cf6f
2 changed files with 27 additions and 4 deletions
+11 -4
View File
@@ -1,9 +1,15 @@
{pkgs, ...}: {
imports = [
../xscreensaver
];
wayland.windowManager.hyprland.settings = {
exec-once = [
"uwsm app -- hypridle"
"uwsm app -- xscreensaver -no-splash"
];
};
services.hypridle = {
enable = true;
settings = {
@@ -15,10 +21,11 @@
};
listener = [
# {
# timeout = 180; # 3min
# on-timeout = "tte-screensaver";
# }
{
timeout = 180; # 3min
on-timeout = "${pkgs.xscreensaver}/bin/xscreensaver-command -activate";
on-resume = "${pkgs.xscreensaver}/bin/xscreensaver-command -deactivate";
}
{
timeout = 300; # 5min
on-timeout = "hakase-hyprlock"; # lock screen when timeout has passed
+16
View File
@@ -0,0 +1,16 @@
{pkgs, ...}: {
home.packages = with pkgs; [
xscreensaver
cbonsai
cmatrix
];
home.file.".xscreensaver".text = ''
# Tell xscreensaver to only run a single specific program
mode: one
selected: 0
# Define the phosphor hack, scaling up the font size, and running cbonsai
programs: phosphor -delay 50000 -scale 2 -program "${pkgs.cbonsai}/bin/cbonsai -l -L -S"
'';
}