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

Support kde6 panel floating #77

Merged
merged 2 commits into from
Mar 5, 2024
Merged
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions modules/panels.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ let
example = "autohide";
description = "The hiding mode of the panel.";
};
floating = lib.mkEnableOption "enable or disable floating style";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a disclaimer that it is plasma 6 only. Should also start with a capital letter and end with period as the rest of the descriptions

widgets = lib.mkOption {
type = with lib.types; listOf (either str widgetType);
default = [
Expand Down Expand Up @@ -143,6 +144,7 @@ let

var panel = new Panel;
panel.height = ${builtins.toString panel.height}
panel.floating = ${lib.boolToString panel.floating}
var panelWidgets = {}
${if panel.alignment != null then "panel.alignment = \"${panel.alignment}\"" else ""}
${if panel.hiding != null then "panel.hiding = \"${panel.hiding}\"" else ""}
Expand Down
Loading