diff --git a/.config/ags/modules/sideright/quicktoggles.js b/.config/ags/modules/sideright/quicktoggles.js index 1c33c1bf2..300e5236b 100644 --- a/.config/ags/modules/sideright/quicktoggles.js +++ b/.config/ags/modules/sideright/quicktoggles.js @@ -78,7 +78,7 @@ export const HyprToggleIcon = async (icon, name, hyprlandConfigValue, props = {} } } -export const ModuleNightLight = (props = {}) => Widget.Button({ // TODO: Make this work +export const ModuleNightLight = (props = {}) => Widget.Button({ attribute: { enabled: false, }, @@ -87,13 +87,13 @@ 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(['wlsunset', '-t', '4500']).catch(print) - else Utils.execAsync('pkill wlsunset').catch(print); + if (self.attribute.enabled) Utils.execAsync('gammastep').catch(print) + else Utils.execAsync('pkill gammastep').catch(print); }, child: MaterialIcon('nightlight', 'norm'), setup: (self) => { setupCursorHover(self); - self.attribute.enabled = !!exec('pidof wlsunset'); + self.attribute.enabled = !!exec('pidof gammastep'); self.toggleClassName('sidebar-button-active', self.attribute.enabled); }, ...props, @@ -235,6 +235,3 @@ export const ModulePowerIcon = (props = {}) => Widget.Button({ setupCursorHover(button); } }) - - - diff --git a/.config/hypr/hyprland/execs.conf b/.config/hypr/hyprland/execs.conf index ef0c62baa..936429f6e 100644 --- a/.config/hypr/hyprland/execs.conf +++ b/.config/hypr/hyprland/execs.conf @@ -1,5 +1,6 @@ # Bar, wallpaper exec-once = swww-daemon --format xrgb +exec-once = /usr/lib/geoclue-2.0/demos/agent exec-once = ags & # Input method @@ -19,5 +20,3 @@ exec-once = wl-paste --type image --watch cliphist store # Cursor exec-once = hyprctl setcursor Bibata-Modern-Classic 24 - - diff --git a/scriptdata/dependencies.conf b/scriptdata/dependencies.conf index 9fe10337d..e2d770ed1 100644 --- a/scriptdata/dependencies.conf +++ b/scriptdata/dependencies.conf @@ -26,7 +26,7 @@ pavucontrol wireplumber libdbusmenu-gtk3 playerctl swww webp-pixbuf-loader gtk-layer-shell gtk3 gtksourceview3 gobject-introspection upower yad ydotool ### Gnome -polkit-gnome gnome-keyring gnome-control-center blueberry networkmanager brightnessctl wlsunset gnome-bluetooth-3.0 +polkit-gnome gnome-keyring gnome-control-center blueberry networkmanager brightnessctl gammastep gnome-bluetooth-3.0 ### Widgets python-pywayland python-psutil hypridle-git hyprlock-git wlogout wl-clipboard hyprpicker-git anyrun-git