end-4 / dots-hyprland

i hate minimalism so...
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.71k stars 255 forks source link

[Issue] Keep screen on #364

Open catmeowjiao opened 5 months ago

catmeowjiao commented 5 months ago

The coffee button on the sidebar cannot keep the screen open when covering the laptop lid.

end-4 commented 5 months ago

because it isn't supposed to have you checked this on hyprland wiki? https://wiki.hyprland.org/Configuring/Binds/#switches

catmeowjiao commented 5 months ago

Sorry, I did not consult the information.

Here is the code from the link you gave:

# trigger when the switch is toggled
bindl=,switch:[switch name],exec,swaylock
# trigger when the switch is turning on
bindl=,switch:on:[switch name],exec,hyprctl keyword monitor "eDP-1, disable"
# trigger when the switch is turning off
bindl=,switch:off:[switch name],exec,hyprctl keyword monitor "eDP-1, 2560x1600, 0x0, 1"

What does "switch is toggled", "switch is turning on", "switch is turning off" mean in these three comments?

How can I realize the effect similar to the one in this discussion?

NextStep-IM commented 5 months ago

What does "switch is toggled", "switch is turning on", "switch is turning off" mean in these three comments?

"Switch is toggled" means that there has been a change in its on/off status, "switch is turning on" means that the lid is being closed and "switch is turning off" means that the lid is being opened.

How can I realize the effect similar to the one in this discussion

That I am not sure about.