JaKooLit / Arch-Hyprland

For automated installation of Hyprland on Arch or any arch based distros
GNU General Public License v3.0
1.55k stars 130 forks source link

Auto Idle Inhibitor #42

Closed ShinsuSenju closed 7 months ago

ShinsuSenju commented 7 months ago

I'm using swayidle to lock screen after 15 mins. However i want to inhibit this behaviour while im watching a video or im in a full screen mode

JaKooLit commented 7 months ago

there's an idle inhibitor button on waybar. By default it should be beside the calendar but if you choose other layout, just add idle_inhibitor on that waybar

ShinsuSenju commented 7 months ago

Yeah... I do know about the waybar module. I just mean that this behaviour gets automatically called while watching a full screen video. I think there is a 'idleinhibitor' tag in window rules in hyprland. If useful we can use that

JaKooLit commented 7 months ago

sounds likw a good plan. You could create a script that if process "A" or "B" started or running, to activate idle_inhibitor.

ShinsuSenju commented 7 months ago

No need for a script https://wiki.hyprland.org/Configuring/Window-Rules/#rules

JaKooLit commented 7 months ago

this deals with hyprland stuff like hypr idle... but using something else like sway idle, you need some kind of script to trigger

But sure if that works for you then its good