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:
17
src/lib/types/customModules/utils.d.ts
vendored
17
src/lib/types/customModules/utils.d.ts
vendored
@@ -1,12 +1,17 @@
|
||||
import { Variable } from 'astal';
|
||||
import { Opt } from 'src/lib/option';
|
||||
import { Binding } from 'src/lib/utils';
|
||||
import { Variable } from 'types/variable';
|
||||
|
||||
export type InputHandlerEventArgs = {
|
||||
cmd?: Opt<string> | Variable<string>;
|
||||
fn?: (output: string) => void;
|
||||
};
|
||||
export type InputHandlerEvents = {
|
||||
onPrimaryClick?: Binding;
|
||||
onSecondaryClick?: Binding;
|
||||
onMiddleClick?: Binding;
|
||||
onScrollUp?: Binding;
|
||||
onScrollDown?: Binding;
|
||||
onPrimaryClick?: InputHandlerEventArgs;
|
||||
onSecondaryClick?: InputHandlerEventArgs;
|
||||
onMiddleClick?: InputHandlerEventArgs;
|
||||
onScrollUp?: InputHandlerEventArgs;
|
||||
onScrollDown?: InputHandlerEventArgs;
|
||||
};
|
||||
|
||||
export type RunAsyncCommand = (
|
||||
|
||||
Reference in New Issue
Block a user