Added workspaces, window titles, volume, bluetooth, systray and date/time modules to the panel
This commit is contained in:
24
modules/bar/bluetooth/index.js
Normal file
24
modules/bar/bluetooth/index.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const bluetooth = await Service.import('bluetooth')
|
||||
|
||||
const Bluetooth = () => {
|
||||
const btIcon = Widget.Label({
|
||||
label: bluetooth.bind("enabled").as((v) => v ? " " : " "),
|
||||
class_name: "bar-bt_icon",
|
||||
});
|
||||
|
||||
const btText = Widget.Label({
|
||||
label: bluetooth.bind("enabled").as((v) => v ? "On" : "Off"),
|
||||
class_name: "bar-bt_label",
|
||||
});
|
||||
|
||||
return {
|
||||
component: Widget.Box({
|
||||
class_name: "volume",
|
||||
children: [btIcon, btText],
|
||||
}),
|
||||
isVisible: true,
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
export { Bluetooth }
|
||||
Reference in New Issue
Block a user