home/{hyprland,waybar}: init

This commit is contained in:
2024-12-05 19:43:58 +01:00
parent 19e89266a7
commit 3c6bb656e9
12 changed files with 626 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ config, pkgs, lib, machineVars, ... }:
{
services.dunst = {
enable = true;
@@ -13,9 +13,9 @@
class = "Dunst";
browser = "${pkgs.xdg-utils}/bin/xdg-open";
offset = let
offset = lib.mkIf (!machineVars.wayland) (let
status-bar-height = config.services.polybar.settings."bar/top".height;
in "15x${toString (status-bar-height + 10)}";
in "15x${toString (status-bar-height + 10)}");
corner_radius = 0;
font = "Droid Sans 9";
@@ -47,14 +47,14 @@
background = config.colors.defaultColorSet.background;
timeout = 4;
};
urgency_normal = {
frame_color = config.colors.defaultColorSet.green;
foreground = config.colors.defaultColorSet.foreground;
background = config.colors.defaultColorSet.background;
timeout = 6;
};
urgency_critical = {
frame_color = config.colors.defaultColorSet.red;
foreground = config.colors.defaultColorSet.red;