增加音量模块

master
yutent 2023-07-05 09:18:59 +00:00
parent 86df24d662
commit bf50da6697
2 changed files with 64 additions and 2 deletions

View File

@ -37,9 +37,9 @@ font-2 = "Symbols Nerd Font:size=15;4"
fixed-center = true fixed-center = true
modules-left = logo i3 modules-left = logo i3
modules-center = date modules-center = date
modules-right = netspeed space space hibernate space logout modules-right = netspeed volume space space hibernate space logout
tray-position = right tray-position = right

View File

@ -0,0 +1,62 @@
[module/volume]
type = internal/pulseaudio
; Sink to be used, if it exists (find using `pacmd list-sinks`, name field)
; If not, uses default sink
sink =
; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
; Default: true
use-ui-max = false
; 音量显示格式
format-volume = <ramp-volume> <bar-volume>
format-volume-background = ${color.background}
format-volume-padding = 1
; 静音图标
format-muted = <label-muted>
format-muted-prefix =
format-muted-prefix-font = 2
format-muted-prefix-foreground = ${color.altforeground}
format-muted-background = ${color.background}
format-muted-padding = 1
; 静音的文字提示
label-muted = " "
label-muted-foreground = ${color.altforeground}
; 音量条
bar-volume-width = 5
bar-volume-gradient = false
bar-volume-indicator =
bar-volume-indicator-font = 2
bar-volume-indicator-foreground = ${color.blue}
bar-volume-fill =
bar-volume-fill-font = 3
bar-volume-foreground-0 = ${color.blue}
bar-volume-foreground-1 = ${color.blue}
bar-volume-foreground-2 = ${color.blue}
bar-volume-foreground-3 = ${color.blue}
bar-volume-foreground-4 = ${color.blue}
bar-volume-empty =
bar-volume-empty-font = 3
bar-volume-empty-foreground = ${color.altbackground}
; 根据音量变换图标
ramp-volume-0 =
ramp-volume-1 =
ramp-volume-2 =
ramp-volume-3 = 奔
ramp-volume-4 = 奔
ramp-volume-5 = 奔
ramp-volume-6 =
ramp-volume-7 =
ramp-volume-8 =
ramp-volume-9 =
ramp-volume-font = 2
ramp-volume-foreground = ${color.blue}