{ lib, ... }: { programs.waybar = { enable = true; systemd = { enable = true; target = "hyprland-session.target"; }; settings.mainBar = { layer = "top"; position = "right"; width = 15; reload_style_on_change = true; modules-left = [ "hyprland/workspaces" ]; modules-right = [ "battery" "network" "cpu" "memory" "temperature" "backlight" "keyboard-state" "clock" "tray" ]; battery = { format = lib.concatStringsSep "\n" [ "{icon} {capacity}%" "󱐋 {power:4.1f} W" ]; interval = 2; format-icons = [ "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ]; }; keyboard-state = { numlock = true; capslock = true; format = "{name} {icon}"; format-icons = { locked = ""; unlocked = ""; }; }; }; # end of settings.mainBar style = builtins.readFile ./waybar.css; }; }