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:
parent
82db8c5d7a
commit
2e3f4c3c65
1 changed files with 7 additions and 3 deletions
|
|
@ -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)])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue