Use Hyprland IPC by default.

Hyprland will remove ext-workspace-unstable-v1 support in
v0.30.0 and Workspaces with UseHyprlandIPC: false will no longer work.
This commit is contained in:
scorpion-26 2023-09-01 17:53:17 +02:00
parent 7a7c6b5ce8
commit 71278a3529
4 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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!!

View file

@ -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

View file

@ -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;
}