config: barpyrus: config.py: make HiDPI settings more generic
This commit is contained in:
parent
cb4255d84e
commit
c258f61b60
1 changed files with 7 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue