config; barpyrus: config.py: increase size of panel/font for HiDPI screens

Adds a check for hostname == 'warthog' which currently is my only system
with a HiDPI screen in order to adjust the font size and the panel height.
This commit is contained in:
Thomas Preisner 2018-03-01 19:05:46 +01:00
parent 82db8c5d7a
commit 2e3f4c3c65

View file

@ -15,10 +15,14 @@ monitor = sys.argv[1] if len(sys.argv) >= 2 else 0
(x, y, monitor_w, monitor_h) = hc.monitor_rect(monitor)
# height/width of the panel
height = 16
height = 16 if os.uname().nodename != 'warthog' else 30
width = monitor_w
# set fonts used by lemonbar
if os.uname().nodename == 'warthog':
text_font = '*-*-lucidatypewriter-medium-*-*-*-26-*-*-*-*-*-*-*'
symbol_font = '*-wuncon-siji-medium-r-normal-*-26-200-100-*-c-*-iso10646-1'
else:
text_font = '*-*-lucidatypewriter-medium-*-*-*-12-*-*-*-*-*-*-*'
symbol_font = '*-wuncon-siji-medium-r-normal-*-12-100-100-*-c-80-iso10646-1'