A little beauty for the timebar
Posted: Sun Oct 09, 2022 12:15 am
Vanilla Dpup 9.2.x
timebar color changes depending on installed theme - works with gtkdialog-(gtk3).
path to the script /usr/local/jwm_config/time
part of the code:
Code: Select all
#set extended gtk-theme
if [ "$GTKDIALOG_BUILD" = 'GTK3' ] ; then #gtk3
echo '*textview#JWM_Calendar {
font-family: monospace;
font-size: 11pt;
font-weight: bold;
background-color: rgba(255, 255, 255, 0);
}
textview#JWM_Calendar text {
background-color: rgba(17, 17, 17, 0.95);
color: rgba(222, 233, 222, 1);
border: 1px outset rgba(249, 196, 114, 5);
border-radius: 1% 16%;
}
window {
border-radius: 12px;
border: 4px double;
box-shadow: 0px 0px 0px 14px rgba(255, 255, 255, 0.5);
/* uncomment so that the background color does not change when changing themes */
-background-color: rgba(255, 255, 255, 1);
-color: rgba(15,15,15,1);
}' > $WORKDIR/gtkrc_mono.css
else
echo 'style "mono" {
font_name="Mono bold 12"
base[NORMAL]="#111"
text[NORMAL]="#B4CAB6" }
widget "*JWM_Calendar" style "mono"' > $WORKDIR/gtkrc_mono
export GTK2_RC_FILES=$WORKDIR/gtkrc_mono:/root/.gtkrc-2.0
fi