build please?

This commit is contained in:
2024-10-18 07:40:46 -05:00
parent 57732d6d8c
commit 20b5622296
65 changed files with 2388 additions and 1416 deletions

30
home/dotfiles/ags/wifi.js Executable file
View File

@@ -0,0 +1,30 @@
const network = await Service.import('network')
export default function WifiIndicator() {
return Widget.Box({
child: Widget.EventBox({
child: Widget.Icon({
icon: 'network-wireless-disconnected-symbolic',
}),
setup: self => self.hook(network.wifi, () => {
self.child.icon = network.wifi.icon_name == 'network-wireless-disabled-symbolic' ? 'network-wireless-disconnected-symbolic' : network.wifi.icon_name
self.tooltip_text = network.wifi.ssid ? network.wifi.ssid : network.wifi.internet
}),
tooltip_text: 'disconnected',
}),
})
}
// const WiredIndicator = () => Widget.Icon({
// icon: network.wired.bind('icon_name'),
// })
// const NetworkIndicator = () => Widget.Stack({
// children: {
// wifi: WifiIndicator(),
// wired: WiredIndicator(),
// },
// shown: network.bind('primary').as(p => p || 'wifi'),
// })