This commit is contained in:
2026-08-21 05:08:30 +09:00
parent 8086c9a7f3
commit 717572ae24
6 changed files with 43 additions and 98 deletions
@@ -1,16 +0,0 @@
{ pkgs, ... }:
{
home.packages = [ pkgs.dpms-off ];
xdg.desktopEntries.dpms-off = {
name = "Display Off";
genericName = "Display Power Management";
comment = "Turn off all displays using DPMS";
exec = "${pkgs.dpms-off}/bin/dpms-off";
icon = "display";
terminal = false;
type = "Application";
categories = [ "System" ];
settings.Keywords = "Display Off;Screen Saver;DPMS;Power;Monitor;Screen;";
};
}
-3
View File
@@ -1,3 +0,0 @@
{
description = "Manual DPMS-off launcher for Wayland";
}
-35
View File
@@ -194,41 +194,6 @@ in
corner_radius_scale = 0.2;
clipboard_enabled = false;
launch_apps_as_systemd_services = true;
session = {
grid = true;
grid_columns = 3;
actions = [
{
action = "lock";
}
{
action = "logout";
}
{
action = "lock_and_suspend";
}
{
action = "command";
label = "Display OFF";
command = "${pkgs.dpms-off}/bin/dpms-off";
variant = "secondary";
}
{
action = "reboot";
variant = "destructive";
countdown_seconds = 5;
}
{
action = "shutdown";
variant = "destructive";
countdown_seconds = 5;
}
];
};
};
wallpaper = {
@@ -17,7 +17,6 @@
"applications.qalculate-gtk"
"applications.resources"
"applications.vlc"
"applications.dpms-off"
"hardwares.graphics"
"services.gvfs"
"services.evremap"
+1 -1
View File
@@ -45,7 +45,7 @@ let
'';
suspend = pkgs.writeShellScript "swayidle-suspend" ''
if ${onBattery} || ${isLocked}; then
if ${onBattery}; then
exec ${systemctl} suspend
fi
'';