Replaced the underlying structure of Hypridle inhibitor to the Astal Idle Inhibitor module. (#776)

* Update hypridle module to be an all-purpose idle inhibitor module using Astal inhibiting.

* Fix types and module code.

* Update note

* Removed lingering comment.

* Remove hypridle from dependencies.
This commit is contained in:
Jas Singh
2025-02-16 12:20:29 -08:00
committed by GitHub
parent 867b2a7d68
commit 3698bfe2b3
10 changed files with 98 additions and 103 deletions

View File

@@ -1,6 +1,7 @@
import { App } from 'astal/gtk3';
import options from '../options';
import { BarLayouts } from 'src/lib/types/options';
import { Variable } from 'astal';
globalThis.isWindowVisible = (windowName: string): boolean => {
const appWindow = App.get_window(windowName);
@@ -22,3 +23,5 @@ globalThis.setLayout = (layout: BarLayouts): string => {
return `Failed to set layout: ${error}`;
}
};
globalThis.idleInhibit = Variable(false);