You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Selected station / playlist will be visible when resizing the terminal.
- Calculating initial loaded playlist position in window.
- Implemented dynamic list padding.
- Correctly display failed station when returning to stations mode.
- Updating docs
PgUp/PgDown Change station selection Change station playlist Change station theme
96
+
g Jump to first station Jump to first playlist Jump to first theme
97
+
<n>G Jump to n-th / last station Jump to n-th / last playlist Jump to n-th / last theme
98
+
p Jump to playing station Jump to playing playlist -
99
+
Enter/Right/l Play selected station Open selected playlist Apply selected theme
100
+
r Select and play a random station Re-read playlists from disk -
101
+
Space/Left/h Stop/start playing selected station - -
102
+
Space - - Apply theme and make it default
103
+
-/+ or ,/. Change volume [Valid] [Valid]
104
+
m Mute / unmute player [Valid] [Valid]
105
+
v Save volume (not applicable for vlc) [Valid] [Valid]
106
+
o s R Open / Save / Reload playlist - -
107
+
DEL,x Delete selected station - -
108
+
t T Load theme / Toggle transparency [Valid] [Valid]
109
+
? Show keys help [Valid] [Valid]
110
+
# Redraw window [Valid] [Valid]
111
+
Esc/q Quit - -
112
+
Esc/q/Left/h - Cancel / close window Cancel / close window</pre>
106
113
<h2id="config-file">Config file</h2>
107
114
<p><strong>PyRadio</strong> upon its execution tries to read its configuration file (i.e. <em>~/.config/pyradio/config</em>). If this file is not found, it will be created. If an error occurs while parsing it, an error message will be displayed and <strong><em>PyRadio</em></strong> will terminate.</p>
108
115
<p>The file contains parameters such as the player to use, the playlist to load etc. It is heavily commented (as you can see <ahref="pyradio/config">here</a>), so that manual editing is really easy. The best practice to manually edit this file is executing <strong><em>PyRadio</em></strong> with the <strong>-ocd</strong> command line option, which will open the configuration directory in your file manager, and then edit it using your preferable text editor.</p>
PgUp/PgDown Change station selection Change station playlist Change station theme
81
+
g Jump to first station Jump to first playlist Jump to first theme
82
+
<n>G Jump to n-th / last station Jump to n-th / last playlist Jump to n-th / last theme
83
+
p Jump to playing station Jump to playing playlist -
84
+
Enter/Right/l Play selected station Open selected playlist Apply selected theme
85
+
r Select and play a random station Re-read playlists from disk -
86
+
Space/Left/h Stop/start playing selected station - -
87
+
Space - - Apply theme and make it default
88
+
-/+ or ,/. Change volume [Valid] [Valid]
89
+
m Mute / unmute player [Valid] [Valid]
90
+
v Save volume (not applicable for vlc) [Valid] [Valid]
91
+
o s R Open / Save / Reload playlist - -
92
+
DEL,x Delete selected station - -
93
+
t T Load theme / Toggle transparency [Valid] [Valid]
94
+
? Show keys help [Valid] [Valid]
95
+
# Redraw window [Valid] [Valid]
96
+
Esc/q Quit - -
97
+
Esc/q/Left/h - Cancel / close window Cancel / close window
91
98
```
92
99
93
100
## Config file
@@ -219,7 +226,7 @@ Station1,Station1_URL,
219
226
Station2,Station2_URL,iso-8859-7
220
227
```
221
228
222
-
**Note:**
229
+
**Note:**
223
230
Using the ***-a*** command line option will save you all this trouble, as it will automatically take care of creating a valid ***CSV*** file.
224
231
225
232
### Global encoding declaration
@@ -312,12 +319,14 @@ Example:
312
319
313
320
## PyRadio Themes
314
321
315
-
**PyRadio** comes with 4 preconfigured (hard coded) themes:
322
+
**PyRadio** comes with 6 preconfigured (hard coded) themes:
316
323
317
324
1.**dark** (8 color theme). This is the appearance **PyRadio** has always had. Enabled by default.
318
325
2.**light** (8 color theme). A theme for light terminal background settings.
319
-
3.**white_on_black** or **wob** (256 color b&w theme). A theme for dark terminal background settings.
320
-
4.**black_on_white** or **bow** (256 color b&w theme). A theme for light terminal background settings.
326
+
3.**dark_16_colors** (16 color theme). "**dark**" theme alternative.
327
+
4.**light_16_colors** (16 color theme). "**light**" them alternative.
328
+
5.**white_on_black** or **wob** (256 color b&w theme). A theme for dark terminal background settings.
329
+
6.**black_on_white** or **bow** (256 color b&w theme). A theme for light terminal background settings.
321
330
322
331
The visual result of an applied theme greatly depends on the terminal settings (e.g. foreground and background color settings, palette used, number of colors supported, real or pseudo-transparency support, etc.)
323
332
@@ -333,7 +342,7 @@ The use of custom themes and theme editing is not implemented yet; theses are fe
333
342
334
343
**PyRadio** themes are able to be used with a transparent background.
335
344
336
-
Pressing "**T**" will toggle the transparency setting and save this state in **PyRadio**'s configuration file (transparency is off by default).
345
+
Pressing "**T**" will toggle the transparency setting and save this state in **PyRadio**'s configuration file (transparency is off by default).
337
346
338
347
Setting transparency on, will actually force **PyRadio** to not use its own background color, effectively making it to display whatever is on the terminal (color/picture/transparency). The visual result depends on terminal settings and whether a compositor is running.
0 commit comments