Arch Linux / CachyOS KDE Plasma 6 (Wayland) workstation dotfiles, input and window-management automation, browser and clipboard helpers, native KWin plugins, local DKMS packaging, and bootstrap provisioning scripts.
Each major subsystem includes its own focused README.md with detailed configuration tables and troubleshooting notes; this root document provides the repository map, script reference, provisioning order, runtime pipelines, and operational caveats.
config/
├── APP-VERSION # Repository version epoch (0.0) for script stamping
├── bootstrap.sh # Main workstation migration, symlink & system bootstrap script
├── applicationlauncher/ # Preferences, pins & window size for custom applicationlauncher
│ ├── README.md
│ ├── pinned_apps.txt
│ ├── settings.txt
│ └── window_size.txt
├── applications/ # User .desktop launchers & overrides (~/.local/share/applications/)
│ ├── README.md
│ ├── net.local.copyq.desktop
│ ├── net.local.dictation-rambler.desktop
│ ├── net.local.dictation-whisper.desktop
│ └── org.xfce.mousepad.desktop
├── autostart/ # Login autostart entries (~/.config/autostart/)
│ ├── README.md
│ ├── com.github.hluk.copyq.desktop
│ └── import-environment.desktop
├── bash/ # Interactive Bash configuration
│ ├── README.md
│ └── .bashrc
├── build-support/ # Version-stamping & runtime --version verification tooling
│ ├── README.md
│ ├── app_version.py
│ ├── script_runtime.py
│ └── script_version.py
├── chrome/ # Google Chrome flags, fast launcher & window cycler
│ ├── README.md
│ ├── activate-or-launch-chrome.sh
│ ├── build-support/script_runtime.py
│ ├── chrome-flags.conf
│ └── google-chrome-fast
├── codex/ # Codex CLI preferences (~/.codex/config.toml; no auth/state)
│ ├── README.md
│ └── config.toml
├── CopyQ/ # CopyQ config, Wayland paste/persistence override, toggle & tests
│ ├── README.md
│ ├── build-support/script_runtime.py
│ ├── copyq-commands.ini
│ ├── copyq-toggle-window
│ ├── copyq-wayland-paste.sh
│ ├── copyq.conf
│ ├── copyq_script_override.js
│ ├── ensure-copyq-window-toggle
│ ├── test-tools/ # Mock kdotool, wl-paste, ydotool & JSON behavior cases
│ ├── test_script_override.js
│ ├── test_wayland_image.sh
│ └── test_wayland_paste.sh
├── environment.d/ # systemd user environment variables (NVIDIA VA-API)
│ ├── README.md
│ └── 90-nvidia-vaapi.conf
├── etc/ # Machine-wide /etc configs & /usr/local/bin monitor helper
│ ├── README.md
│ ├── NetworkManager/ # Connectivity check, Wi-Fi powersave & iwd backend drop-ins
│ ├── conf.d/wireless-regdom
│ ├── iw-regdomain
│ ├── iwd/ # iwd periodic scan & powersave quirk config
│ ├── mkinitcpio.conf.d/20-wireless-regdb.conf
│ ├── modprobe.d/cfg80211-regdom.conf
│ ├── modules-load.d/uinput.conf
│ ├── ssh/ # Hardened key-only sshd drop-in (99-security.conf)
│ ├── systemd/system/nvidia-power-limit.service
│ ├── udev/ # Monitor hotplug helper & HDD/RAPL/xremap/KWin udev rules
│ └── ufw/ # Snapshotted UFW config and IPv4/IPv6 user rules
├── firefox/ # Firefox user.js, shared AutoConfig modules, autoscroll & tests
│ ├── README.md
│ ├── 99-firefox-autoconfig.js
│ ├── autoconfig/ # british-dictionary.js, reverse-autoscroll.js
│ ├── autoscroll/ # ReverseAutoScrollChild.sys.mjs, scroll-range.sys.mjs & test
│ ├── firefox-autoconfig.cfg
│ ├── firefox-new-window-fast
│ ├── install-autoconfig.sh
│ ├── test_autoconfig.mjs
│ └── user.js
├── fish/ # Primary Fish shell config, alias-aware sudo, theme, colors & font
│ ├── README.md
│ ├── config.fish
│ ├── fish_frozen_theme.fish
│ ├── fonts/hack-tight/HackTight-Regular.ttf
│ ├── ls_colours.dircolors
│ ├── print_extension_groups.sh
│ └── test_sudo.py
├── git/ # Global Git identity, default branch & gh credential helper
│ ├── README.md
│ └── gitconfig
├── kde/ # KDE Plasma 6 & KWin configs, shortcuts, MIME defaults & plugins
│ ├── README.md
│ ├── baloofilerc, kcminputrc, kdeglobals, kglobalshortcutsrc, kwinrc, kwinrulesrc
│ ├── kxkbrc, mimeapps.list, plasma-localerc, plasma-org.kde.plasma.desktop-appletsrc
│ ├── plasmashellrc, powerdevilrc, powermanagementprofilesrc
│ └── kwin/
│ ├── effects/desktop-depth-preview/ # Native C++20/Qt6 KWin depth-plane preview effect + tests
│ └── scripts/copyq-window-toggle/ # KWin JS script for F24 CopyQ toggle
├── keyd/ # Documentation-only note (replaced by xremap + wayland daemon)
│ └── README.md
├── kwin/ # Shared Plasma taskbar new-instance launcher helper
│ ├── README.md
│ └── launch-taskbar-app.sh
├── legacy/ # Archived X11 xbindkeys & older tmux configs (inactive)
│ ├── README.md
│ ├── tmux/
│ └── xbindkeys/
├── mousepad/ # Exported dconf preferences for Xfce Mousepad
│ ├── README.md
│ └── preferences.dconf
├── nano/ # Keybinding overrides (~/.nanorc)
│ ├── README.md
│ └── .nanorc
├── packages/ # Local Arch/CachyOS PKGBUILD definitions
│ ├── README.md
│ └── asrock-nct6683-dkms-git/ # ASRock NCT6683 sensor/fan DKMS package, hook & verifier
├── pcmanfm/ # PCManFM & LibFM file-manager preferences
│ ├── README.md
│ ├── libfm.conf
│ └── pcmanfm.conf
├── ssh/ # SSH client aliases, authorized public keys & managed known_hosts
│ ├── README.md
│ ├── authorized_keys
│ ├── config
│ └── known_hosts-managed
├── systemd/ # User-session systemd units & PowerDevil lock-recovery helper
│ ├── README.md
│ └── user/
│ ├── build-support/script_runtime.py
│ ├── copyq-show-window.service
│ ├── copyq-window-toggle-loader.service
│ ├── kde-refresh-powerdevil-after-lock
│ ├── kde-refresh-powerdevil-after-lock.service
│ ├── krfb-tunnel.service
│ ├── wayland-scroll-daemon.service
│ └── xremap-meta-keyboard.service
├── tmux/ # Prefix-free config for patched native tmux + Fish wrapper
│ ├── README.md
│ ├── integration.conf
│ ├── link.sh
│ ├── tmux.conf
│ └── tmux.fish
├── wayland/ # Unified evdev Wayland mouse/scroll daemon & KWin window helpers
│ ├── README.md
│ ├── meta-wheel-close-wayland
│ ├── meta-wheel-minimize-wayland
│ ├── meta-wheel-restore-wayland
│ └── wayland_scroll_daemon.py
├── xfce4-terminal/ # Preferences & accelerators for locally patched Xfce Terminal
│ ├── README.md
│ ├── accels.scm
│ ├── terminalrc
│ └── xfce4-terminal.xml
└── xremap/ # Keyboard normalization, device-scoped shortcuts & tests
├── README.md
├── meta-keyboard.yml
├── test_meta_keyboard.py
└── xremap-launch-scoped
| Directory / File | Scope | Handled by bootstrap.sh? |
Sub-Documentation |
|---|---|---|---|
bootstrap.sh |
End-to-end user & system provisioning script | Entry point | — |
APP-VERSION, build-support/ |
Deterministic 0.<gen>.<commits>-<build> version stamping for standalone scripts |
Manual | build-support/README.md |
applicationlauncher/ |
UI settings, pins, and window size for external applicationlauncher |
Symlinked | applicationlauncher/README.md |
applications/ |
.desktop entries for CopyQ toggle, Rambler/Whisper dictation, and Mousepad X11 override |
Mousepad only | applications/README.md |
autostart/ |
CopyQ login autostart and KDE D-Bus/systemd session env import | Symlinked | autostart/README.md |
bash/ |
Interactive .bashrc with trash alias, history, and PATH setup |
Manual | bash/README.md |
chrome/ |
Chrome Wayland/XWayland flags, fast launcher, and Meta+5 window cycler | Flags & google-chrome-fast symlinked |
chrome/README.md |
codex/ |
Codex CLI config.toml preferences (no credentials/history) |
Symlinked (0600) |
codex/README.md |
CopyQ/ |
CopyQ preferences, Wayland clipboard persistence/paste script, KWin toggle helpers & tests | Loader unit & autostart only; prefs/script manual | CopyQ/README.md |
environment.d/ |
LIBVA_DRIVER_NAME=nvidia user session environment file |
Symlinked | environment.d/README.md |
etc/ |
System configs (/etc/*) and /usr/local/bin/kwin-monitor-change-reinit |
Mixed: SSH & regdom installed; others snapshot-only or manual | etc/README.md |
firefox/ |
user.js, shared AutoConfig (british-dictionary, reverse-autoscroll), fast new-window helper & tests |
Profile user.js, dictionary dir & AutoConfig installed |
firefox/README.md |
fish/ |
Primary Fish shell config, alias-aware sudo, Ctrl+Up friz/unearth picker, colors, theme & HackTight font |
Manual | fish/README.md |
git/ |
Global ~/.gitconfig (default main, gh auth git-credential) |
Symlinked | git/README.md |
kde/ |
13 KDE Plasma 6 / KWin config files + native Desktop Depth Preview effect & CopyQ KWin script | 13 top-level RC files symlinked; plugins manual | kde/README.md |
keyd/ |
Empty archive stub noting migration to xremap + wayland |
No | keyd/README.md |
kwin/ |
Shared Plasma taskbar slot launcher (launch-taskbar-app.sh) |
Invoked directly by xremap |
kwin/README.md |
legacy/ |
Inactive archived tmux and X11 xbindkeys configurations |
No | legacy/README.md |
mousepad/ |
Exported Mousepad dconf preferences | Imported via dconf load |
mousepad/README.md |
nano/ |
~/.nanorc key overrides (Ctrl+S/O/Z/U/W/H) |
Manual | nano/README.md |
packages/ |
Local Arch/CachyOS asrock-nct6683-dkms-git PKGBUILD & DKMS verifier |
Built, installed & verified if missing/outdated | packages/README.md |
pcmanfm/ |
PCManFM and LibFM preferences | Symlinked | pcmanfm/README.md |
ssh/ |
Client config, authorized_keys, and known_hosts-managed |
Linked & role-configured | ssh/README.md |
systemd/ |
6 user-session .service units + kde-refresh-powerdevil-after-lock |
Symlinked, reloaded & enabled | systemd/README.md |
tmux/ |
Prefix-free patched tmux.conf, integration hooks, tmux.fish wrapper & link.sh |
Invokes tmux/link.sh |
tmux/README.md |
wayland/ |
Unified evdev mouse/scroll daemon & KWin minimize/restore/close scripts | Service unit linked & enabled | wayland/README.md |
xfce4-terminal/ |
accels.scm, terminalrc, and Xfconf XML for patched Xfce Terminal |
Manual | xfce4-terminal/README.md |
xremap/ |
Split-keyboard/mouse normalizer YAML, transient-service launcher wrapper & tests | Service unit linked & enabled | xremap/README.md |
Restores user dotfiles, links systemd user services, snapshots selected /etc files, and applies privileged system configuration via pkexec.
- Options:
--role managed-target(default): Links~/.ssh/configand~/.ssh/authorized_keys, installs the key-onlysshdpolicy, and leaves any existing outgoing SSH client identity untouched.--role peer-workstation: Performs everything above, validates any existing~/.ssh/id_ed25519(.pub), or generates a new local Ed25519 key pair (printing its fingerprint and public key for enrollment) if both standard paths are absent.-h,--help: Prints man-style usage documentation.
- Inputs: Repository files under
~/Dev/config,~/.config/mozilla/firefox/profiles.ini(for locating the default Firefox profile), and live files under/etcduring the snapshot phase. - Outputs / Side Effects:
- Stops/disables obsolete
xremap-keyboard.serviceandxremap-wheel.serviceand removes legacy xremap/taskbar files. - Migrates and symlinks KDE, PCManFM/LibFM, Application Launcher, Git, Codex, Autostart,
environment.d, Mousepad desktop override, Chrome flags/wrapper, systemd user units, PowerDevil helper, SSH user configs, and Firefoxuser.js. - Runs
tmux/link.shanddconf load /org/xfce/mousepad/preferences/ < mousepad/preferences.dconf. - Copies active
/etcfiles (NetworkManager20-connectivity.conf, udev rules,/usr/local/bin/kwin-monitor-change-reinit,nvidia-power-limit.service, and UFW files) into the repository. - Reloads
systemd --userand enableswayland-scroll-daemon.service,xremap-meta-keyboard.service,copyq-window-toggle-loader.service,kde-refresh-powerdevil-after-lock.service,krfb-tunnel.service, andydotool.service(when available). - Elevates once via
pkexecto install/etc/ssh/sshd_config.d/99-security.confand wireless regulatory files (iw-regdomain,cfg80211-regdom.conf,20-wireless-regdb.conf), installwireless-regdbandhunspell-en_gb, runfirefox/install-autoconfig.sh, create/usr/local/share/firefox-dictionaries, build/installasrock-nct6683-dkms-gitif needed, run/usr/lib/asrock-nct6683/verify-dkms, runmkinitcpio -P, and enablesystemd-timesyncd.service,nvidia-power-limit.service,ufw.service, andsshd.service(plussystemctl reload sshd.service).
- Stops/disables obsolete
meta-keyboard.yml: Combines two Corsair keyboard interfaces and the mouse's keyboard interface into a singlexremap normalized keyboarddevice while preserving source-device matching (exact_match: true).- Direct launches: Keyboard
Meta/Ctrl/Ctrl+Meta+Grave->~/.local/bin/applicationlauncher; mouse-originatedMeta/Ctrl/Ctrl+Meta+Grave-> KWinToggleDesktopDepthPreviewover D-Bus;Meta+5->chrome/activate-or-launch-chrome.sh;Ctrl+1-9andCtrl+Meta+1-3,5-9->kwin/launch-taskbar-app.sh N;Ctrl+Meta+4->firefox/firefox-new-window-fast. - Suppressed:
Ctrl+W(C-w: null). - Key translations:
KEY_KPENTER->KEY_MUTE;Ctrl+Shift+Up/Ctrl+Meta+Shift+Up->F24(triggers KWin CopyQ toggle).
- Direct launches: Keyboard
xremap-launch-scoped COMMAND [ARG...]: Starts launched GUI commands inside a detached transientsystemd --userunit (systemd-run --user --quiet --collect --no-block --property=ExitType=cgroup) so restartingxremap-meta-keyboard.servicedoes not kill launched applications. Falls back toexec "$@"if the user manager is unavailable; exits64when invoked with no arguments.xremap/test_meta_keyboard.py: Offline regression test verifying device scope, rule precedence, exact shortcut combinations, and executable launch targets without opening input devices.
wayland_scroll_daemon.py: Pythonevdevbackground daemon (wayland-scroll-daemon.service, requiringxremap-meta-keyboard.service). Tracks modifiers fromxremap normalized keyboardplus physical devices, dynamically grabs the gaming mouse (/dev/input/by-id/usb-04d9_USB_Gaming_Mouse-event-mouse) only whenMetaorShiftis held with no mouse button pressed, and dispatches:Meta + Wheel Down/Up->meta-wheel-minimize-wayland/meta-wheel-restore-waylandCtrl + Meta + Middle Click->meta-wheel-close-waylandShift + Wheel-> KWin Desktop Zoom via D-Bus- Mouse Back/Forward in
xfce4-terminal-> virtualAlt+Left/Alt+Right(bound in Fish toprevd/nextd) - Outputs: Publishes held modifier state to
$XDG_RUNTIME_DIR/wayland_modifier_state.env(consumed byCopyQ/copyq-wayland-paste.sh).
wayland/meta-wheel-minimize-wayland,wayland/meta-wheel-restore-wayland,wayland/meta-wheel-close-wayland: Usekdotoolto minimize/restore/close the captured KWin window ID (falling back to cursor window lookup if invoked directly). Minimize/restore maintain a locked, deduplicated stack at$XDG_RUNTIME_DIR/meta-wheel-min-stack.
- Inputs: Required one-based taskbar slot
N(typically1–9); reads the firstlaunchers=line from~/.config/plasma-org.kde.plasma.desktop-appletsrc. - Outputs / Behavior: Resolves
applications:*,preferred://browser, andpreferred://filemanagerto.desktopfiles, prefers[Desktop Action new-window]over[Desktop Entry]Exec=, strips desktop field codes, launches detached, and logs to$XDG_RUNTIME_DIR/launch-taskbar-app.log(or/tmp/launch-taskbar-app.log).
CopyQ/copyq-wayland-paste.sh: Standalone Wayland paste helper supporting--version/-V(when stamped). Usesflock($XDG_RUNTIME_DIR/copyq-ydotool-paste.lock), releases stuck modifiers, ensuresydotool.service/ydotoold.serviceis reachable, pollskdotooluntil a non-CopyQ, non-Plasma window has focus, optionally verifies image clipboard payload SHA-256 viawl-pastewhenCOPYQ_PASTE_MIMEandCOPYQ_PASTE_SHA256are supplied, and sends a singleCtrl+V. Exits4ifydotooldis unreachable,6if target focus is not confirmed, or7if image verification fails.CopyQ/copyq_script_override.js: Source for the JavaScript clipboard-persistence andglobal.paste()override embedded insideCopyQ/copyq-commands.ini(skips transient dictation MIMEapplication/x-assistant-dictation-transient).CopyQ/copyq-toggle-window: Shows, focuses, or minimizes CopyQ directly viakdotool(or startscopyq --start-server show), referenced byapplications/net.local.copyq.desktop.CopyQ/ensure-copyq-window-toggle: Waits for KWin D-Bus readiness and loads/starts the installedcopyq-window-toggleKWin script; run bysystemd/user/copyq-window-toggle-loader.service.CopyQ/test_wayland_paste.sh,CopyQ/test_wayland_image.sh,CopyQ/test_script_override.js: Offline regression tests using mock tools underCopyQ/test-tools/without sending real input events.
- Native C++20/Qt6 KWin Effect: Snapshots overlapping windows into depth planes and lets you browse/select them (
Meta+Zor mouse DPI combination) without mutating stacking order during preview. build.sh: Reads the installedkwin_wayland --version, configures and builds with CMake + Ninja into${XDG_CACHE_HOME:-$HOME/.cache}/desktop-depth-preview/kwin-<version>, runsctest --output-on-failure, and prints the compileddesktop-depth-preview.sopath (does not install or reload KWin).
- KWin JavaScript plugin (
metadata.json+contents/code/main.js) registeringcopyq-window-toggle(F24) to toggle the CopyQ window or startcopyq-show-window.servicewhen no CopyQ window exists.
google-chrome-fast: Wrapper for/usr/bin/google-chrome-stablesupporting--version/-V(when stamped). With no arguments, opens--new-window https://www.google.com/; explicit arguments pass straight through.activate-or-launch-chrome.sh: Useskdotooland process inspection to cycle main-profile Chrome windows (excluding child processes and custom--user-data-dirinstances), or launches~/.local/bin/google-chrome-fastwhen none exist.chrome-flags.conf: Explicit startup flags (--ozone-platform=x11,MiddleClickAutoscroll,--disable-features=Vulkan, GPU rasterization/zero-copy/ignore-blocklist).
install-autoconfig.sh [FIREFOX_DIR]: Atomically installsfirefox-autoconfig.cfg,defaults/pref/99-firefox-autoconfig.js,autoconfig/{british-dictionary.js,reverse-autoscroll.js}, andautoscroll/{ReverseAutoScrollChild.sys.mjs,scroll-range.sys.mjs}intoFIREFOX_DIR(defaults to/usr/lib/firefox). Preserves an existingapplicationlauncher-audio-bridge.jsintegration and backs up legacy dictionary-only configs.firefox-new-window-fast: Openshttps://www.google.com/in a new window via the running profile'sorg.mozilla.firefox.*D-Bus remote endpoint, falling back to/usr/lib/firefox/firefox --new-window https://www.google.com/.user.js: Profile startup preferences (session restore, British spellchecken-GB-large, middle-click autoscroll, hardware video decode, content isolation).test_autoconfig.mjs&autoscroll/test_scroll_range.mjs: Node.js unit tests verifying AutoConfig loader/modules and reversed scroll-range math without launching Firefox.
tmux/link.sh: Validates and symlinks~/.tmux.conf,${XDG_CONFIG_HOME:-$HOME/.config}/tmux-simple/tmux.conf(compatibility alias), and${XDG_CONFIG_HOME:-$HOME/.config}/fish/functions/tmux.fish. Refuses to overwrite foreign files or unrecognized symlinks.tmux/tmux.fish: Fish wrapper that routes ordinarytmuxinvocations to a private mode-0700socket at$XDG_RUNTIME_DIR/tmux-simple-<uid>/server.sock(falling back to/tmp) unless-S,-L, or$TMUXis already set.fish/config.fish: Primary interactive Fish configuration featuring PATH deduplication,LS_COLORS/EZA_COLORScaching,zoxideauto-reporting,friz+unearthinteractivecd/nano/Ctrl+Uppickers,xfce4-terminalhyperlink click handling (0x1f), alias-awaresudo(redirecting elevatedrmto~/.local/bin/trashand rewritingunearth --index-if-watchedto--live), and command-duration prompt hooks.fish/print_extension_groups.sh: ReadsLS_COLOURS_FILE(or the defaultls_colours.dircolors) and prints colorized extension/type swatches to stdout without modifying files.fish/test_sudo.py: Pythonunittestsuite exercising the alias-awaresudoresolver in isolated fixtures without executing real privileged commands.
systemd/user/kde-refresh-powerdevil-after-lock: Watches KDE ScreenSaver lock/unlock D-Bus signals, caches validated screen brightness in$XDG_RUNTIME_DIR/kde-refresh-powerdevil-after-lock.brightness, restartsplasma-powerdevil.serviceon unlock (10-second cooldown), and restores brightness. Supports--version/-Vwhen stamped.etc/udev/kwin-monitor-change-reinit: Triggered byetc/udev/rules.d/99-kwin-reinit-on-hotplug.ruleson DRM hotplug events; fingerprints connected outputs viakscreen-doctor --outputs, caches them in~/.cache/kwin-monitor-reinit/connected-displays, and callsqdbus6 org.kde.KWin /Compositor org.kde.kwin.Compositing.reinitializeonly when the connected display identity changes.build-support/app_version.py,script_version.py,script_runtime.py: Computes0.<history-generation>.<commit-count>-<build>fromAPP-VERSION, full Git history, and.app-version/state.json; stamps adjacent*.program-metadata.jsonfiles (ignored by Git) verified at runtime byscript_runtime.pyon--version/-Vforchrome/google-chrome-fast,CopyQ/copyq-wayland-paste.sh, andsystemd/user/kde-refresh-powerdevil-after-lock.packages/asrock-nct6683-dkms-git/: Local Arch/CachyOSPKGBUILDbuilding upstreambranchmispredictor/asrock-nct6683with DKMS sources,asrock-nct6683.modules-load,asrock-nct6683.modprobe(nct6687alias), pacman post-transaction hook (75-asrock-nct6683-dkms.hook), andverify-dkmschecker.
- Clone to the expected checkout path (
bootstrap.sh, service units, andxremap/meta-keyboard.ymlexpect~/Dev/config):git clone <repo-url> ~/Dev/config cd ~/Dev/config
- Review hardware- and machine-specific files before provisioning (see Notes & Caveats):
xremap/meta-keyboard.ymlandsystemd/user/xremap-meta-keyboard.service(/dev/input/by-id/device paths)wayland/wayland_scroll_daemon.py(gaming mouse/dev/input/by-id/path)etc/iw-regdomain&etc/modprobe.d/cfg80211-regdom.conf(wireless regulatory domainGB)ssh/configandssh/authorized_keys(target hosts and permitted management public keys)etc/systemd/system/nvidia-power-limit.service(123 W GPU power limit)
- Run the main bootstrap script (choose the SSH role explicitly):
./bootstrap.sh --role managed-target # Or, to also generate/validate a machine-local ~/.ssh/id_ed25519 client identity: ./bootstrap.sh --role peer-workstationbootstrap.shexecutes six ordered stages:- Disables/removes legacy xremap and taskbar user units/configs.
- Migrates/symlinks user dotfiles, imports Mousepad dconf preferences, runs
tmux/link.sh, configures SSH user files/role, and links Firefoxuser.js. - Snapshots live
/etcNetworkManager connectivity, udev rules, KWin hotplug helper, NVIDIA power-limit unit, and UFW rules into the repo (copy-only). - Reloads
systemctl --user daemon-reload. - Enables the six tracked/dependent systemd user services (
wayland-scroll-daemon,xremap-meta-keyboard,copyq-window-toggle-loader,kde-refresh-powerdevil-after-lock,krfb-tunnel,ydotool). - Authenticates via
pkexecto deploysshdpolicy & wireless regdom, installwireless-regdb&hunspell-en_gb, runfirefox/install-autoconfig.sh, populate/usr/local/share/firefox-dictionaries, build/install/verifyasrock-nct6683-dkms-git, rebuild initramfs (mkinitcpio -P), and enable system services (systemd-timesyncd,nvidia-power-limit,ufw,sshd).
- Complete manual / separately managed component setups not performed by
bootstrap.sh:- Shells & editors: Symlink
fish/config.fishandfish/ls_colours.dircolorsinto~/.config/fish/,bash/.bashrcto~/.bashrc,nano/.nanorcto~/.nanorc, andxfce4-terminal/*into~/.config/xfce4/(see each folder'sREADME.md). - CopyQ: Close CopyQ, symlink
CopyQ/copyq.confandCopyQ/copyq-commands.iniinto~/.config/copyq/, install thekde/kwin/scripts/copyq-window-toggle/KWin script, and installapplications/net.local.copyq.desktop(plus dictation.desktopentries if used) into~/.local/share/applications/. - Native KWin Depth Preview effect: Build with
bash kde/kwin/effects/desktop-depth-preview/build.shand install the resulting.somatching the running KWin ABI. - Optional
/etcdrop-ins: Deliberately deployetc/modules-load.d/uinput.conf,etc/udev/rules.d/*,etc/udev/kwin-monitor-change-reinit,etc/iwd/main.conf,etc/NetworkManager/conf.d/*,etc/systemd/system/nvidia-power-limit.service, andetc/ufw/*as appropriate for the target machine.
- Shells & editors: Symlink
- Stamp versioned standalone scripts (required for
--version/-Von fresh checkouts or after editing those scripts):for entry in chrome/google-chrome-fast CopyQ/copyq-wayland-paste.sh \ systemd/user/kde-refresh-powerdevil-after-lock; do python3 -B build-support/script_version.py --root . --entry "$entry" || exit "$entry" --version || exit done
- Start or recover the user input service chain (startup order matters:
xremapmust create the virtual keyboard beforewayland_scroll_daemon.pybinds):systemctl --user restart xremap-meta-keyboard.service wayland-scroll-daemon.service ydotool.service
Physical Corsair keyboard interfaces + Mouse keyboard interface
│
▼
xremap-meta-keyboard.service (meta-keyboard.yml)
├── Launch actions ─► xremap-launch-scoped ─► transient systemd --user unit
│ ├── applicationlauncher / chrome / firefox-new-window-fast
│ ├── kwin/launch-taskbar-app.sh N
│ └── D-Bus: KWin ToggleDesktopDepthPreview (mouse-only)
├── Suppressed ─► Ctrl+W dropped
└── Normalized key ─► "xremap normalized keyboard" (incl. F24, KEY_MUTE)
│
┌───────────────────────────┴───────────────────────────┐
▼ ▼
KWin / KDE / Apps wayland-scroll-daemon.service
├── F24 ─► copyq-window-toggle KWin script ├── Modifiers ─► wayland_modifier_state.env
│ └─► CopyQ paste override ├── Meta+Wheel ─► minimize/restore helpers
│ └─► copyq-wayland-paste.sh ├── Ctrl+Meta+Mid ─► close helper
│ (kdotool + wl-paste + ydotool)├── Shift+Wheel ─► KWin Zoom (D-Bus)
└── KEY_MUTE ─► Audio Volume Mute └── Mouse Back/Fwd (xfce4-terminal only)
└─► Alt+Left/Right ─► Fish prevd/nextd
Run from the repository root (~/Dev/config):
# CopyQ Wayland paste, image readiness & script override tests (mocked; no real input sent)
bash CopyQ/test_wayland_paste.sh
bash CopyQ/test_wayland_image.sh
node CopyQ/test_script_override.js
# Firefox AutoConfig & reversed scroll-range tests (offline)
node --test firefox/test_autoconfig.mjs firefox/autoscroll/test_scroll_range.mjs
# Fish alias-aware sudo wrapper tests (isolated fixtures; no privileged execution)
python3 -B -m unittest discover -s fish -p test_sudo.py -v
# xremap shortcut & device-scope regression tests (uses system PyYAML)
python3 xremap/test_meta_keyboard.py
# KWin Desktop Depth Preview build & CTest suite
bash kde/kwin/effects/desktop-depth-preview/build.sh
# ASRock NCT6683 DKMS verification (requires root)
sudo /usr/lib/asrock-nct6683/verify-dkms- Platform: Arch Linux / CachyOS with KDE Plasma 6 on Wayland,
systemd(system + user managers),pacman,mkinitcpio, andpkexec(Polkit) forbootstrap.sh. - Core system & runtime tools:
- Input & Wayland automation:
xremap,ydotool(ydotool.service),kdotool(PATH or~/.cargo/bin/kdotool),wl-clipboard(wl-paste/wl-copy),python3withevdevandPyYAML,/dev/uinputkernel module andinputgroup permissions. - Desktop & system utilities:
qdbus6,kscreen-doctor,dconf,flock,openssh,ufw,wireless-regdb,hunspell-en_gb,gh(GitHub CLI for Git HTTPS credentials). - Shell & CLI ecosystem (used by
fish/config.fish):fish,zoxide,unearth,friz,twig,xdg-open, plus local helpers at~/.local/bin/trash,~/.local/bin/copy, and~/.local/bin/tree. - Test & build tooling:
node(Node.js),jq,rg,base64,cmake,ninja, C++20 compiler, Qt 6.10+, ECM/KF6 6.26+, KWin dev libraries (fordesktop-depth-preview), andbase-devel,dkms,linux-cachyos-headers(forasrock-nct6683-dkms-git).
- Input & Wayland automation:
- Separately built local applications (configured here, but built/installed from external repositories):
- Custom
CopyQbuild (~/repos/CopyQ/build/copyq/~/.local/bin/copyq) passing activation payload context toglobal.paste(). - Locally patched
xfce4-terminal(hyperlinks, pixel resize hints, Codex clipboard fallback,Ctrl+Backspace). - Patched native
tmuxbackend and its~/.local/libexec/tmux/+~/.local/bin/tmux-moshhelpers. - Custom
applicationlauncher(~/.local/bin/applicationlauncher) and optional Firefox audio bridge. - Custom
krfbbuild (~/repos/krfb/install/bin/krfb) and dictation toggle scripts (~/Dev/dictation/{rambler,whisper}/toggle.sh).
- Custom
- Hardcoded repository path:
bootstrap.shsetsREPO_DIR="$HOME/Dev/config", and multiple systemd user units andxremap/meta-keyboard.ymlreference scripts under~/Dev/config. Cloning elsewhere requires updating those paths. - Migration helper writes back to the repository:
migrate_and_link()inbootstrap.shcopies a differing regular live file into the repository before moving the original to*.bakand creating the symlink. Inspect existing files and rungit status/git diffafter runningbootstrap.shso unintended live state is not committed. - Asymmetric
/etchandling:bootstrap.shrestoresetc/ssh/sshd_config.d/99-security.confand wireless regulatory files to/etc, but only snapshots (copies live -> repo)NetworkManager/conf.d/20-connectivity.conf,udev/rules.d/*,kwin-monitor-change-reinit,nvidia-power-limit.service, andufw/*. Other files underetc/(iwd/main.conf,NetworkManager/conf.d/{30,40}-*,modules-load.d/uinput.conf,conf.d/wireless-regdom) are tracked for manual deployment only. - Hardware-specific settings: Device
/dev/input/by-id/paths target a specific Corsair keyboard and Holtek USB gaming mouse;packages/asrock-nct6683-dkms-gittargets ASRock NCT6683-family Super I/O sensors;nvidia-power-limit.servicesets a 123 W GPU cap;etc/iw-regdomainselectsGB;kde/files store workstation-specific monitor geometry and panel layouts;etc/udev/kwin-monitor-change-reinitassumes UID 1000. Review these before deploying to another machine. - Security & secrets: No private SSH keys, Codex auth/history, keyring data, or real
PASSGEN_PEPPERvalues are tracked in this repository. Note thatbootstrap.shinstallsssh/authorized_keys(granting incoming key-only access to the keys listed there),etc/ssh/sshd_config.d/99-security.confsetsPermitRootLogin prohibit-password, andfish/config.fishaliasescodextocodex --dangerously-bypass-approvals-and-sandbox(deliberately overriding the stricter defaults incodex/config.toml). - Live Plasma / Xfconf / CopyQ rewrites: Running GUI apps overwrite their config files. Close CopyQ, PCManFM, or Plasma sessions as appropriate before replacing symlinked configs, and avoid restarting
xremap-meta-keyboard.serviceduring active work if any GUI app was launched via the direct fallback inside its cgroup.