From 230b402a9a238a0160659484dec72a1b8385269a Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Wed, 12 Feb 2025 10:27:56 +0100 Subject: [PATCH] format --- .../sideright/centermodules/wifinetworks.js | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.config/ags/modules/sideright/centermodules/wifinetworks.js b/.config/ags/modules/sideright/centermodules/wifinetworks.js index 533b64097..ca0e7da0c 100644 --- a/.config/ags/modules/sideright/centermodules/wifinetworks.js +++ b/.config/ags/modules/sideright/centermodules/wifinetworks.js @@ -59,24 +59,24 @@ const WifiNetwork = (accessPoint) => { const NetResource = (icon, command) => { const resourceLabel = Label({ - className: `txt-smaller txt-subtext`, - }); - const widget = Button({ - child: Box({ - hpack: 'start', - className: `spacing-h-4`, - children: [ - MaterialIcon(icon, 'very-small'), - resourceLabel, - ], - setup: (self) => self.poll(2000, () => execAsync(['bash', '-c', command]) - .then((output) => { - resourceLabel.label = output; - }).catch(print)) - , - }) - }); - return widget; + className: `txt-smaller txt-subtext`, + }); + const widget = Button({ + child: Box({ + hpack: 'start', + className: `spacing-h-4`, + children: [ + MaterialIcon(icon, 'very-small'), + resourceLabel, + ], + setup: (self) => self.poll(2000, () => execAsync(['bash', '-c', command]) + .then((output) => { + resourceLabel.label = output; + }).catch(print)) + , + }) + }); + return widget; } const CurrentNetwork = () => { @@ -109,10 +109,10 @@ const CurrentNetwork = () => { hexpand: true, hpack: 'center', className: 'sidebar-wifinetworks-bandwidth', - children: [ - NetResource('arrow_warm_up' , `${App.configDir}/scripts/network_scripts/network_bandwidth.py sent`), - NetResource('arrow_cool_down', `${App.configDir}/scripts/network_scripts/network_bandwidth.py recv`), - ] + children: [ + NetResource('arrow_warm_up', `${App.configDir}/scripts/network_scripts/network_bandwidth.py sent`), + NetResource('arrow_cool_down', `${App.configDir}/scripts/network_scripts/network_bandwidth.py recv`), + ] }); const networkStatus = Box({ children: [Label({ @@ -169,7 +169,7 @@ const CurrentNetwork = () => { children: [ MaterialIcon('language', 'hugerass'), networkName, - networkBandwidth, + networkBandwidth, networkStatus, ]