nixos-config/modules/home-manager/ricing/awesomewm/dotfiles/ui/bar/mods/bluetooth.lua
2024-07-12 18:19:30 +09:00

24 lines
645 B
Lua

local awful = require("awful")
local wibox = require("wibox")
local beautiful = require("beautiful")
local dpi = require("beautiful").xresources.apply_dpi
local helpers = require("helpers")
local blue = wibox.widget {
font = beautiful.icon .. " 16",
markup = helpers.colorizeText("󰂯", beautiful.fg),
widget = wibox.widget.textbox,
valign = "center",
align = "center"
}
awesome.connect_signal("signal::bluetooth", function(value)
if value then
blue.markup = helpers.colorizeText("󰂯", beautiful.blue)
else
blue.markup = helpers.colorizeText("󰂲", beautiful.fg2 .. "99")
end
end)
return blue