This commit is contained in:
2026-07-14 19:30:46 -03:00
parent c815e6286b
commit 8f2e965245
4 changed files with 12 additions and 33 deletions
@@ -68,7 +68,7 @@ return {
suffix = suffix .. string.char(math.random(65, 90))
end
end
return os.date("%s", os.time()) .. suffix
return os.date("%s", os.time()) .. "-" .. suffix
end,
follow_url_func = function(url)
vim.ui.open(url) -- need Neovim 0.10.0+
@@ -188,29 +188,6 @@ let
"$text" "$tooltip" "power-profile-$cls" "power-profile-$cls"
'';
waybarStyleSnippet = pkgs.writeText "waybar-power-profile.css" ''
/* @import this at the top of your `~/.config/waybar/style.css`:
@import url("power-profile.css");
*/
#custom-power-profile {
min-width: 12px;
padding: 0 4px;
font-family: "BerkeleyMono Nerd Font Propo";
}
#custom-power-profile.caffeinated {
color: #fabd2f;
}
#custom-power-profile.headless {
color: #83a598;
}
#custom-power-profile.normal {
color: #ebdbb2;
}
'';
in
{
options.custom.power-profiles = {
@@ -229,10 +206,6 @@ in
# to avoid two hypridle processes fighting over the IPC socket.
custom.hypridle.enable = lib.mkForce false;
# Drop the waybar snippets where the user can @include them.
xdg.configFile."waybar/power-profile.jsonc".source = waybarConfigSnippet;
xdg.configFile."waybar/power-profile.css".source = waybarStyleSnippet;
# The systemd user service that runs hypridle with the active config.
# Started on graphical-session.target so it follows Hyprland's lifecycle.
systemd.user.services.power-profile-hypridle = {