Skip to content

Commit 74b7cfa

Browse files
committed
- version 0.8.9.23 (0.9-beta20)
- several fixes for non linux OSs (freensd, openbsd, etc.) - removing some debug messages
1 parent 87128b8 commit 74b7cfa

18 files changed

+304
-218
lines changed

Changelog

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2022-08-03 s-n-g
2+
* version 0.8.9.23 (0.9-beta20)
3+
* pyradio can now sync with themes created by base16, pywal and theme.sh
4+
* if session is locked, the theme selection window will not be available
5+
* if session is locked, do not create / download (watched) theme; wait
6+
for main instance to do it instead, then just load it
7+
* docs updated
8+
19
2022-07-03 s-n-g
210
* version 0.8.9.22 (0.9-beta19)
311
* themes can declare transparency hint

README.html

+23-8
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
body {max-width: 750px; margin: auto;}
1414
h2 {margin-top: 2.5em; border-bottom:1px solid SaddleBrown; color: SaddleBrown;}
1515
h3 {margin-top: 2em; color: SaddleBrown; text-decoration: underline SaddleBrown}
16-
h4 {margin-top: 2em; color: SaddleBrown;}
17-
h4:before {content: "# "; font-size: 200%; font-weight: bold; vertical-align: middle;}
16+
h4 {margin: 2em 0 1em 0; color: SaddleBrown; font-size: 150%;}
17+
h4:before {content: "# "; font-weight: bold; vertical-align: middle;}
18+
h5 {margin: 2em 0 1em 0; color: SaddleBrown; font-size: 120%;}
19+
h5:before {content: "## "; font-weight: bold; vertical-align: middle;}
1820
STRONG {color: SaddleBrown;}
1921
dl {margin: 2em;}
2022
dd {margin: 1em;}
@@ -107,11 +109,12 @@ <h2 id="table-of-contents">Table of Contents <span style="padding-left: 10px;"><
107109
<li><a href="#updating-themes-automatically">Updating themes automatically</a></li>
108110
<li><a href="#using-project-themes">Using Project Themes</a>
109111
<ul>
110-
<li><a href="#1.-base16">1. base16</a>
112+
<li><a href="#base16">base16</a>
111113
<ul>
112114
<li><a href="#using-the-themes-without-base16">Using the themes without base16</a></li>
113115
</ul></li>
114-
<li><a href="#2.-pywal">2. pywal</a></li>
116+
<li><a href="#pywal">pywal</a></li>
117+
<li><a href="#theme.sh">theme.sh</a></li>
115118
</ul></li>
116119
</ul></li>
117120
<li><a href="#mouse-support">Mouse support</a></li>
@@ -168,6 +171,14 @@ <h2 id="requirements">Requirements <span style="padding-left: 10px;"><sup style=
168171
<h2 id="changelog">Changelog <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
169172
<pre style="height: 200px;">
170173

