Added 1995 Apple wristwatch-inspired color analog styles (X resources) for Xclock. This also defines where application-specific X resources will be stored & included (.mlvwm/Xresources/ & .mlvwm/.Xdefaults) and documents this in the README

This commit is contained in:
Morgan Aldridge
2025-01-17 12:55:44 -05:00
parent 4dd1903c87
commit a04f4d101a
3 changed files with 27 additions and 0 deletions

2
.mlvwm/.Xdefaults Normal file
View File

@@ -0,0 +1,2 @@
! 1995 Apple Watch color scheme for Xclock (analog)
#import ".mlvwm/Xresources/xclock"

11
.mlvwm/Xresources/xclock Normal file
View File

@@ -0,0 +1,11 @@
! 1995 Apple watch analog styling
XClock*render: True
XClock*buffer: True
XClock*analog: True
XClock*update: 1
XClock*padding: 20
XClock*majorColor: silver
XClock*minorColor: snow
XClock*hourColor: forestgreen
XClock*minuteColor: crimson
XClock*secondColor: gold

View File

@@ -230,6 +230,7 @@ The current structure is:
.mlvwmrc
.initrc
.restartrc
.Xdefaults
MenuBar
VirtualDesktops
theme/
@@ -246,6 +247,9 @@ The current structure is:
pixmap/
*.xpm
Xresources/
xclock
bin/
mlvwm-alert
mlvwm-confirm
@@ -266,6 +270,16 @@ Contains an `InitFunction` block which can be modified to run commands upon init
Contains a `RestartFunction` block which can be modified to run commands upon init or reload of MLVWM.
### .Xdefaults
Contains default X(7) resources, mostly `#include` lines which import individual application-specific X resources configurations found in `.mlvwm/Xresources/`. It simplifies the inclusion of all mlvwmrc X resources at once as the user can edit their own `~/.Xdefaults` to append the following line:
`#import ".mlvwm/.Xdefaults"`
Alternatively, once can manually merge them with their own configuration by running the following:
`xrdb -merge "$HOME/.mlvwm/.Xdefaults"`
### VirtualDesktops
Contains configuration settings for virtual desktops, incl. the number of virtual desktops (default is 1.)