diff --git a/config/barpyrus/config.py b/config/barpyrus/config.py index b8f5628..bb03d4b 100644 --- a/config/barpyrus/config.py +++ b/config/barpyrus/config.py @@ -14,12 +14,17 @@ hc = hlwm.connect() monitor = sys.argv[1] if len(sys.argv) >= 2 else 0 (x, y, monitor_w, monitor_h) = hc.monitor_rect(monitor) +HiDPIHosts = set() +HiDPIHosts.add('warthog') + +HiDPI = os.uname().nodename in HiDPIHosts + # height/width of the panel -height = 16 if os.uname().nodename != 'warthog' else 30 +height = 16 if not HiDPI else 30 width = monitor_w # set fonts used by lemonbar -if os.uname().nodename == 'warthog': +if HiDPI: text_font = '*-*-lucidatypewriter-medium-*-*-*-26-*-*-*-*-*-*-*' symbol_font = '*-wuncon-siji-medium-r-normal-*-26-200-100-*-c-*-iso10646-1' else: