fixing hypridle and monitor power

This commit is contained in:
Matt Nish-Lapidus 2025-02-17 22:57:27 -05:00
parent 6d9644501b
commit 61ef5654ee
5 changed files with 13 additions and 14 deletions

18
flake.lock generated
View file

@ -69,11 +69,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1739814150, "lastModified": 1739844449,
"narHash": "sha256-xvG8k1Gfmm+2wpvzNikGj53BTg+Ay03aM5M68Y0caI8=", "narHash": "sha256-NtddqudRBSTT1FTkBKEo+CRhZjSwRvimyeAxoRcXTKo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "b51c3cceb739735185e06878bb05c2a0a3c16b9b", "rev": "53b218d3d3d187724e86b2a63ce9a960d005faac",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -323,11 +323,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1739823458, "lastModified": 1739845242,
"narHash": "sha256-uHjpcdlWKrZEJxsGdlMRTe4jlMYAnNsjRxPSTrNMFvo=", "narHash": "sha256-rNMXpDubNWGLTs45MuoH9YHtXfXye/fn2u4YMSTPt9I=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "6c93eea85daddd0dc8d4a3a687473461f3122961", "rev": "5cfbf5cc37a3bd1da07ae84eea1b828909c4456b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -912,11 +912,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1739624908, "lastModified": 1739758141,
"narHash": "sha256-f84lBmLl4tkDp1ZU5LBTSFzlxXP4926DVW3KnXrke10=", "narHash": "sha256-uq6A2L7o1/tR6VfmYhZWoVAwb3gTy7j4Jx30MIrH0rE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a60651b217d2e529729cbc7d989c19f3941b9250", "rev": "c618e28f70257593de75a7044438efc1c1fc0791",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1 +0,0 @@
#!/usr/bin/env fish

View file

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
niri msg action power-off-monitors brillo -e -O && niri msg action power-off-monitors

View file

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
systemctl suspend brillo -e -O && systemctl suspend

View file

@ -5,8 +5,8 @@
package = inputs.hypridle.packages.x86_64-linux.default; package = inputs.hypridle.packages.x86_64-linux.default;
settings = { settings = {
general = { general = {
lock_cmd = "pidof hyprlock || hyprlock"; lock_cmd = "brillo -e -O && pidof hyprlock || hyprlock";
before_sleep_cmd = "loginctl lock-session && brillo -e -O"; before_sleep_cmd = "brillo -e -O && loginctl lock-session";
after_sleep_cmd = "/home/emenel/.local/bin/on-unlock"; after_sleep_cmd = "/home/emenel/.local/bin/on-unlock";
ignore_dbus_inhibit = false; ignore_dbus_inhibit = false;
ignore_systemd_inhibit = false; ignore_systemd_inhibit = false;