Duckonaut / split-monitor-workspaces

A small Hyprland plugin to provide awesome-like workspace behavior
BSD 3-Clause "New" or "Revised" License
321 stars 44 forks source link

Where to set the config value? #13

Closed Kazuto closed 6 months ago

Kazuto commented 1 year ago

I've tried setting it in hyprland.conf at plugins

plugin {
  hyperload {
    config = "~/.config/hypr/hyprload.toml"
  },
  split-monitor-workspaces {
    count: 5,
  }
}

as well as in hyprload.toml

[split-monitor-workspaces]
count = 5

but none of these methods work

zjeffer commented 1 year ago

What do you mean with "doesn't work"? Does it crash? Do the keybinds not work? Does it not assign the correct window ids?

RED-404 commented 1 year ago

I have my count set to 6 If I do a reload of hyprload "bind=SUPERSHIFT,R,hyprload,reload" it sets. 1-10 to DP-3 11-20 to DP-1 If I log-in with my second monitor DP-1 off and then turn it on, it triggers and properly sets. 1-6 DP-3 7-12 DP-1 If I turn any monitor off or on after that it normally sets it back to 1-10 ect. It has only properly set itself twice with a key bind reload.

zjeffer commented 1 year ago

I assume it is due to this Hyprland bug: https://github.com/hyprwm/Hyprland/issues/2510

For now you can fix it by changing the value here: https://github.com/Duckonaut/split-monitor-workspaces/blob/main/src/main.cpp#L101 and rebuilding.

sanjayjaras commented 1 year ago

That issue issues/2510 seems resolved but config value doesn't reflect.

Duckonaut commented 1 year ago

Hmm, this is probably related to how Hyprland lazy-loads the config file, so the value doesn't get populated as the plugin is loaded. I'll try to force it to.