feat: idle inhibit (#502)

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
Rubin Bhandari
2024-11-18 01:14:36 +05:45
committed by GitHub
parent 1c287a92bd
commit 4b041bcf1f
8 changed files with 236 additions and 14 deletions

View File

@@ -25,6 +25,7 @@ import {
Weather,
Power,
Hyprsunset,
Hypridle,
} from './Exports';
import { BarItemBox as WidgetContainer } from '../shared/barItemBox.js';
@@ -66,6 +67,7 @@ type Section =
| 'weather'
| 'power'
| 'systray'
| 'hypridle'
| 'hyprsunset';
type Layout = {
@@ -124,6 +126,7 @@ const widget = {
weather: (): Button<Child, Attribute> => WidgetContainer(Weather()),
power: (): Button<Child, Attribute> => WidgetContainer(Power()),
hyprsunset: (): Button<Child, Attribute> => WidgetContainer(Hyprsunset()),
hypridle: (): Button<Child, Attribute> => WidgetContainer(Hypridle()),
};
type GdkMonitors = {