LinuxCommandLibrary

konsave

Save and apply KDE Plasma configurations

TLDR

Save the current configuration as a profile

$ konsave [[-s|--save]] [profile_name]
copy

Apply a profile
$ konsave [[-a|--apply]] [profile_name]
copy

Save the current configuration as a profile, overwriting existing profiles if they exist with the same name
$ konsave [[-s|--save]] [profile_name] [[-f|--force]]
copy

List all profiles
$ konsave [[-l|--list]]
copy

Remove a profile
$ konsave [[-r|--remove]] [profile_name]
copy

Export a profile as a .knsv to the home directory
$ konsave [[-e|--export-profile]] [profile_name]
copy

Import a .knsv profile
$ konsave [[-i|--import-profile]] [path/to/profile_name.knsv]
copy

SYNOPSIS

konsave [-h | -v | -l | -s ID | -r ID | -d ID | -i PATH | -e ID]

PARAMETERS

-h, --help
    Display help and exit.

-v, --version
    Show version information.

-l, --list
    List all saved backups with IDs.

-s ID, --save ID
    Save current config as backup ID.

-r ID, --restore ID
    Restore backup ID (logs out Plasma).

-d ID, --delete ID
    Delete backup ID.

-i PATH, --import PATH
    Import tarball from PATH as new backup.

-e ID, --export ID
    Export backup ID to current directory.

-c, --clear-all
    Delete all backups.

-b DIR, --backup-dir DIR
    Use custom backup directory.

DESCRIPTION

Konsave is a lightweight Bash-based command-line tool for KDE Plasma users to backup and restore desktop configurations. It captures essential files like plasma settings, panels, widgets, desktop layouts, keyboard shortcuts, and KWin rules into compressed tarballs, enabling quick switches between setups or recovery from tweaks gone wrong.

Unlike broad tools like Timeshift, konsave targets only Plasma-specific directories (~/.config/plasma*, ~/.config/kwin*, etc.), keeping backups small (typically 1-10MB) and fast. Saves are named by user-provided IDs and stored in ~/.local/share/konsave/. Restore instantly reapplies everything, often requiring a logout/login.

Ideal for multi-config users (e.g., productivity vs. gaming desktops). Supports listing, deleting, importing/exporting backups. Open-source on GitHub, installable via distro packages or AUR/Flatpak. No root needed; works on any Plasma version 5+.

CAVEATS

Only for KDE Plasma 5+; close Plasma sessions before restore; backups exclude user data/apps; large configs may take seconds; no automatic conflict resolution.

BACKUP LOCATION

Default: ~/.local/share/konsave/. Each backup is a ID.tar.gz file.

USAGE TIPS

Run after full config tweaks. Use konsave -s default for baseline. Restore prompts Plasma restart.

INSTALLATION

Arch: yay -S konsave
Fedora: dnf copr enable pratham/konsave
GitHub releases or Flatpak.

HISTORY

Created in 2019 by Pratham Keshav (GitHub: PrathameshKeshav/Konsave). Gained traction in KDE forums/Reddit for simplicity. Actively maintained with v5+ support; packaged in Arch AUR, Fedora COPR, Ubuntu PPA.

SEE ALSO

kwriteconfig5(1), plasma-desktop(1), kwin_x11(1), timeshift(1)

Copied to clipboard