# loose collection of scripts related to i3 and i3blocks
## mpd_controller
A set of Python scripts to manage mpd (Music Player Daemon). It uses notify-send to display the current song playing with cover art if embeded in the metadata. Is meant to run as a scritp from i3blocks
but can also be called via the media keys on your keyboard.
### how to use
The main file is **mpd_main.py**, called without arguments, it will just output the current status.
`notify-send` will get called via subprocess, works best with [Dunst](https://dunst-project.org/documentation/) to show current song playing with cover art extracted from metadata.
* **volume.py**: Now compatible with *pipewire*, parses output of `pactl` to output activ sink and current volume to i3blocks and manages music volume hotkeys.
* call `volume.py` without args to output status for i3blocks
* call `volume.py vol_up` to increase volume by 5%
* call `volume.py vol_down` to decrease volume by 5%
* **coretemp.sh**: Echos average temperature of all CPU cores by parsing output of `sensors` from package *lm_sensors*, uses icons from [fontawesome.com](https://fontawesome.com/).
* **date.sh**: Echos the current date.
* on left click: uses notify-send to print current three month calendar.
* **df.sh**: Echos current diskfree level of the root partition.
* on left click: uses notify-send to print the df of all relevant connected partitions.
* **ip.sh**: Echos current ip addresses in use or inactive when offline.