mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
Update sideright.js
This commit is contained in:
parent
074328b3aa
commit
9eaf715666
1 changed files with 6 additions and 7 deletions
|
|
@ -31,28 +31,28 @@ const centerWidgets = [
|
|||
{
|
||||
name: 'Notifications',
|
||||
materialIcon: 'notifications',
|
||||
contentWidget: ModuleNotificationList(),
|
||||
contentWidget: ModuleNotificationList,
|
||||
},
|
||||
{
|
||||
name: 'Audio controls',
|
||||
materialIcon: 'volume_up',
|
||||
contentWidget: ModuleAudioControls(),
|
||||
contentWidget: ModuleAudioControls,
|
||||
},
|
||||
{
|
||||
name: 'Bluetooth',
|
||||
materialIcon: 'bluetooth',
|
||||
contentWidget: ModuleBluetooth(),
|
||||
contentWidget: ModuleBluetooth,
|
||||
},
|
||||
{
|
||||
name: 'Wifi networks',
|
||||
materialIcon: 'wifi',
|
||||
contentWidget: ModuleWifiNetworks(),
|
||||
contentWidget: ModuleWifiNetworks,
|
||||
onFocus: () => execAsync('nmcli dev wifi list').catch(print),
|
||||
},
|
||||
{
|
||||
name: 'Live config',
|
||||
materialIcon: 'tune',
|
||||
contentWidget: ModuleConfigure(),
|
||||
contentWidget: ModuleConfigure,
|
||||
},
|
||||
];
|
||||
|
||||
|
|
@ -103,7 +103,7 @@ export const sidebarOptionsStack = ExpandingIconTabContainer({
|
|||
tabSwitcherClassName: 'sidebar-icontabswitcher',
|
||||
icons: centerWidgets.map((api) => api.materialIcon),
|
||||
names: centerWidgets.map((api) => api.name),
|
||||
children: centerWidgets.map((api) => api.contentWidget),
|
||||
children: centerWidgets.map((api) => api.contentWidget()),
|
||||
onChange: (self, id) => {
|
||||
self.shown = centerWidgets[id].name;
|
||||
if (centerWidgets[id].onFocus) centerWidgets[id].onFocus();
|
||||
|
|
@ -130,7 +130,6 @@ export default () => Box({
|
|||
className: 'spacing-v-5',
|
||||
children: [
|
||||
timeRow,
|
||||
// togglesFlowBox,
|
||||
togglesBox,
|
||||
]
|
||||
}),
|
||||
|
|
|
|||
Loading…
Reference in a new issue