mirror of
https://github.com/danth/stylix
synced 2024-11-22 12:13:08 +00:00
Add waybar and avizo (#72)
This commit is contained in:
parent
a3f9fa981b
commit
d0658ebb8b
2 changed files with 89 additions and 0 deletions
22
modules/avizo/hm.nix
Normal file
22
modules/avizo/hm.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{pkgs, config, lib, ... }:
|
||||
|
||||
with config.lib.stylix.colors.withHashtag;
|
||||
with config.stylix.fonts;
|
||||
{
|
||||
options.stylix.targets.avizo.enable =
|
||||
config.lib.stylix.mkEnableTarget "Avizo" true;
|
||||
|
||||
# Referenced https://github.com/stacyharper/base16-mako
|
||||
config = lib.mkIf config.stylix.targets.avizo.enable {
|
||||
services.avizo = {
|
||||
settings = {
|
||||
default = {
|
||||
background=base00;
|
||||
border-color=base0D;
|
||||
bar-fg-color=base05;
|
||||
bar-bg-color=base00;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
67
modules/waybar/hm.nix
Normal file
67
modules/waybar/hm.nix
Normal file
|
@ -0,0 +1,67 @@
|
|||
{ config, lib, ... }:
|
||||
with config.lib.stylix.colors.withHashtag;
|
||||
with config.stylix.fonts;
|
||||
|
||||
{
|
||||
options.stylix.targets.waybar.enable = config.lib.stylix.mkEnableTarget "Waybar" true;
|
||||
|
||||
config = lib.mkIf config.stylix.targets.waybar.enable {
|
||||
programs.waybar.style = ''
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: ${sansSerif.name};
|
||||
font-size: ${builtins.toString sizes.desktop};
|
||||
}
|
||||
window#waybar {
|
||||
background: ${base00};
|
||||
color: ${base05};
|
||||
}
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
background-color: ${base01};
|
||||
color: ${base04};
|
||||
}
|
||||
#workspaces button.focused, #workspaces button.active {
|
||||
background: ${base02};
|
||||
}
|
||||
#workspaces button.urgent {
|
||||
background-color: ${base08};
|
||||
}
|
||||
#wireplumber, #pulseaudio, #sndio {
|
||||
background-color: ${base09};
|
||||
color: ${base04};
|
||||
padding: 0 5px;
|
||||
}
|
||||
#wireplumber.muted, #pulseaudio.muted, #sndio.muted {
|
||||
background-color: ${base0C};
|
||||
}
|
||||
#upower, #battery {
|
||||
background-color: ${base0D};
|
||||
color: ${base04};
|
||||
padding: 0 5px;
|
||||
}
|
||||
#upower.charging, #battery.Charging {
|
||||
background-color: ${base0E};
|
||||
}
|
||||
#network {
|
||||
background-color: ${base0B};
|
||||
color: ${base04};
|
||||
padding: 0 5px;
|
||||
}
|
||||
#network.disconnected {
|
||||
background-color: ${base0C};
|
||||
}
|
||||
#user {
|
||||
background-color: ${base0F};
|
||||
color: ${base04};
|
||||
padding: 0 5px;
|
||||
}
|
||||
#clock {
|
||||
background-color: ${base03};
|
||||
color: ${base04};
|
||||
padding: 0 5px;
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue