working on screens and power stuff

This commit is contained in:
Matt Nish-Lapidus 2025-02-16 16:24:34 -05:00
parent 6d3a143ce2
commit 2002da4dcf
14 changed files with 237 additions and 150 deletions

View file

@ -15,25 +15,40 @@
# TODO add screen dimming and test configurations with different monitors
listener = [
# battery timers
{
timeout = "60";
on-timeout = "systemd-ac-power || dim-all-monitors";
on-resume = "brillo -e -u 150000 -I";
}
{
timeout = "120";
on-timeout = "systemd-ac-power || lock-power-off-monitors";
}
{
timeout = "300";
on-timeout = "systemd-ac-power || lock-suspend";
}
# ac power timers
{
timeout = "90";
on-timeout = "systemd-ac-power && dim-all-monitors";
on-resume = "brillo -e -u 150000 -I";
}
{
timeout = "180";
on-timeout = "systemd-ac-power && loginctl lock-session";
}
{
timeout = "200";
on-timeout = "systemd-ac-power && lock-power-off-monitors";
}
{
timeout = "600";
on-timeout = "systemd-ac-power && loginctl lock-session && systemctl suspend";
on-timeout = "systemd-ac-power && lock-suspend";
}
];

View file

@ -14,7 +14,7 @@ in {
{ command = ["maestral_qt"]; }
{ command = ["clipse" "-listen"]; }
{ command = ["waybar"]; }
{ command = [ "systemctl" "--user" "restart" "xwayland-satellite.service" ]; }
{ command = [ "systemctl" "--user" "restart" "xwayland-satellite.service" "shikane.service" ]; }
];
workspaces = {
@ -222,8 +222,6 @@ in {
action = spawn "swayosd-client" "--input-volume" "mute-toggle";
};
# TODO write shell script that sets swayosd and light -O to store new value for recall
"XF86MonBrightnessUp" = {
allow-when-locked=true;
action = spawn "swayosd-client" "--brightness" "raise";

View file

@ -24,7 +24,7 @@
tldr
glow
delta
btop
btop-rocm
gnupg
imagemagick
gnutls
@ -61,6 +61,7 @@
powertop
age
kdotool
manix
caligula

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
home.packages = [ pkgs.shikane ];
@ -6,7 +6,7 @@
systemd.user.services.shikane = {
Unit = {
Description = "Shikane";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Install = {
WantedBy = [ "graphical-session.target" ];