forked from Shinonome/dots-hyprland
sidebar: remove settings button
since gnome-control-center is really broken outside gnome
This commit is contained in:
@@ -224,19 +224,6 @@ export const ModuleIdleInhibitor = (props = {}) => Widget.Button({ // TODO: Make
|
|||||||
...props,
|
...props,
|
||||||
});
|
});
|
||||||
|
|
||||||
export const ModuleEditIcon = (props = {}) => Widget.Button({ // TODO: Make this work
|
|
||||||
...props,
|
|
||||||
className: 'txt-small sidebar-iconbutton',
|
|
||||||
onClicked: () => {
|
|
||||||
execAsync(['bash', '-c', 'XDG_CURRENT_DESKTOP="gnome" gnome-control-center', '&']);
|
|
||||||
App.closeWindow('sideright');
|
|
||||||
},
|
|
||||||
child: MaterialIcon('edit', 'norm'),
|
|
||||||
setup: button => {
|
|
||||||
setupCursorHover(button);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
export const ModuleReloadIcon = (props = {}) => Widget.Button({
|
export const ModuleReloadIcon = (props = {}) => Widget.Button({
|
||||||
...props,
|
...props,
|
||||||
className: 'txt-small sidebar-iconbutton',
|
className: 'txt-small sidebar-iconbutton',
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import {
|
|||||||
ModuleNightLight,
|
ModuleNightLight,
|
||||||
ModuleInvertColors,
|
ModuleInvertColors,
|
||||||
ModuleIdleInhibitor,
|
ModuleIdleInhibitor,
|
||||||
ModuleEditIcon,
|
|
||||||
ModuleReloadIcon,
|
ModuleReloadIcon,
|
||||||
ModuleSettingsIcon,
|
ModuleSettingsIcon,
|
||||||
ModulePowerIcon,
|
ModulePowerIcon,
|
||||||
@@ -109,9 +108,8 @@ const timeRow = Box({
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
Widget.Box({ hexpand: true }),
|
Widget.Box({ hexpand: true }),
|
||||||
// ModuleEditIcon({ hpack: 'end' }), // TODO: Make this work
|
|
||||||
ModuleReloadIcon({ hpack: 'end' }),
|
ModuleReloadIcon({ hpack: 'end' }),
|
||||||
ModuleSettingsIcon({ hpack: 'end' }),
|
// ModuleSettingsIcon({ hpack: 'end' }), // Button does work, gnome-control-center is kinda broken
|
||||||
ModulePowerIcon({ hpack: 'end' }),
|
ModulePowerIcon({ hpack: 'end' }),
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user