From 8f5a652b6f348e2cebd2835e9111c7332d5a5051 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Tue, 21 Nov 2023 15:30:16 +0300 Subject: [PATCH] Some waybar ricing --- machines/enka/waybar/default.nix | 105 +++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) diff --git a/machines/enka/waybar/default.nix b/machines/enka/waybar/default.nix index 4926687..15634fa 100644 --- a/machines/enka/waybar/default.nix +++ b/machines/enka/waybar/default.nix @@ -3,5 +3,110 @@ homeConfiguration "nixos" { programs.waybar = enabled { systemd = enabled {}; + + settings = [{ + layer = "top"; + height = 30; + + margin-right = 10; + margin-left = 10; + margin-top = 10; + + modules-left = [ + "hyprland/workspaces" + ]; + + "hyprland/workspaces" = { + format = "{icon}"; + format-icons.default = ""; + format-icons.active = ""; + }; + + modules-center = [ + "hyprland/window" + ]; + + "hyprland/window".seperate-outputs = true; + + modules-right = [ + "tray" + "pulseaudio" + "backlight" + "cpu" + "memory" + "network" + "battery" + "clock" + ]; + + pulseaudio = { + format = "{volume}% {icon} {format_source}"; + format-bluetooth = "{volume}% {icon}󰂯 {format_source}"; + format-bluetooth-muted = "󰝟 {icon}󰂯 {format_source}"; + format-muted = "󰝟 {format_source}"; + format-source = "󰍬"; + format-source-muted = "󰍭"; + + format-icons.headphone = "󰋋"; + format-icons.headset = "󰋋"; + format-icons.default = [ + "󰕿" + "󰖀" + "󰕾" + ]; + }; + + backlight = { + format = "{percent}% {icon}"; + format-icons = [ + "" + "" + "" + "" + "" + "" + "" + "" + "" + ]; + }; + + cpu.format = "{usage}% 󰻠"; + memory.format = "{}% 󰍛"; + + network = { + format-alt = "{ifname}: {ipaddr}/{cidr}"; + format-disconnected = "󰤮"; + format-ethernet = "{ipaddr}/{cidr} 󰈀"; + format-linked = "{ifname} (No IP) "; + format-wifi = "{essid} ({signalStrength}%) "; + }; + + battery = { + format = "{capacity}% {icon}"; + format-charging = "{capacity}% 󰂄"; + format-plugged = "{capacity}% 󰂄"; + + format-icons = [ + "󰁺" + "󰁻" + "󰁼" + "󰁽" + "󰁾" + "󰁿" + "󰂀" + "󰂁" + "󰂂" + "󰁹" + ]; + + states.warning = 30; + states.critical = 15; + }; + + clock = { + tooltip-format = "{:%Y %B}\n{calendar}"; + }; + }]; }; }