174+
2022-08-03 s-n-g
175+
* version 0.8.9.23 (0.9-beta20)
176+
* pyradio can now sync with themes created by base16, pywal and theme.sh
177+
* if session is locked, the theme selection window will not be available
178+
* if session is locked, do not create / download (watched) theme; wait
179+
for main instance to do it instead, then just load it
180+
* docs updated
181+
171182
2022-07-03 s-n-g
172183
* version 0.8.9.22 (0.9-beta19)
173184
* themes can declare transparency hint
@@ -1334,16 +1345,20 @@ <h3 id="using-project-themes">Using Project Themes</h3>
13341345
<p><strong>PyRadio</strong> will detect theses projects (programs installed and initialized), and will add them under the “<strong>Ext. Themes Projects</strong>” section of the “<em>Themes Selection Window</em>.”</p>
13351346
<p>If loading any of these themes fails, the default <strong>dark</strong> theme will be loaded, but contrary to a local theme being invalid, the selection will persist (so that the theme gets loaded wheneve it is available).</p>
13361347
<p>Currently, the following projects are supported:</p>
1337-
<h4 id="base16">1. <a target="_blank" href="https://github.com/base16-project">base16</a></h4>
1338-
<p>Thanks to the wonderful work by user <a target="_blank" href="https://github.com/edunfelt">edunfelt</a>, there is now a <strong>PyRadio</strong> base16 template in place, and themes have been produced based on the project (there are more than 900 themes available).</p>
1348+
<h4 id="base16">base16</h4>
1349+
<p>Thanks to the wonderful work by user <a target="_blank" href="https://github.com/edunfelt">edunfelt</a>, there is now a <strong>PyRadio</strong> <a target="_blank" href="https://github.com/base16-project">base16</a> template in place, and themes have been produced based on the project (there are more than 900 themes available).</p>
13391350
<p>This implementation will add four entries in the theme selection menu (with alternative and variant forms of the main theme).</p>
13401351
<p>Then, any of the themes can either be activated or watched; in which case <strong>PyRadio</strong> will download and apply the corresponding theme.</p>
13411352
<h5 id="using-the-themes-without-base16">Using the themes without base16</h5>
13421353
<p>In case one wants to use any of these themes, but not install or use <a target="_blank" href="https://github.com/base16-project">base16</a>, one can get them <a target="_blank" href="https://github.com/edunfelt/base16-pyradio">from this repo</a>, and use the “<em>cycle_themes.py</em>” and “<em>install_themes.py</em>” scripts to inspect and install them.</p>
1343-
<h4 id="pywal">2. <a target="_blank" href="https://github.com/dylanaraps/pywal">pywal</a></h4>
1354+
<p>For Windows users, this is the only way to use any of these “<em>Project Themes</em>”, since their generation works on non-windows platforms only.</p>
1355+
<h4 id="pywal">pywal</h4>
13441356
<p>When detected, two themes will be added to the menu; the main and the alternative form.</p>
13451357
<p>Since these themes are generated on the fly, as the wallpaper changes, there is no way to use them if <a target="_blank" href="https://github.com/dylanaraps/pywal">pywal</a> is not in use.</p>
13461358
<p style="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> If <a target="_blank" href="https://github.com/dylanaraps/pywal">pywal</a> themes are activated but not watched, the theme will be corrupted when the wallpaper changes, and will have to be manually reloaded. So, it’s better to just always watch these themes.</p>
1359+
<h4 id="theme.sh">theme.sh</h4>
1360+
<p>When detected, four themes will be added to the menu; the main and the alternative forms (there are 400 plus themes available, which makes a stuggering number of around 1700 plus themes for <strong>PyRadio</strong>!)</p>
1361+
<p>Since these themes are generated on the fly, there is no way to use them if <a target="_blank" href="https://github.com/lemnos/theme.sh">theme.sh</a> is not in use.</p>
13471362
<h2 id="mouse-support">Mouse support <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
13481363
<p>Being a console application, <strong>PyRadio</strong> was never intended to work with a mouse.</p>
13491364
<p>Furthermore, when using the mouse on a console application, the result is highly dependent on the terminal used and the way it implements mouse support.</p>
@@ -1495,7 +1510,7 @@ <h2 id="acknowledgment">Acknowledgment <span style="padding-left: 10px;"><sup st
14951510
</ol>
14961511
<h2 id="special-thanks">Special thanks <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
14971512
<ol type="1">
1498-
<li><strong>PyRadio</strong> user <a target="_blank" href="https://github.com/edunfelt">edunfelt</a>, for her wonderful work on <a href="%5Bedunfelt%5D(https://github.com/edunfelt)">base16</a> themes, and ideas regarding theming and such.</li>
1513+
<li><a target="_blank" href="https://github.com/edunfelt">edunfelt</a>, for her wonderful work on <a target="_blank" href="https://github.com/edunfelt/base16-pyradio">base16 themes</a>, and ideas regarding theming and such.</li>
14991514
</ol>
15001515
</body>
15011516
</html>

README.md

