add support of volume interface.

This commit is contained in:
2025-10-13 11:58:59 +08:00
parent 85a86a1202
commit 0fa4c4bc5d
2 changed files with 6 additions and 1 deletions

View File

@@ -207,9 +207,12 @@ window-rule {
window-rule { window-rule {
match title="^(图片查看器|.*记录)$" app-id="QQ" match title="^(图片查看器|.*记录)$" app-id="QQ"
match app-id=r#"^org\.keepassxc\.KeePassXC$"# match app-id=r#"^org\.keepassxc\.KeePassXC$"#
match app-id=r#"^org\.gnome\.World\.Secrets$"# match app-id=r#"^org\.gnome\.World\.Secrets$"#
match app-id=r#"^org\.kde\.ksecretd$"# match app-id=r#"^org\.kde\.ksecretd$"#
match app-id="pavucontrol-qt"
open-floating true open-floating true
} }
@@ -217,6 +220,7 @@ window-rule {
match title=r#"Code - OSS$"# match title=r#"Code - OSS$"#
match title=r#"Visual Studio Code$"# match title=r#"Visual Studio Code$"#
match app-id=r#"^code"# match app-id=r#"^code"#
match app-id=r#"firefox$"# match app-id=r#"firefox$"#
open-maximized true open-maximized true
} }

View File

@@ -8,8 +8,9 @@
}, },
"pulseaudio": { "pulseaudio": {
"format": " {volume}%", "format": " {volume}%",
"format-muted": "x {volume}%",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle", "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"on-click-right": "flatpak run com.saivert.pwvucontrol" "on-click-right": "pwvucontrol-qt"
}, },
"niri/workspaces": { "niri/workspaces": {
"format": "{index}" "format": "{index}"