Fix onlyMinimized option for icon-tasks (#333)

Co-authored-by: Heitor Augusto <IAm.HeitorALN@proton.me>
This commit is contained in:
SpringerJack 2024-08-20 22:51:52 +02:00 committed by GitHub
parent f13208d6b4
commit df4d1d36d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,7 +122,19 @@ in
onlyInCurrentScreen = mkBoolOption "Whether to show only window tasks that are on the same screen as the widget."; 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."; 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."; 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."; unhideOnAttentionNeeded = mkBoolOption "Whether to unhide if a window wants attention.";
newTasksAppearOn = mkOption { newTasksAppearOn = mkOption {