Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explicit iconOnly option for the taskmanager #410

Draft
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion modules/widgets/icon-tasks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ 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.";
};
appearance = {
iconOnly = mkBoolOption "Wheter to show icons only.";
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.";
indicateAudioStreams = mkBoolOption "Whether to indicate applications that are playing audio including an option to mute them.";
Expand Down Expand Up @@ -237,7 +238,9 @@ in
...
}:
{
name = "org.kde.plasma.icontasks";
name = if appearance.iconOnly
then "org.kde.plasma.icontasks"
else "org.kde.plasma.taskmanager";
config = lib.recursiveUpdate {
General = lib.filterAttrs (_: v: v != null) {
launchers = launchers;
Expand Down
Loading