From 06e3209d11797d9c741e25df06ab61048746bf93 Mon Sep 17 00:00:00 2001 From: Thomas Bouvier Date: Tue, 26 Nov 2024 16:43:11 +0000 Subject: [PATCH] feat(icon-tasks): add iconsOnly option to icon-tasks module (#410) --- modules/widgets/icon-tasks.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/widgets/icon-tasks.nix b/modules/widgets/icon-tasks.nix index 73c55553..bdb342bd 100644 --- a/modules/widgets/icon-tasks.nix +++ b/modules/widgets/icon-tasks.nix @@ -77,6 +77,12 @@ in ]; description = "The list of launcher tasks on the widget. Usually .desktop file or executable URLs. Special URLs such as preferred://browser that expand to default applications are supported."; }; + iconsOnly = mkOption { + type = types.bool; + default = true; + example = false; + description = "Whether to show icons only."; + }; appearance = { showTooltips = mkBoolOption "Whether to show tooltips when hovering task buttons."; highlightWindows = mkBoolOption "Whether to request the window manager highlight windows when hovering corresponding task tooltips."; @@ -234,10 +240,13 @@ in behavior, launchers, settings, + iconsOnly, ... }: { - name = "org.kde.plasma.icontasks"; + name = if iconsOnly + then "org.kde.plasma.icontasks" + else "org.kde.plasma.taskmanager"; config = lib.recursiveUpdate { General = lib.filterAttrs (_: v: v != null) { launchers = launchers;