Advertisement
rockhazard

Powerline on Qtile Display Issue

Jun 27th, 2020
1,812
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.75 KB | None | 0 0
  1. # set locale
  2. localectl set-locale LANG=en_US.UTF-8
  3.  
  4. # installed powerline
  5. pip install powerline-status
  6.  
  7. # installed powerline patched fonts
  8.  
  9. # in Qtile config.py, imported powerline widget, set powerline font, and placed widget in first screen
  10. from powerline.bindings.qtile.widget import PowerlineTextBox
  11.  
  12. widget_defaults = dict(
  13.     font='ProFont for Powerline',
  14.     fontsize=fsize,
  15.     padding=3,
  16. )
  17. extension_defaults = widget_defaults.copy()
  18.  
  19.  
  20. screen = [
  21. Screen(
  22. top=bar.Bar(
  23.     [
  24.         PowerlineTextBox(update_interval=2, side='left'),
  25.         widget.Spacer(),
  26.         PowerlineTextBox(update_interval=2, side='right'),
  27.     ],
  28.     30)
  29. ]
  30.  
  31. # result, powerline comes up on the top Qtile bar, but the text is a nonsense string, except for the date and time.
  32.  
  33. # Attempted to use Lembonbar instead, as well as powerline-lemonbar, but the first won't see any fonts, and the second failed with "ImportError: No module named powerline.lemonbar". Attempted to solve as outlined here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839599 by installing python3-powerline with no success.
  34.  
  35.  
  36. # system: cpu Intel i7 8700, graphics: Nvidia rtx2060, OS: Linux Mint 19.3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement