Wat is het KKSRC-bestandsformaat?
Een .kksrc-bestand is een toetsenbordsneltoetsschema dat is geëxporteerd uit KDE Plasma, de werkomgeving die op veel Linux-distributies wordt gebruikt. Het is platte tekst in een INI-stijl, waardoor het gemakkelijk leesbaar is in elke editor. Groepskoppen staan tussen vierkante haken en benoemen de component die ze configureren, zoals [kwin][Global Shortcuts] voor de vensterbeheerder of [plasmashell][Global Shortcuts] voor de desktop-shell. Onder elke kop koppelt elke regel een actie aan een toetsenreeks, bijvoorbeeld Walk Through Windows=Alt+Tab. Een actie kan verschillende alternatieve koppelingen bevatten, gescheiden door puntkomma's, en de waarde none markeert een actie waaraan geen sneltoets is toegewezen.
Het bestand is een draagbare momentopname. Uw actieve koppelingen worden uitgevoerd vanuit ~/.config/kglobalshortcutsrc, en een .kksrc-schema is wat Systeeminstellingen schrijft wanneer u die koppelingen exporteert om te delen, te back-uppen of naar een andere machine te kopiëren. Het formaat ligt dicht bij een gewoon .ini-bestand, en u zult .kksrc-bestanden vaak aantreffen naast andere dotfiles in versiebeheer.
Beveiliging & veiligheid
RISICO: LOWA .kksrc file is plain text that lists action names and key sequences. It holds no executable code and cannot run on its own. The only caution is that importing an unknown scheme will overwrite your existing shortcut bindings, so review the file first if it came from someone else.
Formaatdetails
in een notendop- KHotKeys custom shortcut data - The older KDE KHotKeys engine handled custom hotkeys and gestures via [khotkeys] groups; it is unmaintained after the Plasma 5.27 branch.
Programma's die KKSRC-bestanden openen
.kksrc file to read its plain-text shortcut entries, though the file only applies inside KDE Plasma. .kksrc file contains. .kksrc file to read and edit the bracketed groups and action=shortcut lines directly as text. kcmshell6 keys (or kcmshell5 keys) to launch the Shortcuts control module, then import the scheme file. Technische details
diepe specificaties| Encoding | UTF-8 plain text |
| Byte order | N/A (text, no byte-order marker) |
| Container | INI-style key=value groups |
| Structure | Grouped INI file. Each group header takes the form [ComponentName][Global Shortcuts] (for example [kwin][Global Shortcuts] or [plasmashell][Global Shortcuts]). Under each header, lines follow ActionName=KeySequence, such as Walk Through Windows=Alt+Tab. Multiple alternative bindings for one action are separated by semicolons, and the value none marks an unbound action. |
| Typical size | A few kilobytes; commonly 2 KB to 30 KB depending on how many components and actions are exported |
| Integrity | None built in; integrity relies on the plain-text file being well formed |
| Platforms | Linux, BSD |
| Notes | Produced by the Shortcuts module in KDE System Settings when a shortcut scheme is exported. It mirrors the on-disk kglobalshortcutsrc data but is packaged as a portable, importable scheme file. The runtime configuration itself lives in ~/.config/kglobalshortcutsrc, which uses the same INI grouping but a richer value syntax (action=binding,default,friendly name). |
| Editability | Fully human-readable and editable in any text editor |
| Line Format | action name = key sequence |
| Uitgebracht | KDE 4 / Plasma era (KDE global shortcuts framework) |
| Specificatie | docs.kde.org |
KKSRC conversies
Community V&A
gevraagd door gebruikersNog geen vragen - wees de eerste om iets te vragen over KKSRC-bestanden.
Veelgestelde vragen
Hoe open ik een .kksrc-bestand?
kcmshell6 keys uit. Om de inhoud alleen te lezen of te bewerken, opent u het in een teksteditor zoals Kate, VS Code of Notepad.Waar slaat KDE mijn werkelijke sneltoetsen op?
~/.config/kglobalshortcutsrc. Een .kksrc-bestand is een draagbaar schema dat via Systeeminstellingen uit die gegevens is geëxporteerd, bedoeld voor delen of back-up.Kan ik een .kksrc-bestand importeren via de opdrachtregel?
kcmshell6 keys en van daaruit importeren, of volledige profielen beheren met een tool als Konsave. Sommige gebruikers scripten wijzigingen rechtstreeks in kglobalshortcutsrc.