diff --git a/home.nix b/home.nix index 7fc6ea5..7ee4a16 100644 --- a/home.nix +++ b/home.nix @@ -16,6 +16,7 @@ ./wm/cursor.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 1d0c65a..c69cf9d 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; + }; + }; + }; +}