Skip to content

Commit 802d6db

Browse files
authored
Merge pull request #1860 from rern/UPDATE
Update
2 parents 9b4774e + dbaf0c2 commit 802d6db

36 files changed

+547
-591
lines changed

install.sh

+30-46
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,35 @@ alias=r1
44

55
. /srv/http/bash/settings/addons.sh
66

7+
# 20250111
8+
if [[ -e /boot/kernel.img ]]; then
9+
if [[ $( pacman -Q cava ) != 'cava 0.7.4-1' ]]; then
10+
wget https://github.com/rern/rern.github.io/raw/refs/heads/main/armv6h/cava-0.7.4-1-any.pkg.tar.xz
11+
pacman -U --noconfirm cava-0.7.4-1-any.pkg.tar.xz
12+
rm cava-0.7.4-1-any.pkg.tar.xz
13+
fi
14+
else
15+
[[ $( pacman -Q cava ) != 'cava 0.10.3-2' ]] && pacman -Sy --noconfirm cava
16+
fi
17+
18+
if [[ $( pacman -Q python-rpi-gpio ) != 'python-rpi-gpio 0.7.1-3' ]]; then
19+
pacman -R --noconfirm python-rpi-gpio
20+
pacman -Sy --noconfirm python-rpi-gpio
21+
fi
22+
23+
file=/etc/systemd/system/mpd_oled.service
24+
if [[ -e $file ]]; then
25+
rm -f $file
26+
pacman -R --noconfirm audio_spectrum_oled &> /dev/null
27+
pacman -Sy --noconfirm mpd_oled
28+
fi
29+
30+
file=$dirsystem/lcdchar.conf
31+
if [[ -e $dirsystem/lcdchar.conf ]]; then
32+
conf2json $file | jq > ${file/conf/json}
33+
rm -f $file
34+
fi
35+
736
# 20241208
837
rm -f $dirshm/playlist*
938

@@ -22,56 +51,11 @@ if [[ -e /boot/kernel7.img ]] && ! grep -q mesa $file; then
2251
sed -i '/^IgnorePkg/ s/$/ mesa/' $file
2352
fi
2453

25-
sed -i '/^brightness/ d' $dirsystem/localbrowser.conf
54+
[[ ! -e /boot/kernel.img ]] && sed -i '/^brightness/ d' $dirsystem/localbrowser.conf
2655

2756
# 20241130
2857
systemctl -q is-active mediamtx && touch $dirsystem/dabradio
2958

30-
# 20241110
31-
if [[ ! -e /boot/kernel.img ]]; then
32-
revision=$( grep ^Revision /proc/cpuinfo )
33-
if [[ ${revision: -3:2} < 11 ]]; then
34-
file=/etc/modprobe.d/brcmfmac.conf
35-
[[ ! -e $file ]] && echo 'options brcmfmac feature_disable=0x82000' > $file
36-
fi
37-
fi
38-
39-
# 20241108
40-
[[ $( pacman -Q cava ) < 'cava 0.10.2-2' ]] && pacman -Sy --noconfirm cava
41-
42-
file=$dirsystem/lcdchar.conf
43-
if [[ -e $file ]] && grep -q -m1 ^0= $file; then
44-
rm $dirsystem/lcdchar*
45-
fi
46-
47-
# 20241111
48-
if [[ ! -e /boot/kernel.img ]]; then
49-
revision=$( grep ^Revision /proc/cpuinfo )
50-
[[ ${revision: -3:2} < 11 ]] && echo 'options brcmfmac feature_disable=0x82000' > /etc/modprobe.d/brcmfmac.conf
51-
fi
52-
53-
file=/etc/systemd/system/dab.service
54-
if [[ -e $file ]] && grep -q Requires $file; then
55-
sed -i '/^Requires\|^After/ d' $file
56-
rm -rf /etc/systemd/system/mediamtx.service.d
57-
systemctl daemon-reload
58-
systemctl try-restart mediamtx
59-
fi
60-
61-
# 20241108
62-
[[ $( pacman -Q cava ) < 'cava 0.10.2-2' ]] && pacman -Sy --noconfirm cava
63-
64-
rm -f $dirsystem/lcdmodel
65-
66-
file=$dirsystem/lcdchar.conf
67-
if [[ -e $file && $( sed -n -E '/^charmap/,/^p0/ p' $file | wc -l ) -gt 2 ]]; then
68-
. $file
69-
for k in inf cols charmap p0 pin_rs p1 pin_rw p2 pin_e p3 backlight; do
70-
conf+="$k=${!k}\n"
71-
done
72-
echo -e $conf > $file
73-
fi
74-
7559
#-------------------------------------------------------------------------------
7660
installstart "$1"
7761

