forked from Shinonome/dots-hyprland
add More button for network config on sidebar
This commit is contained in:
@@ -34,7 +34,7 @@ let configOptions = {
|
||||
'bluetooth': "blueberry",
|
||||
'imageViewer': "loupe",
|
||||
'network': "XDG_CURRENT_DESKTOP=\"gnome\" gnome-control-center wifi",
|
||||
'settings': "XDG_CURRENT_DESKTOP=\"gnome\" gnome-control-center wifi",
|
||||
'settings': "XDG_CURRENT_DESKTOP=\"gnome\" gnome-control-center",
|
||||
'taskManager': "gnome-usage",
|
||||
'terminal': "foot", // This is only for shell actions
|
||||
},
|
||||
|
||||
@@ -135,7 +135,7 @@ export default (props) => {
|
||||
hpack: 'center',
|
||||
className: 'txt-small txt sidebar-centermodules-bottombar-button',
|
||||
onClicked: () => {
|
||||
execAsync(userOptions.apps.bluetooth).catch(print);
|
||||
execAsync(['bash', '-c', userOptions.apps.bluetooth]).catch(print);
|
||||
closeEverything();
|
||||
},
|
||||
label: 'More',
|
||||
|
||||
@@ -185,6 +185,19 @@ export default (props) => {
|
||||
})
|
||||
})
|
||||
]
|
||||
});
|
||||
const bottomBar = Box({
|
||||
homogeneous: true,
|
||||
children: [Button({
|
||||
hpack: 'center',
|
||||
className: 'txt-small txt sidebar-centermodules-bottombar-button',
|
||||
onClicked: () => {
|
||||
execAsync(['bash', '-c', userOptions.apps.network]).catch(print);
|
||||
closeEverything();
|
||||
},
|
||||
label: 'More',
|
||||
setup: setupCursorHover,
|
||||
})],
|
||||
})
|
||||
return Box({
|
||||
...props,
|
||||
@@ -193,8 +206,7 @@ export default (props) => {
|
||||
children: [
|
||||
CurrentNetwork(),
|
||||
networkList,
|
||||
// mainContent,
|
||||
// status,
|
||||
bottomBar,
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user