i3-companion: make usbguard notifications more compact

This commit is contained in:
Vincent Bernat 2023-03-13 15:18:47 +01:00
parent aa0e6972cf
commit fd99030b86

View file

@ -911,8 +911,7 @@ async def usbguard_notifications(
body="\n".join( body="\n".join(
[ [
f"USB device {human} {action}", f"USB device {human} {action}",
f"ID: <tt>{id}</tt>", f"ID: <tt>{id}</tt>, Port: <tt>{attributes['via-port']}</tt>",
f"Port: <tt>{attributes['via-port']}</tt>",
] ]
), ),
) )