From 4bc5f73ccc3687033fd61f2f81d12c7423ef97b4 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Sat, 7 Mar 2020 13:49:09 +0100 Subject: [PATCH] [modules/dunst] Single quotes --- modules/contrib/dunst.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/contrib/dunst.py b/modules/contrib/dunst.py index e805ef5..85436d8 100644 --- a/modules/contrib/dunst.py +++ b/modules/contrib/dunst.py @@ -1,6 +1,6 @@ #pylint: disable=C0111,R0903 -"""Toggle dunst notifications.""" +'''Toggle dunst notifications.''' import bumblebee.input import bumblebee.output @@ -10,12 +10,12 @@ import bumblebee.engine class Module(bumblebee.engine.Module): def __init__(self, engine, config): super(Module, self).__init__(engine, config, - bumblebee.output.Widget(full_text="") + bumblebee.output.Widget(full_text='') ) self._paused = False # Make sure that dunst is currently not paused try: - bumblebee.util.execute("killall -SIGUSR2 dunst") + bumblebee.util.execute('killall -SIGUSR2 dunst') except: pass engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE, @@ -27,13 +27,13 @@ class Module(bumblebee.engine.Module): try: if self._paused: - bumblebee.util.execute("killall -SIGUSR1 dunst") + bumblebee.util.execute('killall -SIGUSR1 dunst') else: - bumblebee.util.execute("killall -SIGUSR2 dunst") + bumblebee.util.execute('killall -SIGUSR2 dunst') except: self._paused = not self._paused # toggling failed def state(self, widget): if self._paused: - return ["muted", "warning"] - return ["unmuted"] + return ['muted', 'warning'] + return ['unmuted']