From 086144490b91bb3b821424b88913ad6ecf0f393f Mon Sep 17 00:00:00 2001 From: matt1432 Date: Mon, 21 Oct 2024 03:22:02 -0400 Subject: [PATCH] chore(ags): bump npm deps and fix breaking changes --- nixosModules/ags/config/package-lock.json | Bin 74887 -> 74927 bytes nixosModules/ags/config/package.json | 10 +++++----- nixosModules/ags/default.nix | 2 +- nixosModules/ags/v2/default.nix | 3 +-- nixosModules/ags/v2/package-lock.json | Bin 74875 -> 74915 bytes nixosModules/ags/v2/package.json | 10 +++++----- .../ags/v2/widgets/applauncher/main.tsx | 5 +++-- .../v2/widgets/bar/items/current-client.tsx | 5 ++--- .../ags/v2/widgets/notifs/notification.tsx | 3 +-- 9 files changed, 18 insertions(+), 20 deletions(-) diff --git a/nixosModules/ags/config/package-lock.json b/nixosModules/ags/config/package-lock.json index 680a7f70065fbea9af7281dfb3edf0736cbfe50f..3b346eedd56a6746e01478a9a62c0f36a6cadd90 100644 GIT binary patch delta 2201 zcmZXVPmJ4m6~~o!+S#gqr0JBM(w5RKbSX8|N$ezcp|JiN$FXC_e`3c%0y|FZBu>Wp z>px=Y6b^+7!LmQ0a#?nlJL;f0a6$ap3);)ViUUYU)m{)i09qk#d%-iEbog_7`o+ro zyzl$I_a3~v_W0ek-SfE|0^Z-*0=IHet^ziSmq19bt>L!|2*|zoBG@t4!P9S_0e{b} zA4hK^*#{TE>0|f658f$(UminqIB33#gU=oROcwp@@-00cSenXu3>7-K4w6)L_`WSc`BG*~jI1S+iO+0nk}j(9$ilXb4paia zxu62+Aq4*Q@W$S9?YCzieRDH+2fT6l1#s{DxeWUtb6Dd0)3ih`9&( zwU@M6uZOAT#HJW(cy|&g{7|XaQk*sFmy|elDdM4O@&2L=Z%%Uu_R%3-^yN$Y)qE$-Z@-|G`DNAAG^=4X2*is?z3wKs*xD zMVW!HSBgFe;{_~FG$4SmMbhU6k%bDI zUePiq{bsLIEs{LfZ=lV3lDZP#M;go+o@nEN9t=kZnIG@G1b+9$yIJgrp>aGxP=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OaH>2^jrF2aH@X%#n-OBx+{6RzGo`{ z>u;UddYv&2JXeLpt$;ssd-N?_aCC?u#CGZ?uz+}7YhW|5V-P|WBYlX*OuE!)S`&4I z_!Ex6tD)%`{W>kGg2$zy*_0S>gP%JYU|`XEL@X<0@;VqLas@JUJtXRND||oSX3YEY&H74!TIAj&lgUGPphGj%%Z^J}U50*h#yM zflVS3L-3mIJPxuwM?TliJ#+5T0jzL#>!P^8CCU-JO?x4txh7?_LBW_AC3GxRO~F+J|^MvpzG9gVjRB57xQX3Zq(4Zrz%ZnWUw}u#QFKMT_@N|SQuK7i%n3X8ZwgEZ{+D7?=RajZf8>) zbiB^6tXGP@k5q)ltkQZ0=*KsH1Wv#6QWmC1LF*>9v*WY#*1elYj%F+Uu1AAM-@gLB z`%6gI0#PVZ3>qird){((X5$swl}TovyEUNbfbkS1^}b!U|sL z3ei}^Cz`_-EcrOS`ur6_y4+`h=;(heqdzuZBNc)G diff --git a/nixosModules/ags/v2/package.json b/nixosModules/ags/v2/package.json index 2a8a6c82..64ba3347 100644 --- a/nixosModules/ags/v2/package.json +++ b/nixosModules/ags/v2/package.json @@ -3,15 +3,15 @@ "version": "0.0.0", "main": "app.ts", "dependencies": { - "@eslint/js": "9.12.0", + "@eslint/js": "9.13.0", "@stylistic/eslint-plugin": "2.9.0", "@types/eslint__js": "8.42.3", - "@types/node": "22.7.5", - "eslint": "9.12.0", - "eslint-plugin-jsdoc": "50.3.2", + "@types/node": "22.7.7", + "eslint": "9.13.0", + "eslint-plugin-jsdoc": "50.4.3", "fzf": "0.5.2", "jiti": "2.3.3", "typescript": "5.6.3", - "typescript-eslint": "8.8.1" + "typescript-eslint": "8.10.0" } } diff --git a/nixosModules/ags/v2/widgets/applauncher/main.tsx b/nixosModules/ags/v2/widgets/applauncher/main.tsx index 2ebbdf6b..58b0eb81 100644 --- a/nixosModules/ags/v2/widgets/applauncher/main.tsx +++ b/nixosModules/ags/v2/widgets/applauncher/main.tsx @@ -1,4 +1,5 @@ import { App, Astal, Gtk, Widget } from 'astal/gtk3'; +import { idle } from 'astal'; import AstalApps from 'gi://AstalApps?version=0.1'; @@ -80,7 +81,7 @@ export default () => { } }); - const refreshApplications = () => { + const refreshApplications = () => idle(() => { (list.get_children() as Gtk.ListBoxRow[]) .forEach((child) => { child.destroy(); @@ -96,7 +97,7 @@ export default () => { list.show_all(); on_text_change(''); - }; + }); refreshApplications(); diff --git a/nixosModules/ags/v2/widgets/bar/items/current-client.tsx b/nixosModules/ags/v2/widgets/bar/items/current-client.tsx index 6225546c..241a6665 100644 --- a/nixosModules/ags/v2/widgets/bar/items/current-client.tsx +++ b/nixosModules/ags/v2/widgets/bar/items/current-client.tsx @@ -20,12 +20,11 @@ export default () => { client: AstalHyprland.Client | null = Hyprland.get_focused_client(), ) => { lastFocused = client?.get_address(); - const app = Applications.query( + const app = Applications.fuzzy_query( client?.get_class() ?? '', - false, )[0]; - focusedIcon.set(app.iconName ?? ''); + focusedIcon.set(app?.iconName ?? ''); focusedTitle.set(client?.get_title() ?? ''); const id = client?.connect('notify::title', (c) => { if (c.get_address() !== lastFocused) { diff --git a/nixosModules/ags/v2/widgets/notifs/notification.tsx b/nixosModules/ags/v2/widgets/notifs/notification.tsx index e7904a62..25edf810 100644 --- a/nixosModules/ags/v2/widgets/notifs/notification.tsx +++ b/nixosModules/ags/v2/widgets/notifs/notification.tsx @@ -34,9 +34,8 @@ const NotifIcon = ({ notifObj }: { icon = notifObj.get_app_icon(); } else { - icon = Applications.query( + icon = Applications.fuzzy_query( notifObj.get_app_name(), - false, )[0].get_icon_name(); }