From ac5f8c69a7a0a5892d2e15f0312502e7ca6c3b44 Mon Sep 17 00:00:00 2001 From: Rastislav Barlik Date: Tue, 6 Jan 2015 12:49:19 +0100 Subject: [PATCH] Displaying only selected tags in taglist Add taglist.filter.selected() for displaying only currently selected tags --- lib/awful/widget/taglist.lua.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/awful/widget/taglist.lua.in b/lib/awful/widget/taglist.lua.in index f317e861c..97c0ab8a2 100644 --- a/lib/awful/widget/taglist.lua.in +++ b/lib/awful/widget/taglist.lua.in @@ -196,6 +196,14 @@ function taglist.filter.noempty(t, args) return #t:clients() > 0 or t.selected end +--- Filtering function to include selected tags on the screen. +-- @param t The tag. +-- @param args unused list of extra arguments. +-- @return true if t is not empty, else false +function taglist.filter.selected(t, args) + return t.selected +end + --- Filtering function to include all tags on the screen. -- @param t The tag. -- @param args unused list of extra arguments.