From f3f00def7f2fb75e64e8cb4f80a2a48291c4825d Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Tue, 27 Jun 2023 08:41:42 -0400 Subject: [PATCH] waybar: Replace hyprland/window with wlr/taskbar The taskbar is more useful than the window option, takes up less space, and shows the title of any window on hover without having to worry about vertical alignment. --- home/waybar.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/home/waybar.nix b/home/waybar.nix index fe73528f..3f151dd1 100644 --- a/home/waybar.nix +++ b/home/waybar.nix @@ -19,7 +19,7 @@ in spacing = 8; modules-left = [ "wlr/workspaces" "custom/new-workspace" ]; - modules-center = [ "hyprland/window" ]; + modules-center = [ "wlr/taskbar" ]; modules-right = [ "tray" "wireplumber" "backlight" "battery" "clock" ]; tray = { @@ -27,6 +27,13 @@ in spacing = 8; }; + "wlr/taskbar" = { + icon-size = 32; + on-click = "activate"; + on-click-middle = "activate"; + on-click-right = "activate"; + }; + "hyprland/window" = { rotate = if isVertical then 90 else 0; };