Skip to content

Commit

Permalink
πŸ”§ polybar[volume]: display dock icon for CalDigit
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianmiranda committed Jan 7, 2024
1 parent 47c4a21 commit c098017
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion home/.config/polybar/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ label = %title:0:60:...%
type = custom/script
tail = true
label-foreground = ${colors.foreground}
exec = pulseaudio-control --icons-volume " , " --icon-muted " " --node-nicknames-from "device.description" --node-nickname "*CalDigit*:CalDigit" --node-nickname "*HiFi__hw_sof*: " --node-nickname "*bluez*:σ°‹‹ " --node-nickname "*hdmi*: " --node-nickname "*USB*Audio*:󰓃" --format '$NODE_NICKNAME %{T6}${VOL_LEVEL}%%{T-}' listen
exec = pulseaudio-control --icons-volume " , " --icon-muted " " --node-nicknames-from "device.description" --node-nickname "*CalDigit*:󱂩" --node-nickname "*HiFi__hw_sof*: " --node-nickname "*bluez*:σ°‹‹ " --node-nickname "*hdmi*: " --node-nickname "*USB*Audio*:󰓃" --format '$NODE_NICKNAME %{T6}${VOL_LEVEL}%%{T-}' listen
# click-right = exec pavucontrol &
click-left = pulseaudio-control togmute
# click-middle = pulseaudio-control --node-blacklist "alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2" next-node
Expand Down
2 changes: 1 addition & 1 deletion home/.config/polybar/scripts/mic-status
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
MUTED_COLOR="#FF6961"
UNMUTED_COLOR="#8BC34A"

DEVICE_ICON=$(pulseaudio-control --node-type input --node-nicknames-from "device.description" --node-nickname "*HD_Pro_Webcam*:σ°– " --node-nickname "*CalDigit*:CalDigit" --node-nickname "*HiFi__hw_sof*:" --node-nickname "*bluez*:σ°‹‹" --node-nickname "*analog*:ο„°" --node-nickname "*USB*Audio*:󰓃" --node-blacklist "*.monitor" --format '${NODE_NICKNAME}' output | sed -E 's/%\{F#[0-9a-fA-F]{6}\}([^%]*)%\{F-\}/\1/g')
DEVICE_ICON=$(pulseaudio-control --node-type input --node-nicknames-from "device.description" --node-nickname "*HD_Pro_Webcam*:σ°– " --node-nickname "*CalDigit*:󱂩" --node-nickname "*HiFi__hw_sof*:" --node-nickname "*bluez*:σ°‹‹" --node-nickname "*analog*:ο„°" --node-nickname "*USB*Audio*:󰓃" --node-blacklist "*.monitor" --format '${NODE_NICKNAME}' output | sed -E 's/%\{F#[0-9a-fA-F]{6}\}([^%]*)%\{F-\}/\1/g')
MUTED="$(pactl list short sources | awk '/input.*RUNNING/ {system("pactl get-source-mute " $1)}' | sed 's/Mute: //g' | uniq)"

if [[ $MUTED == "no" ]]; then
Expand Down

0 comments on commit c098017

Please sign in to comment.