fix waybar configs
This commit is contained in:
parent
bd0bfbc3d0
commit
e504eae280
17 changed files with 283 additions and 240 deletions
31
modules/waybar/spotify.nix
Normal file
31
modules/waybar/spotify.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
name = "custom/spotify";
|
||||
in
|
||||
{
|
||||
options.modules.waybar = {
|
||||
modules = import ./addname.nix lib name;
|
||||
enabled.${name} = {
|
||||
enable = lib.mkEnableOption "enable ${name} waybar module";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf config.modules.waybar.enabled.${name}.enable {
|
||||
programs.waybar.settings.mainBar.${name} = {
|
||||
tooltip-format = "<big>{:%Y %B}</big>\n\n{calendar}";
|
||||
interval = 1;
|
||||
format = "{:%H:%M:%S}";
|
||||
format-alt = "{:%Y-%m-%d %H:%M:%S}";
|
||||
on-click-middle = "gnome-clocks";
|
||||
calendar = {
|
||||
weeks-pos = "left";
|
||||
format = {
|
||||
today = "<span color='#FF6666'><u>{}</u></span>"; # TODO: use nix-colors
|
||||
weeks = "<span color='#707A8C'>{}</span>"; # TODO: use nix-colors
|
||||
};
|
||||
};
|
||||
home.packages = [
|
||||
pkgs.gnome.gnome-clocks
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue