Closed catmeowjiao closed 8 months ago
Sometimes, we need to prevent the screen from locking when closing the laptop lid. Therefore, I wrote a script.
First, create ~/.config/hypr/hypridle.conf.bak, in which you replace both $lock_cmd and $suspend_cmd with echo " ".
~/.config/hypr/hypridle.conf.bak
$lock_cmd
$suspend_cmd
echo " "
Next, add the following code to ~/.config/hypr/hyprland/keybinds.conf.
~/.config/hypr/hyprland/keybinds.conf
# Normal screen off / Keep screen on bind = Super+Alt, S, exec, mv ~/.config/hypr/hypridle.conf ~/.config/hypr/hypridle.conf.bak.bak && mv ~/.config/hypr/hypridle.conf.bak ~/.config/hypr/hypridle.conf && mv ~/.config/hypr/hypridle.conf.bak.bak ~/.config/hypr/hypridle.conf.bak
This way, after pressing Super + Alt + S, you can toggle between normal screen off and keeping the screen on.
Pull Requests are cumbersome, so I submitted an Issue. Please consider adding this feature in your busy schedule, thank you!
Pull Requests
Issue
Use the coffee button on the sidebar to prevent idle
I'm not sure how renaming hypridle config would prevent suspend on lid close though
oh, i'm an idiot
Sometimes, we need to prevent the screen from locking when closing the laptop lid. Therefore, I wrote a script.
First, create
~/.config/hypr/hypridle.conf.bak
, in which you replace both$lock_cmd
and$suspend_cmd
withecho " "
.Next, add the following code to
~/.config/hypr/hyprland/keybinds.conf
.This way, after pressing Super + Alt + S, you can toggle between normal screen off and keeping the screen on.
Pull Requests
are cumbersome, so I submitted anIssue
. Please consider adding this feature in your busy schedule, thank you!