🔧 chore: use retrozinndev/gnim-utils for extra function in utils module

also started developing the universal compositor implementation again
This commit is contained in:
retrozinndev
2025-10-05 22:41:09 -03:00
parent b835de79ef
commit 76f90c4cc3
8 changed files with 218 additions and 208 deletions
@@ -95,8 +95,7 @@ class PlayerWidget extends Gtk.Box {
<Astal.Slider hexpand max={createBinding(player, "length").as(Math.floor)}
value={createBinding(player, "position").as(Math.floor)}
onChangeValue={(_, type, value) => {
if(type === undefined || type === null)
return;
if(type == null) return;
if(!dragTimer) {
dragTimer = setTimeout(() =>
+2 -2
View File
@@ -3,7 +3,7 @@ import { createBinding, createState, With } from "ags";
import { Wireplumber } from "../../modules/volume";
import { Windows } from "../../windows";
import { Backlights } from "../../modules/backlight";
import { secureBaseBinding, secureBinding, variableToBoolean } from "../../modules/utils";
import { secureBaseBinding, variableToBoolean } from "../../modules/utils";
import Pango from "gi://Pango?version=1.0";
import GLib from "gi://GLib?version=2.0";
@@ -13,7 +13,7 @@ import OSDMode from "./modules/osdmode";
export const OSDModes = {
sink: new OSDMode({
available: secureBinding(AstalWp.get_default(), "defaultSpeaker", false).as((sink) =>
available: createBinding(AstalWp.get_default(), "defaultSpeaker").as((sink) =>
Boolean(sink)),
icon: secureBaseBinding<AstalWp.Endpoint>(
createBinding(AstalWp.get_default(), "defaultSpeaker"),