From f42a3a2cc941e34dd938b1e6bc24785a44781db2 Mon Sep 17 00:00:00 2001 From: delta Date: Sun, 21 May 2023 10:12:46 +0200 Subject: major update of awesome config add new icons, switch over to using stylesheets instead of gears.color.recolor_image, add a music widget to the panel, optimize services in common.lua, fix the application lense filtering and increase the update rate of services in common.lua Signed-off-by: delta --- .config/awesome/quarrel/native/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.config/awesome/quarrel/native/src/lib.rs') diff --git a/.config/awesome/quarrel/native/src/lib.rs b/.config/awesome/quarrel/native/src/lib.rs index e21e306..d89b610 100644 --- a/.config/awesome/quarrel/native/src/lib.rs +++ b/.config/awesome/quarrel/native/src/lib.rs @@ -2,6 +2,7 @@ mod lenses; mod net; use mlua::prelude::*; +use html_escape::decode_html_entities_to_string; #[mlua::lua_module] fn qnative(lua: &Lua) -> LuaResult { @@ -12,6 +13,11 @@ fn qnative(lua: &Lua) -> LuaResult { let exports = lua.create_table()?; exports.set("lenses", lenses)?; exports.set("get_essid", lua.create_function(net::get_first_essid)?)?; + exports.set("decode_html", lua.create_function(|_: &Lua, string: String| { + let mut output = String::new(); + decode_html_entities_to_string(string, &mut output); + Ok(output) + })?)?; Ok(exports) } -- cgit v1.2.3