kde-extract

Parse KDE INI config files into plasma-manager Nix config snippets.

8|1|Updated Oct 21, 2015
One-click install
npx skills add https://github.com/iamruinous/nix-config --skill kde-extract
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kde-extract
Source: https://github.com/iamruinous/nix-config/tree/main/.opencode/skills/kde-extract
Command: npx skills add https://github.com/iamruinous/nix-config --skill kde-extract

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Extract KDE/Plasma settings from config files and convert them into a declarative plasma-manager Nix configuration.

Core Features & Use Cases

  • Reads common KDE INI config files (kwinrc, kdeglobals, kglobalshortcutsrc, plasmarc, kscreenlockerrc, kcminputrc, etc.) and optionally filters to a specific section.
  • Converts INI keys into a plasma-manager compatible Nix config snippet that can be pasted into home-configuration.nix.
  • Supports selecting a custom config file and exporting a ready-to-use configFile block.

Quick Start

Run the kde-extract tool with a target KDE config file to generate the corresponding plasma-manager Nix config snippet.

Frequently Asked Questions about kde-extract

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert KDE Plasma settings to Nix configuration?

To convert KDE Plasma settings to Nix configuration, you parse KDE INI files like kwinrc and kdeglobals to generate a declarative plasma-manager Nix config snippet. This output is ready to paste into your home-configuration.nix file.

Can I extract specific sections from kwinrc into a plasma-manager config?

You can extract specific sections from kwinrc into a plasma-manager config by applying optional section filtering during the INI parsing process. This isolates individual configuration blocks for targeted Nix declarations.

Does this tool parse kglobalshortcutsrc and kscreenlockerrc files for NixOS?

Yes, this tool parses kglobalshortcutsrc and kscreenlockerrc files for NixOS. It reads these common KDE INI configuration files and translates their keys into a compatible programs.plasma.configFile block.

What is the best way to manage KDE configuration files declaratively in Nix?

The best way to manage KDE configuration files declaratively in Nix is extracting INI settings into a plasma-manager configFile block. Converting files like plasmarc and kcminputrc creates reproducible home-manager desktop setups.

Can I use a custom KDE config file to generate a Nix snippet?

Yes, you can use a custom KDE config file to generate a Nix snippet. The extraction tool supports selecting arbitrary INI files and exporting their parsed settings as a ready-to-use plasma-manager configuration block.

Why are my manually edited KDE settings not reflecting in home-configuration.nix?

Manually edited KDE settings are not reflecting in home-configuration.nix because desktop INI files require conversion to declarative plasma-manager syntax. Parsing files like kdeglobals translates runtime configurations into valid Nix expressions.