xonecas.io
56101
Df

dotfiles / commit d715cf0

feat: cleanup

xonecas2026-05-14 d715cf0405d15788aa171a39aa2cd9f49961aa52 parent 8baa258

17 files changed

README.md+0−124
@@ -1,124 +0,0 @@
1-# dotfiles
2-
3-Personal configs for a KDE Plasma 6 + Alacritty + Neovim setup on CachyOS (Arch).
4-
5-Everything uses the [0x96f](https://github.com/0x96f-org/) color palette, with
6-coordinated dark/light switching that follows KDE's sunrise/sunset schedule.
7-
8-## What's in here
9-
10-```
11-alacritty/ Alacritty terminal config + 0x96f dark/light themes
12-codium/ VSCodium settings + extensions list
13-nvim/ Neovim config (lazy.nvim, LSP, fzf-lua, ANSI color scheme)
14-pi/ pi coding agent themes (0x96f-dark, 0x96f-light)
15-shell/ Bash config — aliases, prompt with exit status & timer, git info
16-theme-switcher/ D-Bus watcher that syncs all tools with KDE dark/light mode
17-```
18-
19-## Installation
20-
21-```bash
22-# Everything
23-./install.sh
24-
25-# Specific configs
26-./install.sh nvim
27-./install.sh alacritty theme-switcher pi
28-```
29-
30-Each config either symlinks into `~/.config/` or runs its own `install.sh` for
31-custom placement.
32-
33-## Color Coordination
34-
35-All tools share the same 0x96f palette. The theme switcher daemon keeps
36-everything in sync when KDE toggles between dark and light mode:
37-
38-```
39-KDE sunrise/sunset toggle
40- → D-Bus signal (org.freedesktop.appearance)
41- → alacritty-theme-switcher
42- ├─ Alacritty cp dark.toml/light.toml → current-theme.toml (live reload)
43- ├─ pi jq .theme → settings.json (next session)
44- ├─ Neovim writes ~/.local/state/kde-color-mode (<leader>T toggle)
45- ├─ VSCodium built-in window.autoDetectColorScheme (automatic)
46- └─ (extensible — anything can read the signal file)
47-```
48-
49-### Neovim specifics
50-
51-The `ansi.vim` colorscheme uses **cterm ANSI indices only** (`set notermguicolors`),
52-so nvim inherits its colors directly from the terminal. When Alacritty's theme
53-changes, nvim gets new colors immediately. The `theme-sync.lua` plugin polls a
54-signal file to flip `background=dark/light`, which re-sources the colorscheme
55-to adjust UI elements (status line, cursor line, popups, etc.) that need
56-different treatment on light vs dark backgrounds.
57-
58-## Details
59-
60-### Shell (`shell/`)
61-
62-Full reference bashrc is in `shell/bashrc`. Key features:
63-
64-- **Two-line prompt**: `HH:MM:SS exit_code duration ~/path (branch*)` on the
65- first line, `$ ` on the second.
66-- **Command timer**: uses a `DEBUG` trap + `$SECONDS` — pure bash, no
67- external dependencies.
68-- **Git branch + dirty flag** in the prompt.
69-- `greet` function: random cowsay + fortune + lolcat on shell start.
70-- fzf integration, aliases for git/nvim.
71-
72-### Alacritty (`alacritty/`)
73-
74-- Config with `live_config_reload = true`.
75-- Colors live in a separate `current-theme.toml` imported via Alacritty's
76- `import` directive — the theme switcher writes this file.
77-- Two themes based on the [0x96f palette](https://github.com/0x96f-org/0x96f-term-theme):
78- - `themes/dark.toml` — dark background (`#262427`)
79- - `themes/light.toml` — light complement (`#fafafa`)
80-
81-### Pi (`pi/`)
82-
83-Custom themes for the [pi](https://github.com/badlogic/pi-mono) coding agent:
84-
85-- `0x96f-dark.json` — mapped from the dark palette
86-- `0x96f-light.json` — mapped from the light palette
87-
88-Both use the same semantic mapping: cyan for accents, blue for borders,
89-magenta for keywords, green for strings, yellow for headings/types.
90-
91-### Theme Switcher (`theme-switcher/`)
92-
93-A bash script + systemd user service that watches KDE's dark/light mode via
94-D-Bus (`org.freedesktop.portal.Settings`).
95-
96-**Dependencies:** `dbus-monitor` (usually pre-installed), `jq` (for pi
97-settings; gracefully skipped if absent).
98-
99-**Service management:**
100-
101-```bash
102-systemctl --user status alacritty-theme-switcher
103-journalctl --user -u alacritty-theme-switcher -f
104-```
105-
106-### VSCodium (`codium/`)
107-
108-- Settings with `window.autoDetectColorScheme` for automatic dark/light switching.
109-- `preferredDarkColorTheme`: **0x96f** (from marketplace).
110-- `preferredLightColorTheme`: **0x96f Light** (custom, built in `~/src/0x96f-light-codium-theme`).
111-- `extensions.txt` — list of installed extensions for reproducible setup.
112-
113-### Neovim (`nvim/`)
114-
115-See [`nvim/README.md`](nvim/README.md) for details.
116-
117-## Requirements
118-
119-- Bash 4+
120-- Neovim ≥ 0.9
121-- Alacritty ≥ 0.13 (for `import` support)
122-- KDE Plasma 6 (for the theme switcher D-Bus integration)
123-- Optional: `fortune`, `cowsay`, `lolcat` (shell greeting)
124-- Optional: `jq` (pi theme switching)
alacritty/alacritty.toml+0−139
@@ -1,139 +0,0 @@
1-[env]
2-TERM = "xterm-256color"
3-WINIT_X11_SCALE_FACTOR = "1"
4-
5-[window]
6-dynamic_padding = true
7-decorations = "full"
8-title = "hulk@CachyOS"
9-opacity = 1
10-
11-[window.dimensions]
12-columns = 140
13-lines = 32
14-
15-[window.class]
16-instance = "Alacritty"
17-general = "Alacritty"
18-
19-[scrolling]
20-history = 10000
21-multiplier = 3
22-
23-[font]
24-size = 14
25-
26-[font.normal]
27-family = "ZedMono Nerd Font Mono"
28-style = "Regular"
29-
30-[font.bold]
31-family = "ZedMono Nerd Font Mono"
32-style = "Bold"
33-
34-[font.italic]
35-family = "ZedMono Nerd Font Mono"
36-style = "Italic"
37-
38-[font.bold_italic]
39-family = "ZedMono Nerd Font Mono"
40-style = "Bold Italic"
41-
42-[selection]
43-semantic_escape_chars = ",│`|:\"' ()[]{}<>\t"
44-save_to_clipboard = true
45-
46-[cursor]
47-style = "Underline"
48-vi_mode_style = "None"
49-unfocused_hollow = true
50-thickness = 0.15
51-
52-[mouse]
53-hide_when_typing = true
54-
55-[[mouse.bindings]]
56-mouse = "Middle"
57-action = "PasteSelection"
58-
59-[keyboard]
60-[[keyboard.bindings]]
61-key = "Paste"
62-action = "Paste"
63-
64-[[keyboard.bindings]]
65-key = "Copy"
66-action = "Copy"
67-
68-[[keyboard.bindings]]
69-key = "L"
70-mods = "Control"
71-action = "ClearLogNotice"
72-
73-[[keyboard.bindings]]
74-key = "L"
75-mods = "Control"
76-mode = "~Vi"
77-chars = "\f"
78-
79-[[keyboard.bindings]]
80-key = "PageUp"
81-mods = "Shift"
82-mode = "~Alt"
83-action = "ScrollPageUp"
84-
85-[[keyboard.bindings]]
86-key = "PageDown"
87-mods = "Shift"
88-mode = "~Alt"
89-action = "ScrollPageDown"
90-
91-[[keyboard.bindings]]
92-key = "Home"
93-mods = "Shift"
94-mode = "~Alt"
95-action = "ScrollToTop"
96-
97-[[keyboard.bindings]]
98-key = "End"
99-mods = "Shift"
100-mode = "~Alt"
101-action = "ScrollToBottom"
102-
103-[[keyboard.bindings]]
104-key = "V"
105-mods = "Control|Shift"
106-action = "Paste"
107-
108-[[keyboard.bindings]]
109-key = "C"
110-mods = "Control|Shift"
111-action = "Copy"
112-
113-[[keyboard.bindings]]
114-key = "F"
115-mods = "Control|Shift"
116-action = "SearchForward"
117-
118-[[keyboard.bindings]]
119-key = "B"
120-mods = "Control|Shift"
121-action = "SearchBackward"
122-
123-[[keyboard.bindings]]
124-key = "C"
125-mods = "Control|Shift"
126-mode = "Vi"
127-action = "ClearSelection"
128-
129-[[keyboard.bindings]]
130-key = "Key0"
131-mods = "Control"
132-action = "ResetFontSize"
133-
134-[general]
135-live_config_reload = true
136-working_directory = "None"
137-import = [
138- "~/.config/alacritty/current-theme.toml"
139-]
alacritty/install.sh+0−39
@@ -1,39 +0,0 @@
1-#!/usr/bin/env bash
2-# Install Alacritty config and themes.
3-set -euo pipefail
4-
5-repo_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
6-config_dir="${XDG_CONFIG_HOME:-$HOME/.config}/alacritty"
7-
8-mkdir -p "$config_dir/themes"
9-
10-# Link main config
11-for f in alacritty.toml; do
12- target="$config_dir/$f"
13- if [ -e "$target" ] || [ -L "$target" ]; then
14- echo "Skipping $f (already exists): $target"
15- else
16- ln -s "$repo_dir/$f" "$target"
17- echo "Linked $f -> $target"
18- fi
19-done
20-
21-# Link theme files
22-for f in "$repo_dir"/themes/*.toml; do
23- name="$(basename "$f")"
24- target="$config_dir/themes/$name"
25- if [ -e "$target" ] || [ -L "$target" ]; then
26- echo "Skipping themes/$name (already exists): $target"
27- else
28- ln -s "$f" "$target"
29- echo "Linked themes/$name -> $target"
30- fi
31-done
32-
33-# Initialize current-theme.toml with dark if it doesn't exist
34-if [ ! -e "$config_dir/current-theme.toml" ]; then
35- cp "$repo_dir/themes/dark.toml" "$config_dir/current-theme.toml"
36- echo "Initialized current-theme.toml (dark)"
37-fi
38-
39-echo "Alacritty config installed."
alacritty/themes/dark.toml+0−33
@@ -1,33 +0,0 @@
1-# 0x96f dark theme
2-# https://github.com/0x96f-org/0x96f-term-theme/blob/main/alacritty/0x96f.toml
3-
4-[window]
5-decorations_theme_variant = "Dark"
6-
7-[colors.primary]
8-background = '#262427'
9-foreground = '#fcfcfa'
10-
11-[colors.cursor]
12-text = '#000000'
13-cursor = '#fcfcfa'
14-
15-[colors.normal]
16-black = '#262427'
17-red = '#ff7272'
18-green = '#bcdf59'
19-yellow = '#ffca58'
20-blue = '#49cae4'
21-magenta = '#a093e2'
22-cyan = '#aee8f4'
23-white = '#fcfcfa'
24-
25-[colors.bright]
26-black = '#545452'
27-red = '#ff8787'
28-green = '#c6e472'
29-yellow = '#ffd271'
30-blue = '#64d2e8'
31-magenta = '#aea3e6'
32-cyan = '#baebf6'
33-white = '#fcfcfa'
alacritty/themes/light.toml+0−32
@@ -1,32 +0,0 @@
1-# 0x96f-inspired light theme
2-
3-[window]
4-decorations_theme_variant = "Light"
5-
6-[colors.primary]
7-background = '#fafafa'
8-foreground = '#2a2a2a'
9-
10-[colors.cursor]
11-text = '#fafafa'
12-cursor = '#2a2a2a'
13-
14-[colors.normal]
15-black = '#2a2a2a'
16-red = '#d1364e'
17-green = '#6ea226'
18-yellow = '#c08a19'
19-blue = '#2b8db3'
20-magenta = '#7c5ec1'
21-cyan = '#2b9da4'
22-white = '#fafafa'
23-
24-[colors.bright]
25-black = '#6a6a6a'
26-red = '#e05265'
27-green = '#8fbf44'
28-yellow = '#d9a53e'
29-blue = '#4da8cc'
30-magenta = '#9579d1'
31-cyan = '#4db5b5'
32-white = '#ffffff'
codium/extensions.txt+0−4
@@ -1,4 +0,0 @@
1-dev-onyx.onyx-theme
2-filipjane.0x96f-vscode-theme
3-github.github-vscode-theme
4-xonecas.0x96f-light-theme
codium/install.sh+0−39
@@ -1,39 +0,0 @@
1-#!/usr/bin/env bash
2-# Install VSCodium settings and extensions.
3-set -euo pipefail
4-
5-repo_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
6-config_dir="${XDG_CONFIG_HOME:-$HOME/.config}/VSCodium/User"
7-
8-mkdir -p "$config_dir"
9-
10-# Link settings
11-target="$config_dir/settings.json"
12-if [ -e "$target" ] || [ -L "$target" ]; then
13- echo "Skipping settings.json (already exists): $target"
14-else
15- ln -s "$repo_dir/settings.json" "$target"
16- echo "Linked settings.json -> $target"
17-fi
18-
19-# Install extensions
20-if command -v codium >/dev/null 2>&1; then
21- while IFS= read -r ext; do
22- [ -z "$ext" ] && continue
23- codium --install-extension "$ext" --force 2>/dev/null && \
24- echo "Installed $ext" || echo "Failed: $ext"
25- done < "$repo_dir/extensions.txt"
26-else
27- echo "codium not found, skipping extension install."
28-fi
29-
30-# Install 0x96f-light theme from local source if available
31-local_theme="$HOME/src/0x96f-light-codium-theme"
32-if [ -d "$local_theme" ] && command -v codium >/dev/null 2>&1; then
33- vsix=$(find "$local_theme" -maxdepth 1 -name "*.vsix" | head -1)
34- if [ -n "$vsix" ]; then
35- codium --install-extension "$vsix" && echo "Installed 0x96f-light from VSIX"
36- fi
37-fi
38-
39-echo "VSCodium config installed."
codium/settings.json+0−24
@@ -1,24 +0,0 @@
1-{
2- "workbench.colorTheme": "0x96f",
3- "window.commandCenter": false,
4- "workbench.layoutControl.enabled": false,
5- "workbench.activityBar.location": "top",
6- "terminal.integrated.initialHint": false,
7- "editor.fontSize": 17,
8- "editor.fontFamily": "'ZedMono Nerd Font Mono', 'Droid Sans Mono', monospace",
9- "terminal.integrated.fontSize": 16,
10- "workbench.startupEditor": "none",
11- "editor.defaultFormatter": "esbenp.prettier-vscode",
12- "editor.formatOnSave": true,
13- "chat.disableAIFeatures": true,
14- "chat.extensionUnification.enabled": false,
15- "editor.tabSize": 2,
16- "editor.wordWrap": "on",
17- "editor.minimap.enabled": false,
18- "workbench.secondarySideBar.defaultVisibility": "hidden",
19- "security.workspace.trust.untrustedFiles": "open",
20- "workbench.preferredDarkColorTheme": "0x96f",
21- "workbench.preferredHighContrastLightColorTheme": "GitHub Light High Contrast",
22- "workbench.preferredLightColorTheme": "0x96f Light",
23- "window.autoDetectColorScheme": true,
24-}
install.sh+0−48
@@ -1,48 +0,0 @@
1-#!/usr/bin/env bash
2-# Install configs from this repo.
3-# Usage: ./install.sh [config ...]
4-# No args installs all configs.
5-# Available configs: alacritty, nvim, shell, theme-switcher
6-#
7-# If a config has its own install.sh, it is executed instead of linked.
8-set -euo pipefail
9-
10-repo_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
11-config_root="${XDG_CONFIG_HOME:-$HOME/.config}"
12-
13-configs=()
14-if [ "$#" -gt 0 ]; then
15- configs=("$@")
16-else
17- shopt -s nullglob
18- for dir in "$repo_dir"/*; do
19- if [ -d "$dir" ]; then
20- configs+=("$(basename "$dir")")
21- fi
22- done
23-fi
24-
25-for config in "${configs[@]}"; do
26- config_dir="$repo_dir/$config"
27- if [ ! -d "$config_dir" ]; then
28- echo "Unknown config: $config" >&2
29- exit 1
30- fi
31-
32- echo "==> Installing $config"
33-
34- if [ -f "$config_dir/install.sh" ]; then
35- bash "$config_dir/install.sh"
36- continue
37- fi
38-
39- mkdir -p "$config_root"
40- target="$config_root/$config"
41- if [ -e "$target" ] || [ -L "$target" ]; then
42- echo " Skipping (target exists): $target"
43- continue
44- fi
45-
46- ln -s "$config_dir" "$target"
47- echo " Linked $config -> $target"
48-done
nvim/init.lua+3−2
@@ -27,11 +27,12 @@ vim.g.maplocalleader = ' '
2727 local keymap = vim.keymap.set
2828 local opts = { noremap = true, silent = true }
2929
30--- Search highlighting
30+-- My keybindings
3131 keymap('n', '<leader>h', ':nohlsearch<CR>', opts)
3232 keymap('n', '<leader>q', ':qall<CR>', { noremap = true, silent = true, desc = 'Quit all' })
3333 keymap('n', '<leader>s', ':write<CR>', { noremap = true, silent = true, desc = 'Save buffer' })
3434 keymap('n', '<leader>S', ':wall<CR>', { noremap = true, silent = true, desc = 'Save all buffers' })
35+keymap('n', '<leader>e', ':e .', { noremap = true, silent = true, desc = 'Save all buffers' })
3536
3637 -- Movement remaps
3738 keymap('n', 'j', 'gj', { noremap = true })
@@ -42,4 +43,4 @@ vim.api.nvim_create_user_command('Q', 'q', {})
4243 vim.api.nvim_create_user_command('W', 'w', {})
4344
4445 -- Theme
45-vim.cmd('colorscheme ansi')
46+vim.cmd('colorscheme ansi')
pi/install.sh+0−21
@@ -1,21 +0,0 @@
1-#!/usr/bin/env bash
2-# Install pi coding agent themes.
3-set -euo pipefail
4-
5-repo_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
6-theme_dir="$HOME/.pi/agent/themes"
7-
8-mkdir -p "$theme_dir"
9-
10-for f in "$repo_dir"/themes/*.json; do
11- name="$(basename "$f")"
12- target="$theme_dir/$name"
13- if [ -e "$target" ] || [ -L "$target" ]; then
14- echo "Skipping $name (already exists): $target"
15- else
16- ln -s "$f" "$target"
17- echo "Linked $name -> $target"
18- fi
19-done
20-
21-echo "Pi themes installed. Select via /settings or settings.json."
pi/themes/0x96f-dark.json+0−87
@@ -1,87 +0,0 @@
1-{
2- "$schema": "https://raw.githubusercontent.com/badlogic/pi-mono/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
3- "name": "0x96f-dark",
4- "vars": {
5- "bg": "#262427",
6- "fg": "#fcfcfa",
7- "red": "#ff7272",
8- "green": "#bcdf59",
9- "yellow": "#ffca58",
10- "blue": "#49cae4",
11- "magenta": "#a093e2",
12- "cyan": "#aee8f4",
13- "brightBlack": "#545452",
14- "brightRed": "#ff8787",
15- "brightGreen": "#c6e472",
16- "brightYellow": "#ffd271",
17- "brightBlue": "#64d2e8",
18- "brightMagenta": "#aea3e6",
19- "brightCyan": "#baebf6",
20- "dimGray": "#6e6a6e",
21- "darkGray": "#3e3b40"
22- },
23- "colors": {
24- "accent": "cyan",
25- "border": "blue",
26- "borderAccent": "cyan",
27- "borderMuted": "darkGray",
28- "success": "green",
29- "error": "red",
30- "warning": "yellow",
31- "muted": "dimGray",
32- "dim": "brightBlack",
33- "text": "",
34- "thinkingText": "dimGray",
35-
36- "selectedBg": "#3e3b40",
37- "userMessageBg": "#2e2c30",
38- "userMessageText": "",
39- "customMessageBg": "#2e2838",
40- "customMessageText": "",
41- "customMessageLabel": "magenta",
42- "toolPendingBg": "#2a2830",
43- "toolSuccessBg": "#2a302a",
44- "toolErrorBg": "#302a2a",
45- "toolTitle": "",
46- "toolOutput": "dimGray",
47-
48- "mdHeading": "yellow",
49- "mdLink": "blue",
50- "mdLinkUrl": "brightBlack",
51- "mdCode": "cyan",
52- "mdCodeBlock": "green",
53- "mdCodeBlockBorder": "dimGray",
54- "mdQuote": "dimGray",
55- "mdQuoteBorder": "dimGray",
56- "mdHr": "dimGray",
57- "mdListBullet": "cyan",
58-
59- "toolDiffAdded": "green",
60- "toolDiffRemoved": "red",
61- "toolDiffContext": "dimGray",
62-
63- "syntaxComment": "brightBlack",
64- "syntaxKeyword": "magenta",
65- "syntaxFunction": "blue",
66- "syntaxVariable": "brightRed",
67- "syntaxString": "green",
68- "syntaxNumber": "brightYellow",
69- "syntaxType": "yellow",
70- "syntaxOperator": "cyan",
71- "syntaxPunctuation": "fg",
72-
73- "thinkingOff": "darkGray",
74- "thinkingMinimal": "brightBlack",
75- "thinkingLow": "blue",
76- "thinkingMedium": "cyan",
77- "thinkingHigh": "magenta",
78- "thinkingXhigh": "brightMagenta",
79-
80- "bashMode": "green"
81- },
82- "export": {
83- "pageBg": "#1e1c20",
84- "cardBg": "#262427",
85- "infoBg": "#3a3530"
86- }
87-}
pi/themes/0x96f-light.json+0−87
@@ -1,87 +0,0 @@
1-{
2- "$schema": "https://raw.githubusercontent.com/badlogic/pi-mono/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
3- "name": "0x96f-light",
4- "vars": {
5- "bg": "#fafafa",
6- "fg": "#2a2a2a",
7- "red": "#d1364e",
8- "green": "#6ea226",
9- "yellow": "#c08a19",
10- "blue": "#2b8db3",
11- "magenta": "#7c5ec1",
12- "cyan": "#2b9da4",
13- "brightBlack": "#6a6a6a",
14- "brightRed": "#e05265",
15- "brightGreen": "#8fbf44",
16- "brightYellow": "#d9a53e",
17- "brightBlue": "#4da8cc",
18- "brightMagenta": "#9579d1",
19- "brightCyan": "#4db5b5",
20- "mediumGray": "#7a7a7a",
21- "lightGray": "#c0c0c0"
22- },
23- "colors": {
24- "accent": "cyan",
25- "border": "blue",
26- "borderAccent": "cyan",
27- "borderMuted": "lightGray",
28- "success": "green",
29- "error": "red",
30- "warning": "yellow",
31- "muted": "mediumGray",
32- "dim": "brightBlack",
33- "text": "",
34- "thinkingText": "mediumGray",
35-
36- "selectedBg": "#d8d8e0",
37- "userMessageBg": "#eeeeee",
38- "userMessageText": "",
39- "customMessageBg": "#ede7f6",
40- "customMessageText": "",
41- "customMessageLabel": "magenta",
42- "toolPendingBg": "#e8e8f0",
43- "toolSuccessBg": "#e8f0e8",
44- "toolErrorBg": "#f0e8e8",
45- "toolTitle": "",
46- "toolOutput": "mediumGray",
47-
48- "mdHeading": "yellow",
49- "mdLink": "blue",
50- "mdLinkUrl": "brightBlack",
51- "mdCode": "cyan",
52- "mdCodeBlock": "green",
53- "mdCodeBlockBorder": "mediumGray",
54- "mdQuote": "mediumGray",
55- "mdQuoteBorder": "mediumGray",
56- "mdHr": "mediumGray",
57- "mdListBullet": "green",
58-
59- "toolDiffAdded": "green",
60- "toolDiffRemoved": "red",
61- "toolDiffContext": "mediumGray",
62-
63- "syntaxComment": "brightBlack",
64- "syntaxKeyword": "magenta",
65- "syntaxFunction": "blue",
66- "syntaxVariable": "brightRed",
67- "syntaxString": "green",
68- "syntaxNumber": "brightYellow",
69- "syntaxType": "yellow",
70- "syntaxOperator": "cyan",
71- "syntaxPunctuation": "fg",
72-
73- "thinkingOff": "lightGray",
74- "thinkingMinimal": "brightBlack",
75- "thinkingLow": "blue",
76- "thinkingMedium": "cyan",
77- "thinkingHigh": "magenta",
78- "thinkingXhigh": "brightMagenta",
79-
80- "bashMode": "green"
81- },
82- "export": {
83- "pageBg": "#f4f4f4",
84- "cardBg": "#ffffff",
85- "infoBg": "#fff8e8"
86- }
87-}
shell/install.sh+0−7
@@ -1,7 +0,0 @@
1-#!/usr/bin/env bash
2-set -euo pipefail
3-
4-script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5-
6-cp "$script_dir/bashrc" "$HOME/.bashrc"
7-echo "Installed $script_dir/bashrc -> $HOME/.bashrc"
theme-switcher/alacritty-theme-switcher+0−64
@@ -1,64 +0,0 @@
1-#!/bin/bash
2-# Watches KDE Plasma dark/light mode changes via D-Bus and updates:
3-# - Alacritty theme (live_config_reload)
4-# - pi coding agent theme (0x96f-dark / 0x96f-light)
5-# - Neovim background (dark / light) via nvim --remote
6-
7-THEME_DIR="$HOME/.config/alacritty/themes"
8-CURRENT="$HOME/.config/alacritty/current-theme.toml"
9-PI_SETTINGS="$HOME/.pi/agent/settings.json"
10-
11-set_theme() {
12- local mode="$1"
13-
14- # Alacritty
15- cp -- "$THEME_DIR/${mode}.toml" "$CURRENT"
16-
17- # pi coding agent — use 0x96f themed variants
18- if [ -f "$PI_SETTINGS" ] && command -v jq >/dev/null 2>&1; then
19- local pi_theme="0x96f-${mode}"
20- local tmp
21- tmp=$(jq --arg t "$pi_theme" '.theme = $t' "$PI_SETTINGS") && \
22- printf '%s\n' "$tmp" > "$PI_SETTINGS"
23- fi
24-
25- # Signal file for Neovim (and anything else that wants to read it)
26- printf '%s\n' "$mode" > "$HOME/.local/state/kde-color-mode"
27-}
28-
29-get_mode() {
30- local val
31- val=$(dbus-send --session --print-reply \
32- --dest=org.freedesktop.portal.Desktop \
33- /org/freedesktop/portal/desktop \
34- org.freedesktop.portal.Settings.Read \
35- string:"org.freedesktop.appearance" \
36- string:"color-scheme" 2>/dev/null \
37- | grep "uint32" | tail -1 | awk '{print $NF}')
38-
39- # freedesktop color-scheme: 0=no preference, 1=dark, 2=light
40- if [ "$val" = "1" ]; then
41- echo "dark"
42- else
43- echo "light"
44- fi
45-}
46-
47-# Set theme to match current system mode on start
48-current=$(get_mode)
49-set_theme "$current"
50-echo "Initial mode: $current"
51-
52-# Listen for org.freedesktop.portal.Settings.SettingChanged signals.
53-# When the appearance namespace fires, re-query and apply.
54-dbus-monitor --session \
55- "type='signal',interface='org.freedesktop.portal.Settings',member='SettingChanged',path='/org/freedesktop/portal/desktop'" 2>/dev/null \
56-| while read -r line; do
57- if echo "$line" | grep -q "org.freedesktop.appearance"; then
58- # Small delay to let the portal settle
59- sleep 0.2
60- mode=$(get_mode)
61- set_theme "$mode"
62- echo "Switched to: $mode"
63- fi
64-done
theme-switcher/alacritty-theme-switcher.service+0−11
@@ -1,11 +0,0 @@
1-[Unit]
2-Description=Sync Alacritty theme with KDE dark/light mode
3-After=graphical-session.target
4-
5-[Service]
6-ExecStart=%h/.local/bin/alacritty-theme-switcher
7-Restart=on-failure
8-RestartSec=5
9-
10-[Install]
11-WantedBy=graphical-session.target
theme-switcher/install.sh+0−34
@@ -1,34 +0,0 @@
1-#!/usr/bin/env bash
2-# Install the KDE ↔ Alacritty/pi theme switcher.
3-# Puts the script in ~/.local/bin and enables a systemd user service.
4-set -euo pipefail
5-
6-repo_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
7-bin_dir="$HOME/.local/bin"
8-service_dir="${XDG_CONFIG_HOME:-$HOME/.config}/systemd/user"
9-
10-mkdir -p "$bin_dir" "$service_dir"
11-
12-# Install the watcher script
13-target="$bin_dir/alacritty-theme-switcher"
14-if [ -e "$target" ] || [ -L "$target" ]; then
15- echo "Removing old script: $target"
16- rm -f "$target"
17-fi
18-ln -s "$repo_dir/alacritty-theme-switcher" "$target"
19-chmod +x "$target"
20-echo "Linked script -> $target"
21-
22-# Install the systemd service
23-svc="$service_dir/alacritty-theme-switcher.service"
24-if [ -e "$svc" ] || [ -L "$svc" ]; then
25- echo "Removing old service: $svc"
26- rm -f "$svc"
27-fi
28-ln -s "$repo_dir/alacritty-theme-switcher.service" "$svc"
29-echo "Linked service -> $svc"
30-
31-# Enable and start
32-systemctl --user daemon-reload
33-systemctl --user enable --now alacritty-theme-switcher.service
34-echo "Theme switcher installed and running."