From a75bc98846ed11f60fee9eca2effee7eb02718c7 Mon Sep 17 00:00:00 2001 From: Armel van Ravels Date: Sat, 17 Jan 2026 23:07:49 +0100 Subject: [PATCH] Add waybar config --- home.nix | 1 + wm/hyprland.nix | 2 -- wm/waybar.nix | 31 +++++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 wm/waybar.nix diff --git a/home.nix b/home.nix index 54bc9be..f33ff1f 100644 --- a/home.nix +++ b/home.nix @@ -15,6 +15,7 @@ ./programs/firefox.nix ./wm/dconf.nix ./wm/gtk.nix + ./wm/waybar.nix ./wm/hyprland.nix ./wm/hyprpaper.nix ]; diff --git a/wm/hyprland.nix b/wm/hyprland.nix index f28988d..2493ebd 100644 --- a/wm/hyprland.nix +++ b/wm/hyprland.nix @@ -6,8 +6,6 @@ bzmenu ]; - programs.waybar.enable = true; - wayland.windowManager.hyprland = { enable = true; diff --git a/wm/waybar.nix b/wm/waybar.nix new file mode 100644 index 0000000..d968125 --- /dev/null +++ b/wm/waybar.nix @@ -0,0 +1,31 @@ +{ pkgs, ... }: + +{ + programs.waybar = { + enable = true; + + settings.mainBar = { + layer = "top"; + position = "top"; + height = 30; + + modules-left = [ + "hyprland/workspaces" + ]; + + modules-right = [ + "cpu" + "clock" + ]; + + cpu = { + format = "{usage}% "; + tooltip = false; + }; + + clock = { + tooltip = false; + }; + }; + }; +}