Astal
Astal copied to clipboard
Bar disappears on second screen after PC sleep
Describe the bug When I got my PC in a sleep/suspend state, after wake up, my astal bar (I use astal-lua) disappears from my second screen.
Here is a video (sorry for my dirty screen 😂)
https://github.com/user-attachments/assets/3b38bb80-a5c1-4b6d-bff4-180c79ee286a
To Reproduce
- Start astal
- Sleep PC (I do it with systemctl suspend, the button in my bar executes
astal.exec("systemctl suspend")) - Wake up PC
- Check Bar
Expected behavior Bar disappears from second screen.
Additional context Astal output after sleep
(lua:16037): Lgi-WARNING **: 12:22:59.359: Error raised while calling 'lgi.cbk (function: 0x59abb6ef9e30): GObject': /usr/share/lua/5.4/astal/variable.lua:129: bad argument #2 to 'emit_dropped' (AstalIO.VariableBase expected, got nil)
(lua:16037): Lgi-WARNING **: 12:22:59.359: Error raised while calling 'lgi.cbk (function: 0x59abb6ea4560): GObject': /usr/share/lua/5.4/astal/variable.lua:129: bad argument #2 to 'emit_dropped' (AstalIO.VariableBase expected, got nil)
Also, after my PC wakes up, the workspace in my second screen changes to a new one, for example, I have 3 workspaces, 1 and 3 in my main screen and 2 in my second, then after waking up, my second screen appears in a 4th workspace for no reason. Maybe this is a hyprland bug ¿?.