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

@@ -386,6 +386,15 @@ const options = mkOptions(OPTIONS, {
icon_background: opt(colors.base2),
spacing: opt('0.45em'),
},
hypridle: {
enableBorder: opt(false),
border: opt(colors.peach),
background: opt(colors.base2),
text: opt(colors.peach),
icon: opt(colors.peach),
icon_background: opt(colors.base2),
spacing: opt('0.45em'),
},
},
},
menus: {
@@ -1117,6 +1126,18 @@ const options = mkOptions(OPTIONS, {
scrollUp: opt(''),
scrollDown: opt(''),
},
hypridle: {
label: opt(true),
onIcon: opt(''),
offIcon: opt(''),
onLabel: opt('On'),
offLabel: opt('Off'),
pollingInterval: opt(1000 * 2),
rightClick: opt(''),
middleClick: opt(''),
scrollUp: opt(''),
scrollDown: opt(''),
},
},
},