forked from Shinonome/dots-hyprland
scan wifi
This commit is contained in:
@@ -45,6 +45,7 @@ const centerWidgets = [
|
|||||||
name: 'Wifi networks',
|
name: 'Wifi networks',
|
||||||
materialIcon: 'wifi',
|
materialIcon: 'wifi',
|
||||||
contentWidget: ModuleWifiNetworks(),
|
contentWidget: ModuleWifiNetworks(),
|
||||||
|
onFocus: () => execAsync('nmcli dev wifi list').catch(print),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -97,6 +98,7 @@ export const sidebarOptionsStack = ExpandingIconTabContainer({
|
|||||||
children: centerWidgets.map((api) => api.contentWidget),
|
children: centerWidgets.map((api) => api.contentWidget),
|
||||||
onChange: (self, id) => {
|
onChange: (self, id) => {
|
||||||
self.shown = centerWidgets[id].name;
|
self.shown = centerWidgets[id].name;
|
||||||
|
if (centerWidgets[id].onFocus) centerWidgets[id].onFocus();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user