waybar redo
This commit is contained in:
parent
0b21647b2b
commit
f5a8935507
14 changed files with 223 additions and 72 deletions
34
modules/waybar/bluetooth.nix
Normal file
34
modules/waybar/bluetooth.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
name = "custom/bluetooth";
|
||||
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}" = {
|
||||
format = "";
|
||||
on-click = lib.meta.getExe' pkgs.blueberry "blueberry";
|
||||
};
|
||||
style = ''
|
||||
#custom-bluetooth {
|
||||
color: #${config.colorScheme.palette.taskbarText};
|
||||
margin: 5px 0px;
|
||||
padding: 0 8px;
|
||||
background-color: #${config.colorScheme.palette.taskbarBackground};
|
||||
border-radius: 999px 0 0 999px;
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue