Skip to content

Commit

Permalink
apply display_size when reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalDetective47 committed Jan 11, 2025
1 parent 1e4b81c commit 106862c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lovely/joker_size.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,14 @@ self.VT.w = self.T.w
'''
position = "before"
payload = '''
if self.config.center.pixel_size and self.config.center.pixel_size.h then
if self.config.center.display_size and self.config.center.display_size.h then
self.T.h = H*(self.config.center.display_size.h/95)
elseif self.config.center.pixel_size and self.config.center.pixel_size.h then
self.T.h = H*(self.config.center.pixel_size.h/95)
end
if self.config.center.pixel_size and self.config.center.pixel_size.w then
if self.config.center.display_size and self.config.center.display_size.w then
self.T.w = W*(self.config.center.display_size.w/71)
elseif self.config.center.pixel_size and self.config.center.pixel_size.w then
self.T.w = W*(self.config.center.pixel_size.w/71)
end
'''
Expand Down

0 comments on commit 106862c

Please sign in to comment.