serhii.net

In the middle of the desert you can say anything you want

07 Jan 2021

Day 737

Change volume of bluetooth headphones via cli / pactl

I wasn’t able to do it the usual amixer way, because:

You are running Pulseaudio, which uses ALSA to drive soundcards, but which connects to Bluetooth speakers without involving ALSA. When you set ALSA volumes with amixer, Pulseaudio notices and corrects the source/sink volumes[…] 1

Command to do it directly through pulseaudio is: pactl set-sink-volume name_of_bluetooth_speaker +3%

Added this to ~/.config/i3/config:

bindsym Mod1+r exec  pactl set-sink-volume bluez_sink.60_AB_D2_43_E9_C5.a2dp_sink +5%
bindsym Mod1+c exec  pactl set-sink-volume bluez_sink.60_AB_D2_43_E9_C5.a2dp_sink -5%

Nomacs picture viewer remove animations + frameless

  • Changed transition time to 0 in Settings -> Display -> Slideshow
  • <F10> leaves only the current picture (‘frameless’), a la scrot; Though in this mode drag-n-drop doesn’t work!

zsh text colors list

Found this when autocompleting something else:

(12:36:26/10136)~/ $ which spectrum_ls
spectrum_ls () {
	for code in {000..255}
	do
		print -P -- "$code: %{$FG[$code]%}$ZSH_SPECTRUM_TEXT%{$reset_color%}"
	done
}

Returns 255 lines with 255 colors, they look neat:

Colors

To read - matplotlib

TODO: The Many Ways To Call Axes In Matplotlib | by Jun | Towards Data Science And in general

Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus