From edaed6c883848ba37934f9d9b8901a6f50f212af Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 22 Feb 2024 13:19:18 +0700 Subject: [PATCH] night light: make not too warm --- .config/ags/modules/sideright/quicktoggles.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.config/ags/modules/sideright/quicktoggles.js b/.config/ags/modules/sideright/quicktoggles.js index ca010122e..39036cece 100644 --- a/.config/ags/modules/sideright/quicktoggles.js +++ b/.config/ags/modules/sideright/quicktoggles.js @@ -96,8 +96,7 @@ export const ModuleNightLight = (props = {}) => Widget.Button({ // TODO: Make th onClicked: (self) => { self.attribute.enabled = !self.attribute.enabled; self.toggleClassName('sidebar-button-active', self.attribute.enabled); - // if (self.attribute.enabled) Utils.execAsync(['bash', '-c', 'wlsunset & disown']) - if (self.attribute.enabled) Utils.execAsync('wlsunset').catch(print) + if (self.attribute.enabled) Utils.execAsync(['wlsunset', '-t', '4500']).catch(print) else Utils.execAsync('pkill wlsunset').catch(print); }, child: MaterialIcon('nightlight', 'norm'),