mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-03 03:03:59 +01:00
feat(canokey): announce touch requests with a toast and a sound (#518)
Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
1 parent
1d7b06d163
commit
a69ef122dc
4 files changed
+75
-3
No files matched your search
@@ -63,6 +63,34 @@ media = false
|
||||
# corner so transient popups no longer sit under the top bar.
|
||||
[notification]
|
||||
position = "bottom_right"
|
||||
# Only the security key's touch prompt is audible: its notification matches the
|
||||
# first filter, every other notification (e.g. per-track media notices) gets the
|
||||
# catch-all silent filter. First matching enabled filter wins.
|
||||
filter_order = [ "security-key", "silent" ]
|
||||
|
||||
[notification.filter.security-key]
|
||||
enabled = true
|
||||
match = "yubikey-touch-detector"
|
||||
play_sound = true
|
||||
# The pending operation blocks until the key is touched, so also surface it
|
||||
# while Do Not Disturb is on.
|
||||
bypass_dnd = true
|
||||
|
||||
[notification.filter.silent]
|
||||
enabled = true
|
||||
match_content = ".*"
|
||||
play_sound = false
|
||||
|
||||
# Shell sounds stay off except the notification sound allowed by the filter
|
||||
# above, so volume, charger and screenshot actions stay quiet. This plays the
|
||||
# freedesktop sound theme's `message-new-instant` event.
|
||||
[audio]
|
||||
enable_sounds = true
|
||||
enable_volume_sounds = false
|
||||
enable_notification_sounds = true
|
||||
enable_power_sounds = false
|
||||
enable_screenshot_sounds = false
|
||||
sound_theme = "freedesktop"
|
||||
|
||||
[theme]
|
||||
source = "builtin"
|
||||
|
||||
@@ -25,6 +25,9 @@
|
||||
# app2unit is still used to launch desktop entries as systemd user units.
|
||||
home.packages = [
|
||||
pkgs.app2unit # Launch Desktop Entries (or arbitrary commands) as Systemd user units
|
||||
# `message-new-instant` and the other shell sound events; the sound setting in
|
||||
# config.toml only plays the security-key notification.
|
||||
pkgs.sound-theme-freedesktop
|
||||
]
|
||||
++ (lib.optionals pkgs.stdenv.hostPlatform.isx86_64 [
|
||||
pkgs.gpu-screen-recorder # recoding screen
|
||||
|
||||
Reference in new issue
Block a user