KDE Connect: Portal 2 sounds replace the old Oxygen picks; build-sound-theme reads mapping from the checkout
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013UzjWUxheYfqqjWGH7Ktmc
This commit is contained in:
1 parent
db20e3d8b2
commit
3c0fd6d632
3 files changed
+10
-2
No files matched your search
@@ -128,6 +128,9 @@
|
||||
],
|
||||
"completion-rotation": [
|
||||
"sound/ui/p2_editor_tile_pick_01.wav"
|
||||
],
|
||||
"phone-incoming-call": [
|
||||
"sound/ambient/alarms/portal_elevator_chime.wav"
|
||||
]
|
||||
}
|
||||
}
|
||||
+4
-1
@@ -70,8 +70,11 @@ lib.mkIf config.dotfiles.gui {
|
||||
"Event\\/recordingSaved" = popupSound "complete";
|
||||
"Event\\/ocrTextExtracted" = popupSound "complete";
|
||||
};
|
||||
# callReceived / missedCall / notification / textShareReceived keep your own Oxygen sounds.
|
||||
"kdeconnect.notifyrc" = {
|
||||
"Event\\/callReceived" = popupSound "phone-incoming-call";
|
||||
"Event\\/missedCall" = popupSound "dialog-warning";
|
||||
"Event\\/notification" = popupSound "message-new-instant";
|
||||
"Event\\/textShareReceived" = popupSound "message-new-instant";
|
||||
"Event\\/pingReceived" = popupSound "message-new-instant";
|
||||
"Event\\/pairingRequest" = popupSound "dialog-question";
|
||||
"Event\\/batteryLow" = popupSound "battery-caution";
|
||||
|
||||
@@ -11,6 +11,7 @@ glob patterns; edit config/sounds/portal2.json to retune.
|
||||
import argparse
|
||||
import fnmatch
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
@@ -18,7 +19,8 @@ from pathlib import Path
|
||||
import vpk
|
||||
|
||||
HOME = Path.home()
|
||||
MAPPING = Path(__file__).resolve().parent.parent / "config/sounds/portal2.json"
|
||||
# Read from the checkout (not next to this script, which lives in the Nix store) so edits apply without a switch.
|
||||
MAPPING = Path(os.environ.get("DOTFILES_DIR", HOME / ".dotfiles")) / "config/sounds/portal2.json"
|
||||
THEME = "portal2"
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user