From 2b07dea3a6bb9d0e659f2c99318919023be4f370 Mon Sep 17 00:00:00 2001 From: MisterPine Date: Sat, 29 Jul 2023 00:30:33 +0200 Subject: [PATCH 1/2] Fix broken start behavior for `hyprland/window` --- src/modules/hyprland/window.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/hyprland/window.cpp b/src/modules/hyprland/window.cpp index 81c864d..60de074 100644 --- a/src/modules/hyprland/window.cpp +++ b/src/modules/hyprland/window.cpp @@ -26,6 +26,7 @@ Window::Window(const std::string& id, const Bar& bar, const Json::Value& config) queryActiveWorkspace(); update(); + dp.emit(); // register for hyprland ipc gIPC->registerForIPC("activewindow", this); From 05e5a7e5fd63b15f5760ce34b987435706a0d0af Mon Sep 17 00:00:00 2001 From: MisterPine Date: Sat, 29 Jul 2023 00:35:01 +0200 Subject: [PATCH 2/2] Document icon for `hyprland/window` --- man/waybar-hyprland-window.5.scd | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/man/waybar-hyprland-window.5.scd b/man/waybar-hyprland-window.5.scd index 5e7b4d5..3e1926b 100644 --- a/man/waybar-hyprland-window.5.scd +++ b/man/waybar-hyprland-window.5.scd @@ -25,6 +25,16 @@ Addressed by *hyprland/window* typeof: bool ++ Show the active window of the monitor the bar belongs to, instead of the focused window. +*icon*: ++ + typeof: bool ++ + default: false ++ + Option to hide the application icon. + +*icon-size*: ++ + typeof: integer ++ + default: 24 ++ + Option to change the size of the application icon. + # FORMAT REPLACEMENTS See the output of "hyprctl clients" for examples