diff --git a/flake.lock b/flake.lock index 0e288203..243abcde 100644 Binary files a/flake.lock and b/flake.lock differ diff --git a/lib/pkgs/default.nix b/lib/pkgs/default.nix index 213d23d2..6b1c701c 100644 --- a/lib/pkgs/default.nix +++ b/lib/pkgs/default.nix @@ -38,11 +38,11 @@ in { girName = if package.pname == "astal-wireplumber" then "AstalWp-0.1" - else if package.name == "astal-0.1.0" + else if package.pname == "astal" then "AstalIO-0.1" - else if package.name == "astal-3.0.0" + else if package.pname == "astal3" then "Astal-3.0" - else if package.name == "astal-4.0.0" + else if package.pname == "astal4" then "Astal-4.0" else if package.pname == "gtk4" then "Gtk-4.0" diff --git a/modules/ags/config/services/brightness.ts b/modules/ags/config/services/brightness.ts index 764a8a70..4d68b25c 100644 --- a/modules/ags/config/services/brightness.ts +++ b/modules/ags/config/services/brightness.ts @@ -134,7 +134,6 @@ export default class Brightness extends GObject.Object { private _getScreenIcon() { const brightness = this._screen * 100; - // eslint-disable-next-line for (const threshold of [4, 19, 69, 89]) { if (brightness > threshold + 1) { this._screenIcon = SCREEN_ICONS[threshold + 1]; diff --git a/modules/ags/config/services/tablet.ts b/modules/ags/config/services/tablet.ts index 01b1f14a..f00f481a 100644 --- a/modules/ags/config/services/tablet.ts +++ b/modules/ags/config/services/tablet.ts @@ -99,11 +99,11 @@ export default class Tablet extends GObject.Object { return; } - this._inputDetection = subprocess([ - 'fcitx5', + this._inputDetection = subprocess(['fcitx5', '--disable', 'all', - '--enable', 'keyboard,virtualkeyboardadapter,wayland,waylandim', - ]); + '--enable', 'keyboard,virtualkeyboardadapter,wayland,waylandim'], + () => { /**/ }, + () => { /**/ }); } private _stopInputDetection() { diff --git a/modules/ags/config/style/common.scss b/modules/ags/config/style/common.scss index 4d20f311..dc2c7755 100644 --- a/modules/ags/config/style/common.scss +++ b/modules/ags/config/style/common.scss @@ -38,7 +38,7 @@ scale { } } -circular-progress { +circularprogress { background: #363847; min-height: 35px; min-width: 35px; diff --git a/modules/ags/config/widgets/bar/items/tray.tsx b/modules/ags/config/widgets/bar/items/tray.tsx index 40360b4e..39ed6860 100644 --- a/modules/ags/config/widgets/bar/items/tray.tsx +++ b/modules/ags/config/widgets/bar/items/tray.tsx @@ -21,14 +21,14 @@ const TrayItem = (item: AstalTray.TrayItem) => { cursor="pointer" usePopover={false} - // @ts-expect-error types are wrong tooltipMarkup={bind(item, 'tooltipMarkup')} - // @ts-expect-error types are wrong - actionGroup={bind(item, 'actionGroup').as((ag) => ['dbusmenu', ag])} - // @ts-expect-error types are wrong menuModel={bind(item, 'menuModel')} + + setup={(self) => self.hook(item, 'notify::action-group', () => { + self.insert_action_group('dbusmenu', item.actionGroup); + })} > - + ); diff --git a/modules/ags/packages.nix b/modules/ags/packages.nix index a6f8bc16..ca5c0d39 100644 --- a/modules/ags/packages.nix +++ b/modules/ags/packages.nix @@ -7,7 +7,9 @@ self: { }: let inherit (self.inputs) ags gtk-session-lock; - inherit (lib) attrValues boolToString getExe optionalAttrs optionals removeAttrs; + gtkSessionLock = gtk-session-lock.packages.${pkgs.system}.default; + + inherit (lib) attrValues boolToString getExe optionalAttrs optionals; inherit (osConfig.networking) hostName; @@ -32,19 +34,31 @@ in { package = ags.packages.${pkgs.system}.ags.override { extraPackages = cfg.astalLibs; }; - astalLibs = - attrValues ( - removeAttrs ags.inputs.astal.packages.${pkgs.system} [ - "cava" - "powerprofiles" - "river" + astalLibs = attrValues { + inherit + (ags.inputs.astal.packages.${pkgs.system}) + io + astal3 + apps + auth + battery + bluetooth + greet + hyprland + mpris + network + notifd + tray + wireplumber + ; - # Not libraries - "docs" - "gjs" - ] - ) - ++ [gtk-session-lock.packages.${pkgs.system}.default pkgs.gtk4]; + inherit gtkSessionLock; + + inherit + (pkgs) + gtk4 # Needed to build types + ; + }; lockPkg = pkgs.writeShellApplication { name = "lock";