Declared swayosd config

This commit is contained in:
2026-04-10 03:01:06 +02:00
parent e609e76141
commit 2033b6bb61
2 changed files with 111 additions and 0 deletions

110
hyprland/raw/swayosd.nix Normal file
View File

@@ -0,0 +1,110 @@
{ lib, config, ... }:
let
theme = "dark";
in
{
home.file.".config/swayosd/style_dark.css".text = ''
window#osd {
border-radius: 0px;
border: 2px solid #EBDBB2;
background: #32302F;
#container {
margin: 16px;
}
image,
label {
color: #EBDBB2;
}
progressbar:disabled,
image:disabled {
opacity: 1;
}
progressbar,
segmentedprogress {
min-height: 6px;
border-radius: 0px;
background: transparent;
border: none;
}
trough,
segment {
min-height: inherit;
border-radius: 0px;
border: none;
background: #{"alpha(@theme_fg_color, 0.5)"};
}
progress,
segment.active {
min-height: inherit;
border-radius: 0px;
border: none;
background: #{"@theme_fg_color"};
}
segment {
margin-left: 8px;
&:first-child {
margin-left: 0;
}
}
}
'';
home.file.".config/swayosd/style_light.css".text = ''
window#osd {
border-radius: 0px;
border: 2px solid #D5C4A1;
background: #EBDBB2;
#container {
margin: 16px;
}
image,
label {
color: #EBDBB2;
}
progressbar:disabled,
image:disabled {
opacity: 1;
}
progressbar,
segmentedprogress {
min-height: 6px;
border-radius: 0px;
background: transparent;
border: none;
}
trough,
segment {
min-height: inherit;
border-radius: 0px;
border: none;
background: #{"alpha(@theme_fg_color, 0.5)"};
}
progress,
segment.active {
min-height: inherit;
border-radius: 0px;
border: none;
background: #{"@theme_fg_color"};
}
segment {
margin-left: 8px;
&:first-child {
margin-left: 0;
}
}
}
'';
home.file.".config/swayosd/style.css".source = config.home.file.".config/swayosd/style_${theme}.css".source;
}

View File

@@ -18,5 +18,6 @@
../hyprland/raw/fuzzel.nix ../hyprland/raw/fuzzel.nix
../hyprland/raw/waybar.nix ../hyprland/raw/waybar.nix
../hyprland/raw/swaync.nix ../hyprland/raw/swaync.nix
../hyprland/raw/swayosd.nix
]; ];
} }