diff --git a/discover_overlay/autostart.py b/discover_overlay/autostart.py
index 7276806..d4b15ff 100644
--- a/discover_overlay/autostart.py
+++ b/discover_overlay/autostart.py
@@ -101,8 +101,7 @@ def change_file(self, value):
else:
log.error("No ability to request root privs. Cancel")
return
- command = f" sed -i 's/AUTO_LAUNCH_DISCOVER_OVERLAY=./AUTO_LAUNCH_DISCOVER_OVERLAY={
- value}/g' /etc/default/discover-overlay"
+ command = f" sed -i 's/AUTO_LAUNCH_DISCOVER_OVERLAY=./AUTO_LAUNCH_DISCOVER_OVERLAY={value}/g' /etc/default/discover-overlay"
command_with_permissions = root + command
os.system(command_with_permissions)
diff --git a/discover_overlay/discover_overlay.py b/discover_overlay/discover_overlay.py
index 60d88d0..be3033e 100755
--- a/discover_overlay/discover_overlay.py
+++ b/discover_overlay/discover_overlay.py
@@ -98,7 +98,7 @@ def do_args(self, data, normal_close):
Read in arg list from command or RPC and act accordingly
"""
if "--help" in data or "-h" in data:
- print(f"{_("Usage")}: discover-overlay [OPTIONS]... ")
+ print(f"{_('Usage')}: discover-overlay [OPTIONS]... ")
print(_("Show an X11 or wlroots overlay with information"))
print(_("from Discord client"))
print("")
diff --git a/discover_overlay/settings_window.py b/discover_overlay/settings_window.py
index 3b76030..0ed7aaf 100644
--- a/discover_overlay/settings_window.py
+++ b/discover_overlay/settings_window.py
@@ -1291,8 +1291,7 @@ def notification_show_icon(self, button):
self.config_set("notification", "show_icon", f"{button.get_active()}")
def notification_icon_position_changed(self, button):
- self.config_set("notification", "icon_left", f"{
- int(button.get_active() != 1)}")
+ self.config_set("notification", "icon_left", f"{int(button.get_active() != 1)}")
def notification_icon_padding_changed(self, button):
self.config_set("notification", "icon_padding",
diff --git a/discover_overlay/text_overlay.py b/discover_overlay/text_overlay.py
index 9638d57..dbe4e28 100644
--- a/discover_overlay/text_overlay.py
+++ b/discover_overlay/text_overlay.py
@@ -146,16 +146,12 @@ def make_line(self, message):
ret = message['surrogate']
else:
### Add Image ###
- self.image_list.append(
- f"https://cdn.discordapp.com/emojis/{
- message['emojiId']}.png?v=1"
- )
+ self.image_list.append(f"https://cdn.discordapp.com/emojis/{message['emojiId']}.png?v=1")
ret = "`"
elif (message['type'] == 'inlineCode' or
message['type'] == 'codeBlock' or
message['type'] == 'blockQuote'):
- ret = f"{
- self.make_line(message['content'])}"
+ ret = f"{self.make_line(message['content'])}"
elif message['type'] == 'u':
ret = f"{self.make_line(message['content'])}"
elif message['type'] == 'em':
@@ -247,8 +243,7 @@ def overlay_draw(self, w, context, data=None):
else:
log.warning("Unknown file extension '%s'", extension)
# cy = self.draw_text(cy, "%s" % (line['attach']))
- message = f"{self.sanitize_string(
- line["nick"])}: {out_line}"
+ message = f"{self.sanitize_string(line['nick'])}: {out_line}"
current_y = self.draw_text(current_y, message)
if current_y <= 0:
# We've done enough
diff --git a/discover_overlay/voice_overlay.py b/discover_overlay/voice_overlay.py
index 19ba113..c6c3436 100644
--- a/discover_overlay/voice_overlay.py
+++ b/discover_overlay/voice_overlay.py
@@ -790,8 +790,7 @@ def draw_avatar(self, context, user, pos_x, pos_y, avatar_size, line_height):
"""Draw avatar at given Y position. Includes both text and image based on settings"""
# Ensure pixbuf for avatar
if user["id"] not in self.avatars and user["avatar"] and avatar_size > 0:
- url = f"https://cdn.discordapp.com/avatars/{
- user['id']}/{user['avatar']}.png"
+ url = f"https://cdn.discordapp.com/avatars/{user['id']}/{user['avatar']}.png"
get_surface(self.recv_avatar, url, user["id"],
self.avatar_size)