diff options
Diffstat (limited to 'share/home/waybar.nix')
| -rw-r--r-- | share/home/waybar.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/share/home/waybar.nix b/share/home/waybar.nix new file mode 100644 index 0000000..6f85d96 --- /dev/null +++ b/share/home/waybar.nix @@ -0,0 +1,48 @@ +{ 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; + }; +} |
