diff --git a/README.md b/README.md index 7d275cf..1a2a3a9 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ gBar bluetooth [monitor] ## Features / Widgets Bar: -- Workspaces (Hyprland only. Technically works on all compositors implementing ext_workspace, though workspace control relies on Hyprland) +- Workspaces (Hyprland only. Technically works on all compositors implementing ext_workspace when ```UseHyprlandIPC``` is false, though workspace control relies on Hyprland) - Time - Bluetooth (BlueZ only) - Audio control diff --git a/data/config b/data/config index b8be032..d4554dd 100644 --- a/data/config +++ b/data/config @@ -37,7 +37,9 @@ WorkspaceScrollInvert: false # Use Hyprland IPC instead of the ext_workspace protocol for workspace polling. # Hyprland IPC is *slightly* less performant (+0.1% one core), but way less bug prone, # since the protocol is not as feature complete as Hyprland IPC. -UseHyprlandIPC: false +# NOTE: Hyprland no longer supports ext-workspace-unstable-v1 as of commit bb09334. +# Hyprland IPC is thus *required* for workspace support under Hyprland >=v0.30.0! +UseHyprlandIPC: true # The location of the bar # Needs to be capitalized!! diff --git a/src/Config.h b/src/Config.h index 37fd32f..b0ed921 100644 --- a/src/Config.h +++ b/src/Config.h @@ -30,7 +30,7 @@ public: bool networkWidget = true; bool workspaceScrollOnMonitor = true; // Scroll through workspaces on monitor instead of all bool workspaceScrollInvert = false; // Up = +1, instead of Up = -1 - bool useHyprlandIPC = false; // Use Hyprland IPC instead of ext_workspaces protocol (Less buggy, but also less performant) + bool useHyprlandIPC = true; // Use Hyprland IPC instead of ext_workspaces protocol (Less buggy, but also less performant) bool enableSNI = true; // Enable tray icon // Controls for color progression of the network widget diff --git a/src/Wayland.cpp b/src/Wayland.cpp index 6b529b5..8bfad9a 100644 --- a/src/Wayland.cpp +++ b/src/Wayland.cpp @@ -183,6 +183,7 @@ namespace Wayland if (!workspaceManager && !Config::Get().useHyprlandIPC) { LOG("Compositor doesn't implement zext_workspace_manager_v1, disabling workspaces!"); + LOG("Note: Hyprland v0.30.0 removed support for zext_workspace_manager_v1, please enable UseHyprlandIPC instead!"); RuntimeConfig::Get().hasWorkspaces = false; return; }