From deecc46dfc3143fb784e8b0c9418d7cf5276bff8 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Sat, 15 Apr 2023 16:55:37 +0000 Subject: [PATCH] Save backlight on sleep on rainbowdash --- flake.lock | 12 ++++++------ home/sway.nix | 2 +- system/rainbowdash/default.nix | 2 ++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/flake.lock b/flake.lock index 77178e5..80b6e20 100644 --- a/flake.lock +++ b/flake.lock @@ -39,11 +39,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1681041438, - "narHash": "sha256-NmRGMklxBZ8Ol47CKMQxAU1F+v8ySpsHAAiC7ZL4vxY=", + "lastModified": 1681482634, + "narHash": "sha256-cT/nr3L8khEYZSGp8qqwxFH+/q4/547MfyOdSj6MhBk=", "owner": "nixos", "repo": "nixpkgs", - "rev": "48dcbaf7fa799509cbec85d55b8d62dcf1477d57", + "rev": "fda0d99c2cbbb5c89d8855d258cb0821bd9113ad", "type": "github" }, "original": { @@ -55,11 +55,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1681036984, - "narHash": "sha256-AbScJXshYzbeUKHh+Y3OICc3iAtr+NqJ3Xb81GW+ptU=", + "lastModified": 1681465517, + "narHash": "sha256-EasJh15/jcJNAHtq2SGbiADRXteURAnQbj1NqBoKkzU=", "owner": "nixos", "repo": "nixpkgs", - "rev": "fd531dee22c9a3d4336cc2da39e8dd905e8f3de4", + "rev": "abe7316dd51a313ce528972b104f4f04f56eefc4", "type": "github" }, "original": { diff --git a/home/sway.nix b/home/sway.nix index 64ae222..b3fa163 100644 --- a/home/sway.nix +++ b/home/sway.nix @@ -62,7 +62,7 @@ in startup = [ { command = "mako"; } { command = "dbus-update-activation-environment --systemd --all"; always = true; } - { command = "swayidle -w before-sleep 'swaylock -f' timeout 600 'swaylock -f' timeout 1200 'swaymsg \"output * dpms off\"' resume 'swaymsg \"output * dpms on\"'"; } + { command = "swayidle -w before-sleep 'swaylock -f' timeout 600 'swaylock -f' timeout 660 'swaymsg \"output * dpms off\"' resume 'swaymsg \"output * dpms on\"'"; } ]; # I have to set these to something and can't set them to existing uses diff --git a/system/rainbowdash/default.nix b/system/rainbowdash/default.nix index e867e0d..b0f59f2 100644 --- a/system/rainbowdash/default.nix +++ b/system/rainbowdash/default.nix @@ -9,6 +9,7 @@ ../../sets/hardware.nix ../../sets/hacking.nix ../../sets/laptop.nix + ../../sets/ime.nix ../../sets/1password.nix ../../sets/virtualization.nix ../../sets/workstation.nix @@ -26,6 +27,7 @@ output."eDP-1" = { mode = "3840x2400@59.994Hz"; scale = "2"; }; input."1386:18753:Wacom_HID_4941_Finger".map_to_output = "eDP-1"; input."1739:52710:DLL096D:01_06CB:CDE6_Touchpad" = { middle_emulation = "enabled"; click_method = "clickfinger"; }; + startup = [{ command = "swayidle -w before-sleep 'light -O' after-resume 'light -I'"; always = true; }]; }; xdg.configFile."rustybar/config.toml".text = '' [[tile]]