An (outdated) collection of plugins for Qtile.
git clone https://github.com/m-col/qtools
Files | Refs | Readme

Commit 7aeca15ddc1f2b26ffd68a01316bbd47e3156b14
Parent: d9cd3d4acfd85a19d9651ae3db827d93e46aad89
Author: mcol <mcol@posteo.net>
Date: 2020-09-04 22:04:04 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2020-09-04 22:04:04 +0100

don't color_pixel(); add underscores to names

qtools/notification/notification.py Modified

@@ -82,10 +82,10 @@
         ('border_width', 4, 'Line width of drawn borders.'),
         ('corner_radius', None, 'Corner radius for round corners, or None.'),
         ('font', 'sans', 'Font used in notifications.'),
-        ('fontsize', 14, 'Size of font.'),
+        ('font_size', 14, 'Size of font.'),
         ('fontshadow', None, 'Color for text shadows, or None for no shadows.'),
         ('text_alignment', 'left', 'Text alignment: left, center or right.'),
-        ('horizonal_padding', None, 'Padding at sides of text.'),
+        ('horizontal_padding', None, 'Padding at sides of text.'),
         ('vertical_padding', None, 'Padding at top and bottom of text.'),
         ('line_spacing', 4, 'Space between lines.'),
         (
@@ -147,11 +147,9 @@
         self.qtile = qtile
 
         if self.horizontal_padding is None:
-            self.horizontal_padding = self.fontsize / 2
+            self.horizontal_padding = self.font_size / 2
         if self.vertical_padding is None:
-            self.vertical_padding = self.fontsize / 2
-        if self.border_width:
-            self.border = [self.qtile.color_pixel(c) for c in self.border]
+            self.vertical_padding = self.font_size / 2
 
         popup_config = {}
         for opt in Popup.defaults: