<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
<div>Hi Felipe,<br></div><div dir="auto">This is a very interesting project, a couple of months ago while migrating to new laptop I wrote a simple script (cannot find it anymore) to dump all xfconf's channels/properties into commands, for example:</div><div dir="auto">xfconf-query -c <channel> -p '<property>' -n -t <type> -s '<value>'<br></div><div dir="auto"><br></div><div dir="auto">My goal was to later write a writer/reader to handle a format similar to i3's config file, but I guess your goal is very close to mine.<br></div><div dir="auto"><br></div><div dir="auto">Regarding the file format, YAML is acceptable, though from experience it's really easy to mess it up. I would use the rc format already used by Xfce, for example:<br></div><div dir="auto"><br></div><div dir="auto">[thunar]<br></div><div dir="auto">hidden-bookmarks=['computer:///', 'recent:///']<br></div><div dir="auto">last-view='ThunarDetailsView'<br></div><div dir="auto">last-window-width=<span style="color: #d4d4d4;">170</span><br></div><div><br></div><div dir="auto">[xfce4-panel]<br></div><div dir="auto">panels=[0]<br></div><div dir="auto">panels/panel-0/autohide-behavior=0<br></div><div dir="auto">panels/panel-0/length=100<br></div><div dir="auto"><br></div><div dir="auto">IMO that's more friendly and doesn't require a YAML parser.<br></div><div dir="auto"><br></div><div dir="auto">Regarding Ruby, I believe most users don't have it installed, using shell or even python would be more appropriate.<br></div><div dir="auto"><br></div><div dir="auto">All in all this a nice addition to Xfce, what do you think about pushing this upstream? If you're interested let's continue this discussion at <a href="https://gitlab.xfce.org/xfce/xfconf/-/issues/29">https://gitlab.xfce.org/xfce/xfconf/-/issues/29</a> :)<br></div><div dir="auto"><br></div><div>Cheers,<br></div><div>Andre Miranda<br></div><div><br></div><div>Feb 10, 2022, 08:00 by xfce-request@xfce.org:<br></div><blockquote class="tutanota_quote" style="border-left: 1px solid #93A3B8; padding-left: 10px; margin-left: 5px;"><div>Message: 1<br></div><div>Date: Wed, 9 Feb 2022 06:34:22 -0600<br></div><div>From: Felipe Contreras <felipe.contreras@gmail.com><br></div><div>To: xfce@xfce.org<br></div><div>Subject: ANN: New tool xfce-config-helper<br></div><div>Message-ID:<br></div><div> <CAMP44s2dQdUBtc6de+Uo5PZ5BpkCh+Bw1o+bPhqv9OMAJSdYUA@mail.gmail.com><br></div><div>Content-Type: text/plain; charset="UTF-8"<br></div><div><br></div><div>Hello,<br></div><div><br></div><div>Over the years I've tried many ways to store my Xfce configuration in<br></div><div>a simple way and what I've found is the best is using YAML files.<br></div><div><br></div><div>I developed a tool to read this YAML configuration and update xfconf on the fly.<br></div><div><br></div><div>The format is simple:<br></div><div><br></div><div> shortcuts:<br></div><div> commands:<br></div><div> "<Super>Return": xfce4-terminal<br></div><div> wm:<br></div><div> show_desktop: "<Super>d"<br></div><div> settings:<br></div><div> xfwm4:<br></div><div> "/general/easy_click": Super<br></div><div> panels:<br></div><div> - position: p=10;x=0;y=0<br></div><div> plugins:<br></div><div> - - whiskermenu<br></div><div> - - tasklist<br></div><div> - - pager<br></div><div><br></div><div>And to load it you just do `xfconf-load config.yml`.<br></div><div><br></div><div>For more information and installation instructions check the GitHub repo [1].<br></div><div><br></div><div>If you are using Arch Linux, I've also created an AUR package:<br></div><div>xfce-config-helper [2].<br></div><div><br></div><div>Enjoy!<br></div><div><br></div><div>[1] https://github.com/felipec/xfce-config-helper<br></div><div>[2] https://aur.archlinux.org/packages/xfce-config-helper<br></div><div><br></div><div>-- <br></div><div>Felipe Contreras<br></div></blockquote><div dir="auto"><br></div>  </body>
</html>