Skip to content

Commit

Permalink
Support toggling floating mode in panels for plasma 6 (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlyxshi authored Mar 5, 2024
1 parent 8de2af1 commit 9bac592
Showing 1 changed file with 2 additions and 0 deletions.
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 (plasma 6 only).";
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

0 comments on commit 9bac592

Please sign in to comment.