forked from Shinonome/dots-hyprland
Add gamma indicator
This commit is contained in:
@@ -13,6 +13,8 @@ import Quickshell.Hyprland
|
||||
*/
|
||||
Singleton {
|
||||
id: root
|
||||
signal gammaChangeAttempt()
|
||||
|
||||
property string from: Config.options?.light?.night?.from ?? "19:00"
|
||||
property string to: Config.options?.light?.night?.to ?? "06:30"
|
||||
property bool automatic: Config.options?.light?.night?.automatic && (Config?.ready ?? true)
|
||||
@@ -105,6 +107,8 @@ Singleton {
|
||||
function setGamma(gamma) {
|
||||
root.gamma = Math.max(0, Math.min(100, gamma));
|
||||
|
||||
root.gammaChangeAttempt();
|
||||
|
||||
if (root.gamma !== 100) {
|
||||
// console.log("[Hyprsunset] Enabling");
|
||||
Quickshell.execDetached(["bash", "-c", `
|
||||
|
||||
Reference in New Issue
Block a user