Robust command line (CLI) configuration of Plasma (KDE) applets

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












Configuration of KDE desktop applets, like the launcher ("Kickoff") or the clock is held in ~/.config/plasma-org.kde.plasma.desktop-appletsrc (at least for KDE 5). I'd like to configure the applets on a fresh system to my liking using Ansible, but I can't find a robust way to do that.



I know I can use kwriteconfig5 to change the values there, like so



kwriteconfig5 --file ~/.config/plasma-org.kde.plasma.desktop-appletsrc 
--group Containments --group 3 --group Applets --group 9
--group Configuration --group Appearance
--key dateFormat isoDate


which would hide some items from the system tray if the number of containment (3) and the applet (9) would match to the clock applet like so



[Containments][3][Applets][9]
immutability=1
plugin=org.kde.plasma.digitalclock


which isn't guaranteed to happen between installations, from what I've seen.



Is there some available elegant way to set the values for specific applets (plugins, in the config file)?
Or is it necessary to write a script that will dig up the numbers for a specific app and then use the klunky kwriteconfig5 command?







share|improve this question























    up vote
    1
    down vote

    favorite












    Configuration of KDE desktop applets, like the launcher ("Kickoff") or the clock is held in ~/.config/plasma-org.kde.plasma.desktop-appletsrc (at least for KDE 5). I'd like to configure the applets on a fresh system to my liking using Ansible, but I can't find a robust way to do that.



    I know I can use kwriteconfig5 to change the values there, like so



    kwriteconfig5 --file ~/.config/plasma-org.kde.plasma.desktop-appletsrc 
    --group Containments --group 3 --group Applets --group 9
    --group Configuration --group Appearance
    --key dateFormat isoDate


    which would hide some items from the system tray if the number of containment (3) and the applet (9) would match to the clock applet like so



    [Containments][3][Applets][9]
    immutability=1
    plugin=org.kde.plasma.digitalclock


    which isn't guaranteed to happen between installations, from what I've seen.



    Is there some available elegant way to set the values for specific applets (plugins, in the config file)?
    Or is it necessary to write a script that will dig up the numbers for a specific app and then use the klunky kwriteconfig5 command?







    share|improve this question





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Configuration of KDE desktop applets, like the launcher ("Kickoff") or the clock is held in ~/.config/plasma-org.kde.plasma.desktop-appletsrc (at least for KDE 5). I'd like to configure the applets on a fresh system to my liking using Ansible, but I can't find a robust way to do that.



      I know I can use kwriteconfig5 to change the values there, like so



      kwriteconfig5 --file ~/.config/plasma-org.kde.plasma.desktop-appletsrc 
      --group Containments --group 3 --group Applets --group 9
      --group Configuration --group Appearance
      --key dateFormat isoDate


      which would hide some items from the system tray if the number of containment (3) and the applet (9) would match to the clock applet like so



      [Containments][3][Applets][9]
      immutability=1
      plugin=org.kde.plasma.digitalclock


      which isn't guaranteed to happen between installations, from what I've seen.



      Is there some available elegant way to set the values for specific applets (plugins, in the config file)?
      Or is it necessary to write a script that will dig up the numbers for a specific app and then use the klunky kwriteconfig5 command?







      share|improve this question











      Configuration of KDE desktop applets, like the launcher ("Kickoff") or the clock is held in ~/.config/plasma-org.kde.plasma.desktop-appletsrc (at least for KDE 5). I'd like to configure the applets on a fresh system to my liking using Ansible, but I can't find a robust way to do that.



      I know I can use kwriteconfig5 to change the values there, like so



      kwriteconfig5 --file ~/.config/plasma-org.kde.plasma.desktop-appletsrc 
      --group Containments --group 3 --group Applets --group 9
      --group Configuration --group Appearance
      --key dateFormat isoDate


      which would hide some items from the system tray if the number of containment (3) and the applet (9) would match to the clock applet like so



      [Containments][3][Applets][9]
      immutability=1
      plugin=org.kde.plasma.digitalclock


      which isn't guaranteed to happen between installations, from what I've seen.



      Is there some available elegant way to set the values for specific applets (plugins, in the config file)?
      Or is it necessary to write a script that will dig up the numbers for a specific app and then use the klunky kwriteconfig5 command?









      share|improve this question










      share|improve this question




      share|improve this question









      asked Apr 18 at 20:45









      butla

      62




      62

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438596%2frobust-command-line-cli-configuration-of-plasma-kde-applets%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438596%2frobust-command-line-cli-configuration-of-plasma-kde-applets%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?