srv/http/assets/css/common.css

+27-15
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
@font-face {
1212
font-family : rern;
13-
src : url( '/assets/fonts/rern.woff2?v=1733921041' );
13+
src : url( '/assets/fonts/rern.woff2?v=1735997122' );
1414
}
1515
@font-face {
1616
font-family : Lato;
@@ -62,6 +62,7 @@ i {
6262
.i-bluealsa::before,
6363
.i-bluetooth::before,
6464
.i-btreceiver::before { content: '\F51A' }
65+
.i-brightness::before { content: '\F55F' }
6566
.i-btsender::before { content: '\F51B' }
6667
.i-camilla::before,
6768
.i-camilladsp::before { content: '\F59D'; position: absolute; color: var( --cg60 ); }
@@ -257,7 +258,8 @@ body {
257258
}
258259
i,
259260
.infobtn,
260-
#debug {
261+
#debug,
262+
#lib-list .coverart {
261263
-webkit-user-select: none;
262264
user-select: none;
263265
}
@@ -425,6 +427,7 @@ code {
425427
text-overflow: ellipsis;
426428
}
427429
#bannerTitle {
430+
line-height: 22px;
428431
font-size: 18px;
429432
font-weight: 300;
430433
}
@@ -468,6 +471,17 @@ code {
468471
font-size: 13px;
469472
}
470473

