Giter VIP home page Giter VIP logo

Comments (11)

HeitorAugustoLN avatar HeitorAugustoLN commented on September 14, 2024

You need to declare widgets in your panel

For example:

programa.plasma = {
  enable = true;
  panels = [
    {
      floating = true;
      height = 44;
      widgets = [
        # You can define widgets by using a simple string of the widget ID, 
        # But that way you can't configure them
        "org.kde.plasma.kickoff"
        # You also can define them like this, that way you can configure the widgets
        # Simple string widgets are also transformed into this, but without any configuration
        {
           name = "org.kde.plasma.kickoff";
           config.General.icon = "nix-snowflake-white";
        }
        # And you can use widget-specific options for setting up widgets in a easier way
        # Widget-specific options are also converted into the last syntax I've showed you
        # You can also manually set any of these configurations with widget-specific options using the `settings` option
        {
          kickoff = {
            sortAlphabetically = true;
            settings = {
              General.icon = "nix-snowflake-white";
            };
          };
        }
      ];
    }
  ];
};

from plasma-manager.

salko-ua avatar salko-ua commented on September 14, 2024

thx very much !

from plasma-manager.

salko-ua avatar salko-ua commented on September 14, 2024

How i can set 'kickoff to " application dashbord or application menu "?
How i can setting keyboard layout display style

from plasma-manager.

HeitorAugustoLN avatar HeitorAugustoLN commented on September 14, 2024

How i can set 'kickoff to " application dashbord or application menu"?

  • Application menu: "org.kde.plasma.kicker"
  • Application dashboard: "org.kde.plasma.kickerdash"

But we currently don't have any widget-specific options for them.

How i can setting keyboard layout display style

Do you mean in the system tray? If it is like, here is an example of how you can define it the items are shown or not in the system tray:

programa.plasma = {
  enable = true;
  panels = [
    {
      floating = true;
      height = 44;
      widgets = [
        {
          systemTray = {
            items.shown = [
              "org.kde.plasma.keyboardlayout"
            ];
          };
        }
      ];
    }
  ];
};

from plasma-manager.

salko-ua avatar salko-ua commented on September 14, 2024

yes, it is in the system tray, but if you go to its settings, you will see that there is '' is it possible to configure it somehow?

it is in keyboard-layout that there is a setting inside 'display style'

image: https://imgur.com/gallery/settings-nQlZHzY

and where can I find these values, such as application dashborad/menu and other widgets that you gave me? are they available somewhere in a convenient form?

from plasma-manager.

HeitorAugustoLN avatar HeitorAugustoLN commented on September 14, 2024

You can set it like this:

programa.plasma = {
  enable = true;
  panels = [
    {
      floating = true;
      height = 44;
      widgets = [
        {
          systemTray = {
            items.config = {
              "org.kde.plasma.keyboardlayout".config.General.displayStyle = "Flag"; 
              # values are Label (0), Flag (1) and LabelOverFlag (2) or their respective numbers
            };
          };
        }
      ];
    }
  ];
};

I will make a module for it, to make it more simple

from plasma-manager.

HeitorAugustoLN avatar HeitorAugustoLN commented on September 14, 2024

and where can I find these values, such as application dashborad/menu and other widgets that you gave me? are they available somewhere in a convenient form?

You can check the names and the configuration values in plasma-org.kde.plasma.desktop-appletsrc in ~/.config

Or you can go into the system path symlinks and share/plasma/plasmoids and see the available widgets

To get the current system path run whereis sh

from plasma-manager.

HeitorAugustoLN avatar HeitorAugustoLN commented on September 14, 2024

I will also create widget-specific options for kickerdash and kicker, when i have a bit of time

from plasma-manager.

salko-ua avatar salko-ua commented on September 14, 2024

i find this in ~/.config/plasma-org.kde.plasma.desktop-appletsrc

[Containments][240][Applets][246]
immutability=1
plugin=org.kde.plasma.keyboardlayout

[Containments][240][Applets][246][Configuration][ConfigDialog]
DialogHeight=539
DialogWidth=720

[Containments][240][Applets][246][Configuration][General]
displayStyle=Flag

but how i can write it in code

from plasma-manager.

HeitorAugustoLN avatar HeitorAugustoLN commented on September 14, 2024

but how i can write it in code

#303 (comment)

from plasma-manager.

HeitorAugustoLN avatar HeitorAugustoLN commented on September 14, 2024

Created widget-specific options for application menu, application dashboard too.

from plasma-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.