Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #get output device name
- pacmd list-sinks | grep name: | awk '{print $2}' | sed 's/<//g;s/>//g'
- #get input device name
- pacmd list-sources | grep name: | awk '{print $2}' | sed 's/<//g;s/>//g'
- #update device name
- pacmd 'update-source-proplist <device name> device.description="<NEW NAME>"'
- #example
- pacmd 'update-source-proplist alsa_input.usb-0d8c_C-Media_USB_Audio_Device-00.mono-fallback device.description="USB MIC"'
- #add to config file
- vim ~/.config/pulse/default.pa
- .include /etc/pulse/default.pa
- update-sink-proplist alsa_output.usb-Jieli_Technology_USB_Composite_Device_425030463632320A-01.analog-stereo device.description="Sound_Bar"
- update-sink-proplist alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo device.description="USB HEADSET"
- update-sink-proplist alsa_output.pci-0000_00_1f.3.analog-stereo device.description="Internal Sound"
- update-source-proplist alsa_input.usb-0d8c_C-Media_USB_Audio_Device-00.mono-fallback device.description="USB MIC"
- #Using FZF
- device="$(pacmd list-sources | grep name: | awk '{print $2}' | sed 's/<//g;s/>//g'|fzf --prompt="Select Device: ")"
- read -p "Enter New Name: " name
- pacmd "update-source-proplist $device device.description=\"$name\""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement