Revert "add(hypridle): xscreensaver is back!"
This reverts commit b9a9b5cf6f.
This commit is contained in:
@@ -1,15 +1,9 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
imports = [
|
|
||||||
../xscreensaver
|
|
||||||
];
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"uwsm app -- hypridle"
|
"uwsm app -- hypridle"
|
||||||
"uwsm app -- xscreensaver -no-splash"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.hypridle = {
|
services.hypridle = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
@@ -21,11 +15,10 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
listener = [
|
listener = [
|
||||||
{
|
# {
|
||||||
timeout = 180; # 3min
|
# timeout = 180; # 3min
|
||||||
on-timeout = "${pkgs.xscreensaver}/bin/xscreensaver-command -activate";
|
# on-timeout = "tte-screensaver";
|
||||||
on-resume = "${pkgs.xscreensaver}/bin/xscreensaver-command -deactivate";
|
# }
|
||||||
}
|
|
||||||
{
|
{
|
||||||
timeout = 300; # 5min
|
timeout = 300; # 5min
|
||||||
on-timeout = "hakase-hyprlock"; # lock screen when timeout has passed
|
on-timeout = "hakase-hyprlock"; # lock screen when timeout has passed
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
{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"
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user