py3status v3.28 – goodbye py2.6-3.4

The newest version of py3status starts to enforce the deprecation of Python 2.6 to 3.4 (included) initiated by Thiago Kenji Okada more than a year ago and orchestrated by Hugo van Kemenade via #1904 and #1896.

Thanks to Hugo, I discovered a nice tool by @asottile to update your Python code base to recent syntax sugars called pyupgrade!

Debian buster users might be interested in the installation war story that @TRS-80 kindly described and the final (and documented) solution found.

Changelog since v3.26

  • drop support for EOL Python 2.6-3.4 (#1896), by Hugo van Kemenade
  • i3status: support read_file module (#1909), by @lasers thx to @dohseven
  • clock module: add “locale” config parameter to change time representation (#1910), by inemajo
  • docs: update debian instructions fix #1916
  • mpd_status module: use currentsong command if possible (#1924), by girst
  • networkmanager module: allow using the currently active AP in formats (#1921), by Benoît Dardenne
  • volume_status module: change amixer flag ordering fix #1914 (#1920)

Thank you contributors

  • Thiago Kenji Okada
  • Hugo van Kemenade
  • Benoît Dardenne
  • @dohseven
  • @inemajo
  • @girst
  • @lasers

4 thoughts on “py3status v3.28 – goodbye py2.6-3.4”

  1. hi ultrabug,
    do you know that if you copy volume_status.py as mic_status.py in the module directory (and set channel = “Capture”) you get a mic volume module?
    jaj
    would you consider to add this “mic_status” as a new module?
    it could be useful..
    thanks!

    1. Hello nave,

      You do not need to change the name of the module to get multiple instances. volume_status works for everything you want as py3status config supports (like i3status) multiple instances of the same module to be set up and running !

      I happen to have both volume and mic set up on my bar, here is how I do it:

      “`
      volume_status speakers {
      command = “pactl”
      format = ‘ {percentage}%’
      format_muted = ‘ {percentage}%’
      button_down = 5
      button_mute = 1
      button_up = 4
      thresholds = [(0, ‘bad’), (5, ‘degraded’), (10, ‘good’)]
      max_volume = 200
      }

      volume_status mic {
      format = ‘ {percentage}%’
      format_muted = ‘ {percentage}%’
      button_down = 5
      button_mute = 1
      button_up = 4
      is_input = true
      thresholds = [(0, ‘bad’), (10, ‘degraded’), (20, ‘good’)]
      }
      “`

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.