Added the hyprsunset module (requires hyprland v0.45.0) (#485)

* add sunset module

* Implement hyprsunset module.

* Update themes

* Undo vivids

* Fix vivids
This commit is contained in:
Jas Singh
2024-11-12 03:35:27 -08:00
committed by GitHub
parent a7855baf13
commit 6cab0ff4b7
51 changed files with 1546 additions and 1086 deletions

View File

@@ -633,6 +633,83 @@ export const CustomModuleSettings = (): Scrollable<GtkWidget, Attribute> =>
type: 'string',
}),
/*
************************************
* HYPRSUNSET *
************************************
*/
Header('Hyprsunset'),
Option({
opt: options.bar.customModules.hyprsunset.temperature,
title: 'Temperature',
subtitle: 'Ex: 1000k, 2000k, 5000k, etc.',
type: 'string',
}),
Option({
opt: options.theme.bar.buttons.modules.hyprsunset.enableBorder,
title: 'Button Border',
type: 'boolean',
}),
Option({
opt: options.bar.customModules.hyprsunset.onIcon,
title: 'Enabled Icon',
type: 'string',
}),
Option({
opt: options.bar.customModules.hyprsunset.offIcon,
title: 'Disabled Icon',
type: 'string',
}),
Option({
opt: options.bar.customModules.hyprsunset.onLabel,
title: 'Enabled Label',
type: 'string',
}),
Option({
opt: options.bar.customModules.hyprsunset.offLabel,
title: 'Disabled Label',
type: 'string',
}),
Option({
opt: options.bar.customModules.hyprsunset.label,
title: 'Show Label',
type: 'boolean',
}),
Option({
opt: options.theme.bar.buttons.modules.hyprsunset.spacing,
title: 'Spacing',
type: 'string',
}),
Option({
opt: options.bar.customModules.hyprsunset.pollingInterval,
title: 'Polling Interval',
type: 'number',
subtitle: "WARNING: Be careful of your package manager's rate limit.",
min: 100,
max: 60 * 24 * 1000,
increment: 1000,
}),
Option({
opt: options.bar.customModules.hyprsunset.rightClick,
title: 'Right Click',
type: 'string',
}),
Option({
opt: options.bar.customModules.hyprsunset.middleClick,
title: 'Middle Click',
type: 'string',
}),
Option({
opt: options.bar.customModules.hyprsunset.scrollUp,
title: 'Scroll Up',
type: 'string',
}),
Option({
opt: options.bar.customModules.hyprsunset.scrollDown,
title: 'Scroll Down',
type: 'string',
}),
/*
************************************
* POWER *