From 2e3f4c3c650348ce6821fc36b45e7a73b0af05a1 Mon Sep 17 00:00:00 2001 From: Thomas Preisner Date: Thu, 1 Mar 2018 19:05:46 +0100 Subject: [PATCH] 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. --- config/barpyrus/config.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/config/barpyrus/config.py b/config/barpyrus/config.py index f6359e7..9d40459 100644 --- a/config/barpyrus/config.py +++ b/config/barpyrus/config.py @@ -15,12 +15,16 @@ 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 -text_font = '*-*-lucidatypewriter-medium-*-*-*-12-*-*-*-*-*-*-*' -symbol_font = '*-wuncon-siji-medium-r-normal-*-12-100-100-*-c-80-iso10646-1' +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' # get space for the panel hc(['pad', str(monitor), str(height)])