mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 00:58:12 +09:00
feat
This commit is contained in:
@@ -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;";
|
||||
};
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
description = "Manual DPMS-off launcher for Wayland";
|
||||
}
|
||||
@@ -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"
|
||||
|
||||
@@ -45,7 +45,7 @@ let
|
||||
'';
|
||||
|
||||
suspend = pkgs.writeShellScript "swayidle-suspend" ''
|
||||
if ${onBattery} || ${isLocked}; then
|
||||
if ${onBattery}; then
|
||||
exec ${systemctl} suspend
|
||||
fi
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user