sway/swaynag: Deduplicate config
This commit is contained in:
parent
da6788d036
commit
4d474043a0
|
@ -270,24 +270,27 @@ lib.mkIf nixosConfig.sbruder.gui.enable {
|
||||||
wdisplays # graphical output manager
|
wdisplays # graphical output manager
|
||||||
];
|
];
|
||||||
|
|
||||||
# FIXME deduplicate (everything except text is redundant)
|
xdg.configFile."swaynag/config".text =
|
||||||
xdg.configFile."swaynag/config".text = ''
|
let
|
||||||
font=Monospace 12
|
# adding it to the header doesn’t work since the defaults overwrite it
|
||||||
|
commonConfig = ''
|
||||||
|
background=fdf6e3
|
||||||
|
border-bottom=eee8d5
|
||||||
|
border=eee8d5
|
||||||
|
button-background=eee8d5
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
''
|
||||||
|
font=Monospace 12
|
||||||
|
|
||||||
[warning]
|
[warning]
|
||||||
text=b58900
|
text=b58900
|
||||||
background=fdf6e3
|
${commonConfig}
|
||||||
border=eee8d5
|
|
||||||
border-bottom=eee8d5
|
|
||||||
button-background=eee8d5
|
|
||||||
|
|
||||||
[error]
|
[error]
|
||||||
text=dc322f
|
text=dc322f
|
||||||
background=fdf6e3
|
${commonConfig}
|
||||||
border=eee8d5
|
'';
|
||||||
border-bottom=eee8d5
|
|
||||||
button-background=eee8d5
|
|
||||||
'';
|
|
||||||
|
|
||||||
# home-manager’s waybar module performs additional checks that are overly strict
|
# home-manager’s waybar module performs additional checks that are overly strict
|
||||||
xdg.configFile."waybar/config".text =
|
xdg.configFile."waybar/config".text =
|
||||||
|
|
Loading…
Reference in a new issue