Show battery on lock screen

This commit is contained in:
Daniel Flanagan 2024-12-23 18:47:58 -06:00
parent afaa34df91
commit c5f6190a66
5 changed files with 57 additions and 18 deletions

View file

@ -35,12 +35,12 @@
}; };
}; };
eww = { eww = {config, ...}: {
programs.eww = { # programs.eww = {
enable = true; # enable = true;
# NOTE: might be better as a mk out of store symlink or w/e # };
configDir = ./eww;
}; home.file.".config/eww".source = config.lib.file.mkOutOfStoreSymlink /etc/nixos/flake/modules/home-manager/eww;
}; };
mako = { mako = {

View file

@ -34,6 +34,8 @@ $rosewater: #f5e0dc;
.bar { .bar {
background-color: $base; background-color: $base;
color: $text; color: $text;
border-radius: 5px;
border: solid 0px $base;
font-family: IosevkaLyteTerm; font-family: IosevkaLyteTerm;
font-size: 12.0pt; font-size: 12.0pt;
} }
@ -69,8 +71,8 @@ $rosewater: #f5e0dc;
.bar0>*, .bar0>*,
.bar1>*, .bar1>*,
.bar>* { .bar>* {
padding-left: 10px; padding-left: 8px;
padding-right: 10px; padding-right: 8px;
} }
.vol .muted, .vol .muted,
@ -85,8 +87,12 @@ $rosewater: #f5e0dc;
.workspace { .workspace {
/* height: 100%; */ /* height: 100%; */
padding-left: 10px; /* height: 32px; */
padding-right: 10px; margin: 0;
padding-top: 0px;
padding-bottom: 0px;
padding-left: 5px;
padding-right: 5px;
color: #666666; color: #666666;
} }

View file

@ -12,7 +12,7 @@
:geometry :geometry
(geometry (geometry
:x "0%" :x "0%"
:y "0%" :y "5px"
:width "100%" :width "100%"
:height "32px" :height "32px"
:anchor "bottom center") :anchor "bottom center")
@ -25,10 +25,10 @@
:geometry :geometry
(geometry (geometry
:x "0%" :x "0%"
:y "0%" :y "20%"
:width "100%" :width "90%"
:height "32px" :height "60px"
:anchor "bottom center") :anchor "top center")
(bar)) (bar))
(defwidget rightsidestuff [] (defwidget rightsidestuff []

View file

@ -433,10 +433,21 @@
services.logind = { services.logind = {
lidSwitch = "suspend-then-hibernate"; lidSwitch = "suspend-then-hibernate";
extraConfig = '' extraConfig = ''
HandleLidSwitchDocked=ignore KillUserProcesses=no
HandlePowerKey=suspend-then-hibernate HandlePowerKey=suspend
HandlePowerKeyLongPress=poweroff
HandleRebootKey=reboot
HandleRebootKeyLongPress=poweroff
HandleSuspendKey=suspend
HandleSuspendKeyLongPress=hibernate
HandleHibernateKey=hibernate
HandleHibernateKeyLongPress=ignore
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=suspend
HandleLidSwitchDocked=suspend
IdleActionSec=11m IdleActionSec=11m
IdleAction=suspend-then-hibernate IdleAction=ignore
''; '';
}; };
}; };

View file

@ -294,6 +294,28 @@ in
# TODO: nixify this # TODO: nixify this
}; };
programs.hyprlock.settings = {
label = [
{
monitor = "";
font_size = 20;
halign = "center";
valign = "center";
text_align = "center";
color = "rgba(255, 255, 255, 0.5)";
position = "0 -500";
font_family = "IosevkaLyteTerm";
text = "cmd[update:1000] acpi";
shadow_passes = 3;
shadow_size = 1;
shadow_color = "rgba(0, 0, 0, 1.0)";
shadow_boost = 1.0;
}
];
};
services.hypridle = let services.hypridle = let
secondsPerMinute = 60; secondsPerMinute = 60;
lockSeconds = 10 * secondsPerMinute; lockSeconds = 10 * secondsPerMinute;