fix(ags): update and clean up types
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-12-25 03:11:27 -05:00
parent 8119f9f867
commit 2f5cb5b4a0
7 changed files with 40 additions and 27 deletions

Binary file not shown.

View file

@ -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"

View file

@ -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];

View file

@ -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() {

View file

@ -38,7 +38,7 @@ scale {
}
}
circular-progress {
circularprogress {
background: #363847;
min-height: 35px;
min-width: 35px;

View file

@ -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);
})}
>
<icon gIcon={bind(item, 'gicon')} />
<icon gicon={bind(item, 'gicon')} />
</menubutton>
</revealer>
);

View file

@ -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";