Skip to content

Commit

Permalink
Fix onlyMinimized option for icon-tasks (#333)
Browse files Browse the repository at this point in the history
Co-authored-by: Heitor Augusto <[email protected]>
  • Loading branch information
SpringerJack and HeitorAugustoLN authored Aug 20, 2024
1 parent f13208d commit df4d1d3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion modules/widgets/icon-tasks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,19 @@ in
onlyInCurrentScreen = mkBoolOption "Whether to show only window tasks that are on the same screen as the widget.";
onlyInCurrentDesktop = mkBoolOption "Whether to only show tasks that are on the current virtual desktop.";
onlyInCurrentActivity = mkBoolOption "Whether to show only tasks that are on the current activity.";
onlyMinimized = mkBoolOption "Whether to show only window tasks that are minimized.";
onlyMinimized = mkOption {
type = types.nullOr types.bool;
default = null;
example = true;
description = "Whether to show only window tasks that are minimized.";
apply = onlyMinimized:
if onlyMinimized == null
then null
else
if onlyMinimized == true
then 1
else 0;
};
};
unhideOnAttentionNeeded = mkBoolOption "Whether to unhide if a window wants attention.";
newTasksAppearOn = mkOption {
Expand Down

0 comments on commit df4d1d3

Please sign in to comment.