mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 21:01:54 +05:30
feat: add bluetooth widget
This commit is contained in:
16
widgets/bar/bluetooth.tsx
Normal file
16
widgets/bar/bluetooth.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Gdk } from "ags/gtk4";
|
||||
import { execAsync } from "ags/process";
|
||||
|
||||
export const Bluetooth = () => {
|
||||
return (
|
||||
<button
|
||||
cssClasses={["launcher"]}
|
||||
cursor={Gdk.Cursor.new_from_name("pointer", null)}
|
||||
onClicked={() =>
|
||||
execAsync(`wezterm start --class wezterm-floating bluetui`)
|
||||
}
|
||||
>
|
||||
<image iconName="fa-bluetooth-symbolic" />
|
||||
</button>
|
||||
);
|
||||
};
|
@@ -6,6 +6,7 @@ import { Network } from "./network";
|
||||
import { Time } from "./time";
|
||||
import { Tray } from "./tray";
|
||||
import { WorkspaceButton } from "./workspace";
|
||||
import { Bluetooth } from "./bluetooth";
|
||||
|
||||
export const WINDOW_NAME = "bar";
|
||||
|
||||
@@ -35,6 +36,7 @@ export const Bar = (gdkmonitor: Gdk.Monitor) => {
|
||||
</box>
|
||||
|
||||
<box spacing={10} $type="end">
|
||||
<Bluetooth />
|
||||
<Tray />
|
||||
<Time />
|
||||
<Launcher windowName="control-center" icon="fa-ghost-symbolic" />
|
||||
|
Reference in New Issue
Block a user