fix(ags): update and clean up types
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
8119f9f867
commit
2f5cb5b4a0
7 changed files with 40 additions and 27 deletions
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
|
@ -38,11 +38,11 @@ in {
|
||||||
girName =
|
girName =
|
||||||
if package.pname == "astal-wireplumber"
|
if package.pname == "astal-wireplumber"
|
||||||
then "AstalWp-0.1"
|
then "AstalWp-0.1"
|
||||||
else if package.name == "astal-0.1.0"
|
else if package.pname == "astal"
|
||||||
then "AstalIO-0.1"
|
then "AstalIO-0.1"
|
||||||
else if package.name == "astal-3.0.0"
|
else if package.pname == "astal3"
|
||||||
then "Astal-3.0"
|
then "Astal-3.0"
|
||||||
else if package.name == "astal-4.0.0"
|
else if package.pname == "astal4"
|
||||||
then "Astal-4.0"
|
then "Astal-4.0"
|
||||||
else if package.pname == "gtk4"
|
else if package.pname == "gtk4"
|
||||||
then "Gtk-4.0"
|
then "Gtk-4.0"
|
||||||
|
|
|
@ -134,7 +134,6 @@ export default class Brightness extends GObject.Object {
|
||||||
private _getScreenIcon() {
|
private _getScreenIcon() {
|
||||||
const brightness = this._screen * 100;
|
const brightness = this._screen * 100;
|
||||||
|
|
||||||
// eslint-disable-next-line
|
|
||||||
for (const threshold of [4, 19, 69, 89]) {
|
for (const threshold of [4, 19, 69, 89]) {
|
||||||
if (brightness > threshold + 1) {
|
if (brightness > threshold + 1) {
|
||||||
this._screenIcon = SCREEN_ICONS[threshold + 1];
|
this._screenIcon = SCREEN_ICONS[threshold + 1];
|
||||||
|
|
|
@ -99,11 +99,11 @@ export default class Tablet extends GObject.Object {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._inputDetection = subprocess([
|
this._inputDetection = subprocess(['fcitx5',
|
||||||
'fcitx5',
|
|
||||||
'--disable', 'all',
|
'--disable', 'all',
|
||||||
'--enable', 'keyboard,virtualkeyboardadapter,wayland,waylandim',
|
'--enable', 'keyboard,virtualkeyboardadapter,wayland,waylandim'],
|
||||||
]);
|
() => { /**/ },
|
||||||
|
() => { /**/ });
|
||||||
}
|
}
|
||||||
|
|
||||||
private _stopInputDetection() {
|
private _stopInputDetection() {
|
||||||
|
|
|
@ -38,7 +38,7 @@ scale {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
circular-progress {
|
circularprogress {
|
||||||
background: #363847;
|
background: #363847;
|
||||||
min-height: 35px;
|
min-height: 35px;
|
||||||
min-width: 35px;
|
min-width: 35px;
|
||||||
|
|
|
@ -21,14 +21,14 @@ const TrayItem = (item: AstalTray.TrayItem) => {
|
||||||
cursor="pointer"
|
cursor="pointer"
|
||||||
|
|
||||||
usePopover={false}
|
usePopover={false}
|
||||||
// @ts-expect-error types are wrong
|
|
||||||
tooltipMarkup={bind(item, 'tooltipMarkup')}
|
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')}
|
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>
|
</menubutton>
|
||||||
</revealer>
|
</revealer>
|
||||||
);
|
);
|
||||||
|
|
|
@ -7,7 +7,9 @@ self: {
|
||||||
}: let
|
}: let
|
||||||
inherit (self.inputs) ags gtk-session-lock;
|
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;
|
inherit (osConfig.networking) hostName;
|
||||||
|
|
||||||
|
@ -32,19 +34,31 @@ in {
|
||||||
package = ags.packages.${pkgs.system}.ags.override {
|
package = ags.packages.${pkgs.system}.ags.override {
|
||||||
extraPackages = cfg.astalLibs;
|
extraPackages = cfg.astalLibs;
|
||||||
};
|
};
|
||||||
astalLibs =
|
astalLibs = attrValues {
|
||||||
attrValues (
|
inherit
|
||||||
removeAttrs ags.inputs.astal.packages.${pkgs.system} [
|
(ags.inputs.astal.packages.${pkgs.system})
|
||||||
"cava"
|
io
|
||||||
"powerprofiles"
|
astal3
|
||||||
"river"
|
apps
|
||||||
|
auth
|
||||||
|
battery
|
||||||
|
bluetooth
|
||||||
|
greet
|
||||||
|
hyprland
|
||||||
|
mpris
|
||||||
|
network
|
||||||
|
notifd
|
||||||
|
tray
|
||||||
|
wireplumber
|
||||||
|
;
|
||||||
|
|
||||||
# Not libraries
|
inherit gtkSessionLock;
|
||||||
"docs"
|
|
||||||
"gjs"
|
inherit
|
||||||
]
|
(pkgs)
|
||||||
)
|
gtk4 # Needed to build types
|
||||||
++ [gtk-session-lock.packages.${pkgs.system}.default pkgs.gtk4];
|
;
|
||||||
|
};
|
||||||
|
|
||||||
lockPkg = pkgs.writeShellApplication {
|
lockPkg = pkgs.writeShellApplication {
|
||||||
name = "lock";
|
name = "lock";
|
||||||
|
|
Loading…
Reference in a new issue