diff options
author | delta <darkussdelta@gmail.com> | 2023-05-21 10:12:46 +0200 |
---|---|---|
committer | delta <darkussdelta@gmail.com> | 2023-05-21 10:12:46 +0200 |
commit | f42a3a2cc941e34dd938b1e6bc24785a44781db2 (patch) | |
tree | bec91db370c7bcd5be2bb614d2d315a32c751215 /.config/awesome/quarrel/native/src/lenses | |
parent | f5612f081db0dc69f5c0ebc69e67fa3b098a9ad9 (diff) |
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 <darkussdelta@gmail.com>
Diffstat (limited to '.config/awesome/quarrel/native/src/lenses')
-rw-r--r-- | .config/awesome/quarrel/native/src/lenses/application.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/.config/awesome/quarrel/native/src/lenses/application.rs b/.config/awesome/quarrel/native/src/lenses/application.rs index b0135d4..0857802 100644 --- a/.config/awesome/quarrel/native/src/lenses/application.rs +++ b/.config/awesome/quarrel/native/src/lenses/application.rs @@ -13,10 +13,6 @@ use crate::lenses::entry::{ Entry, }; -fn contains_ignore_ascii_case(a: &str, b: &str) -> bool { - return false; -} - fn parse_entry(entry: &fd::Entry, path: &PathBuf) -> Result<Entry, ()> { let section = entry.section("Desktop Entry"); let name = section.attr("Name").ok_or(())?.to_string(); @@ -84,7 +80,7 @@ pub fn query(lua: &Lua, input: String) -> LuaResult<LuaTable> { Ok(entries_to_lua_table( parsed_entries .into_iter() - .filter(|entry| entry.message.to_lowercase().contains(&input)) + .filter(|entry| entry.message.to_lowercase().contains(&input.to_lowercase())) .collect(), lua, )) |