2024年12月17日

polybarの音量表示を変更。archbang-rc-0911-x86_64 vmware workstation pro17.6.1 / sparky-7.5-amd64-xfce

話は、一転しまして、x11のopenbox上。
archbangのpolybarの音量表示アプレット上、
マウスホイールを回すと、ガガーっと100以上の
大きなパーセンテージになったりするので、
変更しました。ネット上から拾ってきたバー表示です。

polybar_soundbar.jpg

> が右に向かって増えると、
音量が増します。
操作は、アプレット表示の上で、マウスホイールを
向こうに回わします。音量を下げるときは手前に。
アプレット表示上でクリックすると、音声はミュートします。

polybar_soundo_mute.jpg

~/.config/polybar/config.ini
当該設定部分だけを取り出すと、

[module/pulseaudio]
type = internal/pulseaudio
;https://github.com/jaagr/polybar/wiki/Module:-volume
format-volume = "<label-volume> <bar-volume>"
label-volume = " "
label-volume-foreground = #40ad4b
label-muted = muted
bar-volume-width = 10
bar-volume-foreground-0 = #40ad4b
bar-volume-foreground-1 = #40ad4b
bar-volume-foreground-2 = #40ad4b
bar-volume-foreground-3 = #40ad4b
bar-volume-foreground-4 = #40ad4b
bar-volume-foreground-5 = #40ad4b
bar-volume-foreground-6 = #40ad4b
bar-volume-gradient = false
bar-volume-indicator = 大四角1
bar-volume-indicator-font = 2
bar-volume-fill = 大四角1
bar-volume-fill-font = 2
bar-volume-empty = 大四角1
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground}
format-volume-foreground = ${colors.foreground}
format-volume-background = ${colors.background}
format-muted-prefix = " 下三角1 "
format-muted-prefix-foreground = "#ff0000"
format-muted-foreground = ${colors.foreground}
format-muted-background = ${colors.background}

絵文字なところは、ブログ上では表示できて
いないだろうと思います。
絵文字を表示しているのは、otf-fonts-awesome。
音量をランプで表す表示方法もあるみたいです。
どんなんかなあ〜。

tint2よりやれることは、多そうですね。
ウィンドウを多数出しっぱなしの大重なりに
なったときに見つけやすい、タスクバー。
使えるといいですね。ないのかな。

いささか古いarchibang、9月リリースのバージョンで
トライしましたが、最新のisoでも、
polybarは使われています。

コピペしたページ:
https://gitlab.com/dwt1/dotfiles/-/blob/master/.config/polybar/config.ini


posted by ブログ開設者 at 23:10| Comment(0) | linux | このブログの読者になる | 更新情報をチェックする