added waybar style

This commit is contained in:
kenji
2025-12-24 14:12:48 +00:00
parent 573231b99a
commit 2caa21482f
4 changed files with 97 additions and 1 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
{ {myConfig, ...}: {
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
general = { general = {
gaps_in = 5; gaps_in = 5;
gaps_out = 15; gaps_out = 15;
}; };
monitor = myConfig.hyprland.monitors;
}; };
} }
+3
View File
@@ -3,6 +3,9 @@
pkgs, pkgs,
... ...
}: { }: {
imports = [
./style.nix
];
programs.waybar = { programs.waybar = {
enable = true; enable = true;
settings = { settings = {
+89
View File
@@ -0,0 +1,89 @@
{
programs.waybar = {
style = ''
@import "../omarchy/current/theme/waybar.css";
* {
background-color: @background;
color: @foreground;
border: none;
border-radius: 0;
min-height: 0;
font-family: 'JetBrainsMono Nerd Font';
font-size: 12px;
}
.modules-left {
margin-left: 8px;
}
.modules-right {
margin-right: 8px;
}
#workspaces button {
all: initial;
padding: 0 6px;
margin: 0 1.5px;
min-width: 9px;
}
#workspaces button.empty {
opacity: 0.5;
}
#cpu,
#battery,
#pulseaudio,
#custom-omarchy,
#custom-screenrecording-indicator,
#custom-update {
min-width: 12px;
margin: 0 7.5px;
}
#tray {
margin-right: 16px;
}
#bluetooth {
margin-right: 17px;
}
#network {
margin-right: 13px;
}
#custom-expand-icon {
margin-right: 18px;
}
tooltip {
padding: 2px;
}
#custom-update {
font-size: 10px;
}
#clock {
margin-left: 8.75px;
}
.hidden {
opacity: 0;
}
#custom-screenrecording-indicator {
min-width: 12px;
margin-left: 8.75px;
font-size: 10px;
}
#custom-screenrecording-indicator.active {
color: #a55555;
}
'';
};
}
+3
View File
@@ -28,5 +28,8 @@
update = "sudo nixos-rebuild switch --flake ~/.config/nixos-new/#hakase"; update = "sudo nixos-rebuild switch --flake ~/.config/nixos-new/#hakase";
}; };
}; };
hyprland = {
monitors = ["HDMI-A-1, 1920x1080@120, auto, 1"];
};
}; };
} }