+15-6
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ Ben Dowling - [https://github.com/coderholic](https://github.com/coderholic)
5353
* [Using transparency](#using-transparency)
5454
* [Updating themes automatically](#updating-themes-automatically)
5555
* [Using Project Themes](#using-project-themes)
56-
* [1. base16](#1.-base16)
56+
* [base16](#base16)
5757
* [Using the themes without base16](#using-the-themes-without-base16)
58-
* [2. pywal](#2.-pywal)
58+
* [pywal](#pywal)
59+
* [theme.sh](#theme.sh)
5960
* [Mouse support](#mouse-support)
6061
* [Titles logging](#titles-logging)
6162
* [Tagging a title](#tagging-a-title)
@@ -875,9 +876,9 @@ If loading any of these themes fails, the default **dark** theme will be loaded,
875876

876877
Currently, the following projects are supported:
877878

878-
#### 1. [base16](https://github.com/base16-project)
879+
#### base16
879880

880-
Thanks to the wonderful work by user [edunfelt](https://github.com/edunfelt), there is now a **PyRadio** base16 template in place, and themes have been produced based on the project (there are more than 900 themes available).
881+
Thanks to the wonderful work by user [edunfelt](https://github.com/edunfelt), there is now a **PyRadio** [base16](https://github.com/base16-project) template in place, and themes have been produced based on the project (there are more than 900 themes available).
881882

882883
This implementation will add four entries in the theme selection menu (with alternative and variant forms of the main theme).
883884

@@ -887,14 +888,22 @@ Then, any of the themes can either be activated or watched; in which case **PyRa
887888

888889
In case one wants to use any of these themes, but not install or use [base16](https://github.com/base16-project), one can get them [from this repo](https://github.com/edunfelt/base16-pyradio), and use the "*cycle_themes.py*" and "*install_themes.py*" scripts to inspect and install them.
889890

890-
#### 2. [pywal](https://github.com/dylanaraps/pywal)
891+
For Windows users, this is the only way to use any of these "*Project Themes*", since their generation works on non-windows platforms only.
892+
893+
#### pywal
891894

892895
When detected, two themes will be added to the menu; the main and the alternative form.
893896

894897
Since these themes are generated on the fly, as the wallpaper changes, there is no way to use them if [pywal](https://github.com/dylanaraps/pywal) is not in use.
895898

896899
**Note:** If [pywal](https://github.com/dylanaraps/pywal) themes are activated but not watched, the theme will be corrupted when the wallpaper changes, and will have to be manually reloaded. So, it's better to just always watch these themes.
897900

901+
#### theme.sh
902+
903+
When detected, four themes will be added to the menu; the main and the alternative forms (there are 400 plus themes available, which makes a stuggering number of around 1700 plus themes for **PyRadio**!)
904+
905+
Since these themes are generated on the fly, there is no way to use them if [theme.sh](https://github.com/lemnos/theme.sh) is not in use.
906+
898907
## Mouse support
899908

900909
Being a console application, **PyRadio** was never intended to work with a mouse.
@@ -1083,4 +1092,4 @@ Having said that, if you are not packaging for a specific distribution, please d
10831092

10841093
## Special thanks
10851094

1086-
1. **PyRadio** user [edunfelt](https://github.com/edunfelt), for her wonderful work on [base16]([edunfelt](https://github.com/edunfelt)) themes, and ideas regarding theming and such.
1095+
1. [edunfelt](https://github.com/edunfelt), for her wonderful work on [base16 themes](https://github.com/edunfelt/base16-pyradio), and ideas regarding theming and such.

build.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
body {max-width: 750px; margin: auto;}
1414
h2 {margin-top: 2.5em; border-bottom:1px solid SaddleBrown; color: SaddleBrown;}
1515
h3 {margin-top: 2em; color: SaddleBrown; text-decoration: underline SaddleBrown}
16-
h4 {margin-top: 2em; color: SaddleBrown;}
17-
h4:before {content: "# "; font-size: 200%; font-weight: bold; vertical-align: middle;}
16+
h4 {margin: 2em 0 1em 0; color: SaddleBrown; font-size: 150%;}
17+
h4:before {content: "# "; font-weight: bold; vertical-align: middle;}
18+
h5 {margin: 2em 0 1em 0; color: SaddleBrown; font-size: 120%;}
19+
h5:before {content: "## "; font-weight: bold; vertical-align: middle;}
1820
STRONG {color: SaddleBrown;}
1921
dl {margin: 2em;}
2022
dd {margin: 1em;}

devel/pre-commit

+4-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ do
7272
body {max-width: 750px; margin: auto;} \
7373
h2 {margin-top: 2.5em; border-bottom:1px solid SaddleBrown; color: SaddleBrown;} \
7474
h3 {margin-top: 2em; color: SaddleBrown; text-decoration: underline SaddleBrown} \
75-
h4 {margin-top: 2em; color: SaddleBrown;} \
76-
h4:before {content: "# "; font-size: 200%; font-weight: bold; vertical-align: middle;} \
75+
h4 {margin: 2em 0 1em 0; color: SaddleBrown; font-size: 150%;} \
76+
h4:before {content: "# "; font-weight: bold; vertical-align: middle;} \
77+
h5 {margin: 2em 0 1em 0; color: SaddleBrown; font-size: 120%;} \
78+
h5:before {content: "## "; font-weight: bold; vertical-align: middle;} \
7779
STRONG {color: SaddleBrown;} \
7880
dl {margin: 2em;} \
7981
dd {margin: 1em;} \

pyradio.1

+60-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.\" Copyright (C) 2011 Ben Dowling <http://www.coderholic.com/pyradio>
22
.\" This manual is freely distributable under the terms of the GPL.
33
.\"
4-
.TH pyradio 1 "July 2022" PyRadio
4+
.TH pyradio 1 "August 2022" PyRadio
55

66
.SH Name
77
.PP
@@ -945,6 +945,58 @@ if the theme is the default one (the way it has always been).
945945
.IP \fB-\fR 3
946946
if the theme is the default one, and \fBpyradio\fR will watch it for changes.
947947

948+
.RE
949+
950+
\fBUsing Project Themes\fR
951+
952+
\fBpyradio\fR is able to use (and watch) the output of certain projects that modify terminal colors.
953+
954+
\fBpyradio\fR will detect theses projects (programs installed and initialized), and will add them under the \fBExt. Themes Projects\fR section of the \fIThemes Selection Window\fR.
955+
956+
If loading any of these themes fails, the default \FBdark\fR theme will be loaded, but contrary to a local theme being invalid, the selection will persist (so that the theme gets loaded wheneve it is available).
957+
958+
Currently, the following projects are supported:
959+
960+
\fB1.\ base16\fR
961+
962+
.RS 3
963+
964+
Thanks to the wonderful work by user \fBedunfelt\fR (\fIhttps://github.com/edunfelt\fR), there is now a \fBpyradio base16\fR (\fIhttps://github.com/base16-project\fR) \fBtemplate\fR in place, and themes have been produced based on the project (there are more than 900 themes available).
965+
966+
This implementation will add four entries in the theme selection menu (with alternative and variant forms of the main theme).
967+
968+
Then, any of the themes can either be activated or watched; in which case \fBpyradio\fR will download and apply the corresponding theme.
969+
970+
\fBUsing the themes without base16\fR
971+
972+
.RS 4
973+
974+
In case one wants to use any of these themes, but not install or use \fBbase16\fR (\fIhttps://github.com/base16-project\fR), one can get them \fIfrom this repo\fR (\fIhttps://github.com/edunfelt/base16-pyradio\fR), and use the \fBcycle_themes.py\fR and \fBinstall_themes.py\fR scripts to inspect and install them.
975+
976+
.RE
977+
.RE
978+
979+
\fB2.\ pywal\fR
980+
981+
.RS 3
982+
983+
When detected, two themes will be added to the menu; the main and the alternative form.
984+
985+
Since these themes are generated on the fly, as the wallpaper changes, there is no way to use them if \fBpywal\fR (\fIhttps://github.com/dylanaraps/pywal\fR) is not in use.
986+
987+
.IP \fBNote:
988+
If \fBpywal\fR (\fIhttps://github.com/dylanaraps/pywal\fR) themes are activated but not watched, the theme will be corrupted when the wallpaper changes, and will have to be manually reloaded. So, it's better to just always watch these themes.
989+
990+
.RE
991+
992+
\fB3.\ theme.sh\fR
993+
994+
.RS 3
995+
996+
When detected, four themes will be added to the menu; the main and the alternative forms (there are 400 plus themes available, which makes a stuggering number of around 1700 plus themes for \fBpyradio\fR!)
997+
998+
Since these themes are generated on the fly, there is no way to use them if \fBtheme.sh\fR (\fIhttps://github.com/lemnos/theme.sh\fR) is not in use.
999+
9481000
.SH Mouse Support
9491001

9501002
Being a console application, \fBPyRadio\fR was never intended to work with a mouse.
@@ -1145,10 +1197,15 @@ On \fBMac OS\fR, these file may be installed in \fI/usr/local/share/doc/pyradio\
11451197
.PP
11461198
\fBPeter Stevenson (2E0PGS)\fR\ \<\fIhttps://github.com/2E0PGS\fR\>,\ (2018)
11471199
.PP
1148-
\fBSpiros Georgaras\fR\ \<\fIhttps://github.com/s-n-g\fR\>,\ (2018-2021)
1200+
\fBSpiros Georgaras\fR\ \<\fIhttps://github.com/s-n-g\fR\>,\ (2018-2022)
11491201
.PP
11501202
You can see a complete list of contributors at
1151-
https://github.com/coderholic/pyradio/graphs/contributors
1203+
\fIhttps://github.com/coderholic/pyradio/graphs/contributors\fR
1204+
1205+
.SH Special thanks
1206+
1207+
.IP \fI1. 3
1208+
\fBedunfelt\fR (\fIhttps://github.com/edunfelt\fR), for her wonderful work on \fBbase16 themes\fR (\fIhttps://github.com/edunfelt/base16-pyradio\fR), and ideas regarding theming and such.
11521209

11531210
.SH See also
11541211

pyradio/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" pyradio -- Console radio player. "
22

3-
version_info = (0, 8, 9, 22)
3+
version_info = (0, 8, 9, 23)
44

55
# Set it to True if new stations have been
66
# added to the package's stations.csv

0 commit comments

Comments
 (0)