Skip to content

Commit

Permalink
Use new style format in pomodoro widget (#1426)
Browse files Browse the repository at this point in the history
  • Loading branch information
zordsdavini authored and ramnes committed Sep 6, 2019
1 parent 069aa7f commit 3d5e9ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libqtile/widget/pomodoro.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Pomodoro(base.ThreadPoolText):
"""Pomodoro technique widget"""
orientations = base.ORIENTATION_HORIZONTAL
defaults = [
("fmt", "%s", "fmt"),
("fmt", "{}", "fmt"),
("num_pomodori", 4, "Number of pomodori to do in a cycle"),
("length_pomodori", 25, "Length of one pomodori in minutes"),
("length_short_break", 5, "Length of a short break in minutes"),
Expand Down Expand Up @@ -166,7 +166,7 @@ def _send_notification(self, urgent, message):
subprocess.Popen(['notify-send', "Pomodoro", message, '-u', urgent, '-t', '5000'])

def poll(self):
return self.fmt % self._get_text()
return self.fmt.format(self._get_text())

def button_press(self, x, y, button):
"""What to do when press a mouse button over the Pomodoro widget.
Expand Down

0 comments on commit 3d5e9ce

Please sign in to comment.