allow sidebar pinning

This commit is contained in:
end-4
2023-12-27 00:26:48 +07:00
parent c11f0e6a2b
commit 81bf723d12
12 changed files with 491 additions and 376 deletions
@@ -29,14 +29,12 @@ export const ToggleIconWifi = (props = {}) => Widget.Button({
export const ToggleIconBluetooth = (props = {}) => Widget.Button({
className: 'txt-small sidebar-iconbutton',
tooltipText: 'Bluetooth | Right-click to configure',
onClicked: () => { // Provided service doesn't work hmmm
onClicked: () => {
const status = Bluetooth?.enabled;
if (status) {
if (status)
exec('rfkill block bluetooth');
}
else {
else
exec('rfkill unblock bluetooth');
}
},
onSecondaryClickRelease: () => {
execAsync(['bash', '-c', 'blueberry &']);