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 = {
programs.eww = {
enable = true;
# NOTE: might be better as a mk out of store symlink or w/e
configDir = ./eww;
};
eww = {config, ...}: {
# programs.eww = {
# enable = true;
# };
home.file.".config/eww".source = config.lib.file.mkOutOfStoreSymlink /etc/nixos/flake/modules/home-manager/eww;
};
mako = {

View file

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

View file

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

View file

@ -433,10 +433,21 @@
services.logind = {
lidSwitch = "suspend-then-hibernate";
extraConfig = ''
HandleLidSwitchDocked=ignore
HandlePowerKey=suspend-then-hibernate
KillUserProcesses=no
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
IdleAction=suspend-then-hibernate
IdleAction=ignore
'';
};
};

View file

@ -294,6 +294,28 @@ in
# 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
secondsPerMinute = 60;
lockSeconds = 10 * secondsPerMinute;