474+
input[ type=checkbox ],
475+
input[ type=radio ],
476+
input[ type=range ],
477+
input::-webkit-outer-spin-button,
478+
input::-webkit-inner-spin-button,
479+
input[ type=range ]::-webkit-slider-thumb {
480+
appearance: none;
481+
}
482+
input[ type=number ] {
483+
appearance: textfield;
484+
}
471485
input[ type=range ] {
472486
--track: linear-gradient( 90deg, transparent 10px, #000 10px, #000 calc( 100% - 10px ), transparent 10px ) !important;
473487
--trackborder : 1px solid var( --cgd ) !important;
@@ -476,7 +490,6 @@ input[ type=range ] {
476490
margin: 0;
477491
max-width: 70%;
478492
background: transparent;
479-
-webkit-appearance: none;
480493
}
481494
input[ type=range ]::-webkit-slider-thumb {
482495
height: 40px;
@@ -486,7 +499,6 @@ input[ type=range ]::-webkit-slider-thumb {
486499
border-radius: 4px;
487500
background: var( --glossy-btn );
488501
background-color: var( --cm );
489-
-webkit-appearance: none;
490502
box-shadow: var( --shadow-btn );
491503
}
492504
input[ type=range ]::-moz-range-thumb { /* cannot be combined */
@@ -573,9 +585,11 @@ input[ type=checkbox ] {
573585
.infobtn-default {
574586
background-color: var( --cg );
575587
}
576-
.disabled {
588+
.disabled,
589+
.disabled i {
577590
color: var( --cg60 ) !important;
578591
pointer-events: none;
592+
cursor: default;
579593
}
580594
.infobtn.disabled {
581595
background-color: var( --cgd ) !important;
@@ -584,7 +598,6 @@ input[ type=checkbox ] {
584598
}
585599
#infoOk.disabled {
586600
pointer-events: auto;
587-
cursor: default;
588601
}
589602
input[ type=checkbox ].disabled {
590603
pointer-events: auto;
@@ -824,9 +837,16 @@ hr {
824837
color: var( --cg60 );
825838
}
826839
.infofooter i {
840+
width: auto !important;
827841
margin: 0 6px;
828842
vertical-align: -2px;
829843
}
844+
.infofooter span {
845+
margin-right: 10px;
846+
}
847+
.infofooter span:last-child {
848+
margin-right: 0;
849+
}
830850
.infomessage {
831851
padding-top: 5px;
832852
line-height: 24px;
@@ -901,13 +921,6 @@ input[ type=number ]:disabled {
901921
border: 1px solid var( --cgl );
902922
opacity: 1;
903923
}
904-
input::-webkit-outer-spin-button,
905-
input::-webkit-inner-spin-button {
906-
-webkit-appearance: none;
907-
}
908-
input[ type=number ] {
909-
-moz-appearance:textfield;
910-
}
911924
#infoPasswordBox {
912925
margin-top: 0 !important;
913926
outline: none;
@@ -919,7 +932,6 @@ input[ type=number ] {
919932
}
920933
input[ type=radio ],
921934
input[ type=checkbox ] {
922-
-webkit-appearance: none;
923935
width: 24px;
924936
height: 24px;
925937
margin: 3px 6px 3px 1px;
@@ -1028,7 +1040,6 @@ input[ type=radio ]:disabled {
10281040
}
10291041
@media ( max-width: 420px ) {
10301042
#infoList { padding: 20px 5px 10px 5px }
1031-
.infoheader, .infofooter { padding: 0 5px }
10321043
}
10331044
@media ( max-width: 330px ) {
10341045
#infoOverlay {
@@ -1052,6 +1063,7 @@ input[ type=radio ]:disabled {
10521063
.i-volume,
10531064
.infobtn,
10541065
.infofooter i,
1066+
.infofooter span,
10551067
.infolabel i,
10561068
.infomessage img,
10571069
.infomessage .tagpath,

srv/http/assets/css/hovercursor.css

+3-2
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ li:not( .licover ),
144144
#volume-text {
145145
cursor: pointer;
146146
}
147-
#lib-title a:last-of-type:hover,
148-
.mode.nodata * {
147+
.disabled,
148+
.mode.nodata *,
149+
#lib-title a:last-of-type:hover {
149150
cursor: default;
150151
}
151152
#lib-title a:last-of-type:hover {

srv/http/assets/css/main.css

+5-3
Original file line numberDiff line numberDiff line change
@@ -1795,6 +1795,11 @@ li.active .li1 bl {
17951795
font-size: 14px !important;
17961796
color: var( --cg60 );
17971797
}
1798+
li.webradio .artist::before,
1799+
li.webradio .station::before,
1800+
li.webradio .url::before {
1801+
content: ' • ';
1802+
}
17981803
#pl-savedlist .li2 {
17991804
max-width: 100%;
18001805
}
@@ -1928,9 +1933,6 @@ li.active .li2 bl {
19281933
margin-left: 10px;
19291934
text-align: left;
19301935
}
1931-
.tagfooter {
1932-
line-height: 40px;
1933-
}
19341936
.tagfooter div {
19351937
display: inline-block;
19361938
}

srv/http/assets/css/settings.css

-2
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,6 @@ heading {
200200
font-size: 24px;
201201
font-weight: 300;
202202
border-bottom: 1px solid var( --cg );
203-
}
204-
heading {
205203
letter-spacing: 5px;
206204
}
207205
heading.subhead {

srv/http/assets/fonts/rern.woff2

96 Bytes
Binary file not shown.

srv/http/assets/js/camilla.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ps.volume = data => {
1+
W.volume = data => {
22
if ( V.local ) {
33
V.local = false;
44
return
@@ -722,7 +722,7 @@ var graph = {
722722
}
723723
var render = {
724724
status : () => { // onload only
725-
playbackButton();
725+
headIcon();
726726
if ( S.volume !== false ) {
727727
$( '#divvolume' ).removeClass( 'hide' );
728728
$( '#divvolume .control' ).text( S.control );

0 commit comments

Comments
 (0)