103 lines
3.5 KiB
Nix
103 lines
3.5 KiB
Nix
{inputs, pkgs, ...}:
|
|
{
|
|
# waybar requires font-awesome
|
|
home.packages = [
|
|
pkgs.font-awesome
|
|
];
|
|
|
|
# enable waybar
|
|
programs.waybar.enable = true;
|
|
programs.waybar.settings = {
|
|
mainBar = {
|
|
layer = "top";
|
|
position = "top";
|
|
height = 30;
|
|
# output = [
|
|
# "eDP-1"
|
|
# "HDMI-A-1"
|
|
# ];
|
|
modules-left = [
|
|
"hyprland/workspaces"
|
|
# "hyprland/mode"
|
|
# "wlr/taskbar"
|
|
];
|
|
modules-center = [
|
|
"hyprland/window"
|
|
"clock"
|
|
# "custom/hello-from-waybar"
|
|
];
|
|
modules-right = [
|
|
"mpd"
|
|
"tray"
|
|
"custom/notification"
|
|
# "temperature"
|
|
"group/expand"
|
|
"bluetooth"
|
|
"network"
|
|
"battery"
|
|
];
|
|
|
|
# module specific settings
|
|
"hyprland/workspaces" = {
|
|
"format" = "{icon}";
|
|
"format-icons" = {
|
|
"active" = "";
|
|
"default" = "";
|
|
"empty" = ""
|
|
};
|
|
};
|
|
"custom/notification" = {
|
|
"tooltip" = false;
|
|
"format" = "";
|
|
"on-click" = "swaync-client -t -sw";
|
|
"escape" = true;
|
|
};
|
|
"clock": {
|
|
"format" = "{:%I:%M}";
|
|
"interval" = 1;
|
|
"tooltip-format" = "<tt>{calendar}</tt>";
|
|
"calendar" = {
|
|
"format" = {
|
|
"today" = "<span color='#fAfBfC'><b>{}</b></span>"
|
|
};
|
|
};
|
|
};
|
|
|
|
"network" = {
|
|
"format-wifi" = "";
|
|
"format-ethernet" ="";
|
|
"format-disconnected" = "";
|
|
"tooltip-format-disconnected" = "Error";
|
|
"tooltip-format-wifi" = "{essid} ({signalStrength}%) ";
|
|
"tooltip-format-ethernet" = "{ifname} 🖧 ";
|
|
"on-click" = "kitty nmtui"
|
|
};
|
|
"bluetooth" = {
|
|
"format-on" = "";
|
|
"format-off" = "BT-off";
|
|
"format-disabled" = "";
|
|
"format-connected-battery" = "{device_battery_percentage}% ";
|
|
"format-alt" = "{device_alias} ";
|
|
"tooltip-format" = "{controller_alias}\t{controller_address}\n\n{num_connections} connected";
|
|
"tooltip-format-connected" = "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}";
|
|
"tooltip-format-enumerate-connected" = "{device_alias}\n{device_address}";
|
|
"tooltip-format-enumerate-connected-battery" = "{device_alias}\n{device_address}\n{device_battery_percentage}%";
|
|
"on-click-right" = "blueman-manager";
|
|
};
|
|
"battery" = {
|
|
"interval" = 60;
|
|
"states" = {
|
|
"good" = 80;
|
|
"warning" = 30;
|
|
"critical" = 10
|
|
};
|
|
"format" = "{capacity}% {icon}";
|
|
"format-charging" = "{capacity}% ";
|
|
"format-plugged" = "{capacity}% ";
|
|
"format-alt" = "{time} {icon}";
|
|
"format-icons" = [ "" "" "" "" "" "" ];
|
|
};
|
|
};
|
|
}
|
|
};
|
|
|