Open rszyma opened 10 months ago
IIRC in unsafe state keybinds are purposefully disabled. What's the keybind?
What's the keybind?
bind = SUPERSHIFT, H, exec, ~/.config/hypr/scripts/switch-monitors-cfg
switch-monitors-cfg
is bash script that uses sed
to change monitors config path between:
source = ~/.config/hypr/configs/monitors/0.conf
and
source = ~/.config/hypr/configs/monitors/1.conf
IIRC in unsafe state keybinds are purposefully disabled
What is the reason? IG some dispatchers don't make sense to call when no monitor is available e.g. moving windows around, so maybe only allow some dispatchers selectively? I think exec should be ok to allow.
true
Cool. Are you planning to work on this anytime soon?
no clue. You can make a mr, that would help speed this up.
Just came across the same issue myself. I noticed none of my shortcuts work when no monitors are enabled, not just shortcuts related to monitors. This poses a problem especially when I disconnect my external monitor, but then can't use the shortcut to re-enable my builtin monitor.
keybindmanager.cpp:291 remove check for unsafe state and it should work I guess
I have this problem too and it is kind of an issue since I can't switch monitors to my laptop after unplugging the HDMI cable.
Hyprland Version
Hyprland, built from branch main at commit 68e57b7ee36f015d99988f38cb3a8b83c23ae7c3 (renderer: proper full occlusion checks for back layer). Tag: v0.32.3-79-g68e57b7e flags: (if any)
Bug or Regression?
Bug
Description
I've set up a keybinding that runs a script that cycles between monitor configs. It works as long as at least 1 monitor is enabled, and if no monitors are available the keybind don't work and I'm stuck on black screen unless I kill Hyprland, go to tty, run the script manually and start Hyprland again.
How to reproduce
Crash reports, logs, images, videos
No response