A loose collection of scripts related to i3 and i3blocks
Go to file
simon 01f28bc7a0 updated readme, added a short description for the i3block_shell scripts 2021-01-23 23:36:24 +07:00
i3block_shell initial commit, simple shell scripts for i3blocks 2021-01-23 23:23:13 +07:00
mpd_controller implemented next and prev, added pkill command for i3blocks on toggle 2021-01-23 18:07:36 +07:00
.gitignore basic functionality, echos status for notify-send and i3blocks 2021-01-23 17:32:15 +07:00
README.md updated readme, added a short description for the i3block_shell scripts 2021-01-23 23:36:24 +07:00

README.md

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.
Additionaly the following arguments can be passed:

  • toggle: if mpd is playing, it will pause, if is paused it will resume
  • next: jump to next song in playlist
  • prev: jump to previous song in playlist

Config:

in mpd_main.py edit signal_id to change to the id used in your i3blocks.conf file so the script can be called from anywhere.

Install:

None standard Python dependencies: python-mpd Link python-mpd

  • On Arch: sudo pacman -S python-mpd2
  • Via Pip: pip install python-mpd

Additional:

notify-send will get called via subprocess, works best with Dunst to show current song playing with cover art extracted from metadata.

i3block_shell

A bunch of simple bash scripts to be called via i3blocks.

  • 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
  • updates.sh: Echos how many updates are pending.
    • on left click: echos the complete list of all pending updates
    • on right click: refreshes the current pending updates and echos result
  • wifiinfo.sh: Echos current db level of signal strength.
    • on left click: Uses nmcli to echo all device status