Add KDE Plasma configs and an install/restore script - #2
Open
tjcelaya wants to merge 1 commit into
Open
Conversation
Vendors the config files from youngcoder45/My-KDE-Dotfiles (commit c2a32eb) into kde/: KWin, KRunner, Dolphin and Baloo settings plus fish, kitty, starship, neovim, btop, cava, fastfetch, neofetch and Panel Colorizer presets. Upstream's README is kept as kde/UPSTREAM-README.md; the screenshots were left out. install.sh copies them to $XDG_CONFIG_HOME, and the existing top-level dotfiles to $HOME, selectable with -g home|kde|all. Every install first snapshots the files it is about to overwrite into a timestamped directory under ~/.local/share/dotfiles-backups with a manifest; --no-backup opts out. --restore replays a manifest: files that existed are put back, files the install created are removed, and directories it had to create are pruned if empty. --list-backups shows what is available and --dry-run previews either direction. Also rewrites the author's hardcoded home directory out of the installed fastfetch config. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NLJxr12Eup4PRFMsDr7p19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pulls in the KDE dotfiles from youngcoder45/My-KDE-Dotfiles and adds an installer that backs up whatever it replaces, with a restore path back out.
kde/Vendored from upstream commit
c2a32eb: KWin, KRunner, Dolphin and Baloo settings, plus fish, kitty, starship, neovim (lazy.nvim), btop, cava, fastfetch, neofetch, and Panel Colorizer presets. Upstream's README is preserved askde/UPSTREAM-README.md. TheScreenshots/directory (1 MB of PNGs) was left out.install.shBackups are on by default. Before overwriting anything, the current version is copied to
~/.local/share/dotfiles-backups/<YYYYmmdd-HHMMSS>/along with amanifest.tsvof every target and ameta.txt(date, host, repo commit).--no-backupopts out and warns when you do.The
homegroup also wires up the two.smw_*.wavfiles that.bashrcalready plays on command success/failure — they land at~/bin/smw_*.wav, which is where.bashrclooks for them.Restore
Restore replays the manifest rather than just copying files back: entries recorded as
PRESENTare put back as they were, entries recorded asABSENT(i.e. the install created them) are removed, and directories the install had to create are pruned if they end up empty. Installing twice snapshots the installed copies the second time, so--restorewalks back one install at a time — noted in the README.Other flags:
--merge(copy into an existing directory instead of replacing it wholesale),-y,--backup-dir,$DOTFILES_BACKUP_DIR.Notes
$XDG_CONFIG_HOMEafter copying.rm -rftargets are guarded — anything outside$HOMEaborts the run.kwinrcand friends will replace your window-manager, shortcut, and panel config. The README says to preview with-nfirst and to expect a re-login before KDE picks the changes up.Testing
Exercised against a throwaway
$HOMEwith a mix of pre-existing and absent targets: dry run, full install,-g kde,--merge,--no-backup,--list-backups, and restore. Verified that pre-existing files come back byte-for-byte, installed-from-scratch files are removed, unrelated files survive--merge, and bad--group/ missing-backup-ID arguments fail with a clear message.Generated by Claude Code