initial commit
This commit is contained in:
82
modules/home/waybar.nix
Normal file
82
modules/home/waybar.nix
Normal file
@@ -0,0 +1,82 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
style = ''
|
||||
* {
|
||||
background-color: #${config.colorScheme.palette.base00};
|
||||
color: #${config.colorScheme.palette.base05};
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
min-height: 0;
|
||||
font-family: '${config.nomarchy.fonts.monospace}';
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.modules-left { margin-left: 8px; }
|
||||
.modules-right { margin-right: 8px; }
|
||||
|
||||
#workspaces button {
|
||||
all: initial;
|
||||
padding: 0 6px;
|
||||
margin: 0 1.5px;
|
||||
min-width: 9px;
|
||||
color: #${config.colorScheme.palette.base04};
|
||||
}
|
||||
|
||||
#workspaces button.focused, #workspaces button.active {
|
||||
color: #${config.colorScheme.palette.base0B};
|
||||
}
|
||||
|
||||
#workspaces button.empty { opacity: 0.5; }
|
||||
|
||||
#cpu, #battery, #pulseaudio, #custom-nomarchy, #custom-update {
|
||||
min-width: 12px;
|
||||
margin: 0 7.5px;
|
||||
}
|
||||
|
||||
#tray { margin-right: 16px; }
|
||||
#bluetooth { margin-right: 17px; }
|
||||
'';
|
||||
settings = [{
|
||||
layer = "top";
|
||||
position = "top";
|
||||
height = 26;
|
||||
spacing = 0;
|
||||
modules-left = [ "custom/nomarchy" "hyprland/workspaces" ];
|
||||
modules-center = [ "clock" "custom/update" "custom/voxtype" "custom/screenrecording-indicator" "custom/idle-indicator" "custom/notification-silencing-indicator" ];
|
||||
modules-right = [ "group/tray-expander" "bluetooth" "network" "pulseaudio" "cpu" "battery" ];
|
||||
"custom/nomarchy" = {
|
||||
format = "<span font='nomarchy'>\ue900</span>";
|
||||
on-click = "nomarchy-menu";
|
||||
on-click-right = "xdg-terminal-exec";
|
||||
tooltip-format = "Nomarchy Menu\n\nSuper + Alt + Space";
|
||||
};
|
||||
"hyprland/workspaces" = {
|
||||
on-click = "activate";
|
||||
format = "{icon}";
|
||||
format-icons = {
|
||||
default = "";
|
||||
active = "";
|
||||
};
|
||||
};
|
||||
"clock" = {
|
||||
format = "{:%H:%M}";
|
||||
};
|
||||
"battery" = {
|
||||
format = "{icon} {capacity}%";
|
||||
format-icons = ["" "" "" "" ""];
|
||||
};
|
||||
"pulseaudio" = {
|
||||
format = "{icon} {volume}%";
|
||||
format-icons = ["" "" ""];
|
||||
};
|
||||
"network" = {
|
||||
format-wifi = " {essid}";
|
||||
format-ethernet = " {ipaddr}";
|
||||
format-disconnected = "⚠ Disconnected";
|
||||
};
|
||||
}];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user