Skip to content

Center justify the text within the window geometry #6

@morgant

Description

@morgant

I currently use the following ~/.mlclockrc file with my mlvwmrc configuration:

; mlclock setting file ( $HOME/.mlclockrc )

; see strftime .
; DON'T USE SPACE.

FORM1	= "%H:%M:%S"			; 23:22:33
FORM2	= "%Y-%m-%d"			; 1998-07-12

EVENT	= FOCUS; FOCUS or CLICK
NEAR	= 10				; the distance of change form event

LOCALE	= "C"				; locale name( Do you use it ? )
;FONTSET	= "-*-*-medium-r-normal--12-*"	; font set
FONTSET = "-adobe-*-*-r-*-*-12-*-*-*-p-*-*-*"

HEAD	= 1				; head space

; specify color name or color value as "#rrggbb#.

FONTCOLOR = "black"			; font color
BACKCOLOR = "white"			; backgorung color  
;FONTCOLOR = "#0000ff"
;BACKCOLOR = "white"

BOLD = FALSE ; Bold font ? ( TRUE or FALSE )

Unfortunately, because the time (shown by default) and date (shown on mouse hover) have different string lengths, mlclock uses a geometry large enough to contain the largest of the two (the date) and left-aligns both. That means that, when "swallowed" into the mlvwm menu bar, the time has extra white space after it. For example:

mlclock-mlvwm-time
vs
mlclock-mlvwm-date

The time & date should each be rendered with center justification in the mlclock geometry.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions