Skip to content

Commit

Permalink
feat(icon-tasks): add iconsOnly option to icon-tasks module (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-bouvier authored Nov 26, 2024
1 parent 16d65cd commit 06e3209
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modules/widgets/icon-tasks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 06e3209

Please sign in to comment.