-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Workspaces missing after reboot #185
Comments
What if you unchecked "Monitor Specific" in the workspace settings? |
That works! But it breaks again if I enable the switch. I never used another monitor on this Laptop it's always the builtin screen (eDP). |
Could you give me your |
Here you go:
|
@LDAP Could you try with the new workspaces update?? It didn't specifically target this issue but it might help since a lot of improvements were made to the module. Also could you share with me the workspace rules in your |
I tested the update, but it doesn't fix it :( In my hyprland.conf I have:
and for the monitors I have this python script which I run whenever the monitors change: #!/bin/env python3
import json
import subprocess
from typing import Any, List
hyprctl_output = subprocess.check_output(["hyprctl", "monitors", "-j"])
monitors: List[Any] = json.loads(hyprctl_output)
monitors.sort(key=lambda x: x["x"])
def split(a, n):
k, m = divmod(len(a), n)
return (a[i * k + min(i, m) : (i + 1) * k + min(i + 1, m)] for i in range(n))
workspaces = list(range(1, 10 + 1))
split_workspaces = list(split(workspaces, len(monitors)))
for i, monitor in enumerate(monitors):
# Pin workspaces
workspaces = split_workspaces[i]
for j, workspace in enumerate(workspaces):
subprocess.check_call(
[
"hyprctl",
"keyword",
"workspace",
f"{str(workspace)},monitor:{str(monitor['name'])}{',default:true' if j == 0 else ''}",
]
)
subprocess.check_call(
[
"hyprctl",
"dispatch",
"moveworkspacetomonitor",
f"{str(workspace)} {str(monitor['id'])}",
]
)
# Switch to default workspace
subprocess.check_call(
[
"hyprctl",
"dispatch",
"workspace",
str(1),
]
) |
Thanks I'll take a look. As for the |
Something is still off. When I set it to 0 and monitor specific is disabled, it shows 8 workspaces. If monitor specific is on, all workspaces are gone. |
I can't seem to replicate it. Could you give me your complete workspace rules for all your workspaces when you get a chance please? Along with a snapshot of your workspace settings please. |
This is my complete hyprland (0.42) config :) |
@LDAP Could you git pull and see if this issue still persists for you? There were a lot of updates and I can't seem to replicate it using your python script to get the workspaces in a similar configuration. |
With hyprland 0.42 the issue still persists (though now only workspace 1 seems to be missing?). |
Same with 0.43, with Monitor specific enabled and hide unoccupied disabled I get 2-10 and the other way around I get 1-8. |
I believe I am getting a similar bug. I have two monitors with workspaces 1-5 on one and 6-10 on the other. When "Monitor Specific" is enabled the listed workspaces are [2 3 4 5 6] and [1 7 8 9 10] on the bar. They also go to that workspace when the buttons are used. Could this be a bug with the indexing when monitor specific is enabled? |
@cfleslie could you share your complete workspace hyprland config please?
I want to replicate this issue so I can find the culprit but I'm having no luck. |
@Jas-SinghFSU Sure thing. hyprland.conf
hyprctl workspacerules
hyprctl monitors
|
Can we close this due to your MR? |
I think so, I had other issues but I think they are not related to hyprpanel but rather to hyprland. |
Working well for me now. Thanks! |
Describe the bug
The Workspace module is missing workspaces (currently 1 and 2 out of 10). The workspaces exist, I can switch to them using keybinds.
To Reproduce
Not quite sure. It might be related to Aylur/ags#540 since I have a workspace rule for full-screen workspaces. However, it did work with the exact same config with a freshly installed Hyprpanel.
Expected behavior
All workspaces should be visible
Screenshots
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: