mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
scan wifi
This commit is contained in:
@@ -45,6 +45,7 @@ const centerWidgets = [
|
||||
name: 'Wifi networks',
|
||||
materialIcon: 'wifi',
|
||||
contentWidget: ModuleWifiNetworks(),
|
||||
onFocus: () => execAsync('nmcli dev wifi list').catch(print),
|
||||
},
|
||||
];
|
||||
|
||||
@@ -97,6 +98,7 @@ export const sidebarOptionsStack = ExpandingIconTabContainer({
|
||||
children: centerWidgets.map((api) => api.contentWidget),
|
||||
onChange: (self, id) => {
|
||||
self.shown = centerWidgets[id].name;
|
||||
if (centerWidgets[id].onFocus) centerWidgets[id].onFocus();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user