mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
add More button for network config on sidebar
This commit is contained in:
parent
f4b223879a
commit
18dcdfaa49
3 changed files with 16 additions and 4 deletions
|
|
@ -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,
|
||||
]
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue