From 0592075b4e04d5c67fa0546071d19b80a12947c5 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 15 Jan 2025 21:47:51 +1100 Subject: bar: network and bluetooth actions Do stuff on click --- modules/bar.tsx | 149 ++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 91 insertions(+), 58 deletions(-) (limited to 'modules') diff --git a/modules/bar.tsx b/modules/bar.tsx index 933fa5e..6821b94 100644 --- a/modules/bar.tsx +++ b/modules/bar.tsx @@ -1,7 +1,7 @@ import { execAsync, GLib, register, Variable } from "astal"; import { bind, kebabify } from "astal/binding"; import { App, Astal, astalify, Gdk, Gtk, type ConstructProps } from "astal/gtk3"; -import AstalBluetooth01 from "gi://AstalBluetooth"; +import AstalBluetooth from "gi://AstalBluetooth"; import AstalHyprland from "gi://AstalHyprland"; import AstalNetwork from "gi://AstalNetwork"; import AstalNotifd from "gi://AstalNotifd"; @@ -189,12 +189,27 @@ const TrayItem = (item: AstalTray.TrayItem) => { const Tray = () => {bind(AstalTray.get_default(), "items").as(i => i.map(TrayItem))}; const Network = () => ( - - p === AstalNetwork.Primary.WIFI ? "wifi" : "wired" - )} + ); const Bluetooth = () => ( - (p ? "enabled" : "disabled"))} + ); const StatusIcons = () => ( -- cgit v1.2.3-freya