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
<pstyle="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> All windows - except the <em>Search window</em> - support changing the volume and muting / unmuting the player (provided that <strong>PyRadio</strong> is actually connected to a station).</p>
209
210
<pstyle="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> When inserting numbers (either to jump to a station or to move a station), the number will be displayed at the right bottom corner of the window, suffixed by a “<em>G</em>”, i.e. pressing <em>35</em> will display <em>[35G]</em>.</p>
210
211
<pstyle="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> When tagging a station position for a move action (by pressing “<strong>J</strong>”), the position will be displayed at the right bottom corner of the window, suffixed by a “<em>J</em>”, i.e. pressing “<em>J</em>” on position <em>35</em> will display <em>[35J]</em>.</p>
211
-
<h2id="pyradios-modes">PyRadio’s Modes <spanstyle="padding-left: 10px;"><supstyle="font-size: 50%"><ahref="#" title="Go to top of the page">Top</a></sup></style></h2>
212
+
<h2id="pyradio-modes">PyRadio Modes <spanstyle="padding-left: 10px;"><supstyle="font-size: 50%"><ahref="#" title="Go to top of the page">Top</a></sup></style></h2>
212
213
<p><strong>PyRadio</strong> has the following primary modes:</p>
213
214
<oltype="1">
214
215
<li>The <strong>Main</strong> mode, which is the one you get when you open the program, showing you a list of stations (a playlist), that you can play and edit; this is why it is also called the <strong>editing mode</strong>. All other modes derive from this one, and it’s the mode you have to get to in order to terminate the program.</p></li>
215
216
<li>The <strong>Playlist</strong> mode, which you can open by pressing “<strong>o</strong>”. Then you can open, create, paste a station, etc.</p></li>
216
217
<li>The <strong>Registers</strong> mode. This is identical to the “<em>Playlist</em>” mode, but instead of displaying playlists, it displays register. You can enter this mode by pressing “<strong>’’</strong>” (two single quotes) and exit from it by pressing “<strong>Esc</strong>” or “<strong>q</strong>”. You can also press “<strong>’</strong>” (single quote) to get to the <strong>Playlist</strong> mode and back.</p></li>
217
218
<li>The <strong>Register Main</strong> mode, which is identical to the “<em>Main</em>” mode, except it displays the content of a <strong>named</strong> register.</p></li>
219
+
<li>The <strong>Listening</strong> mode, which is intended to be used when you want <strong>PyRadio</strong> to just play your favorite station and not take up too much space. It is ideal for tilling window manager use, as the whole TUI can be reduced all the way down to a single line (displaying the “<em>Status Bar</em>”). In this mode, adjusting, muting and saving the volume are the only action available. To get <strong>PyRadio</strong> back to normal operation one would just resize its window to a reasonable size (7 lines vertically, or more).</p></li>
218
220
</ol>
219
221
<p>A set of <strong>secondary modes</strong> is also available (a secondary mode works within a primary one):</p>
<p>Finally, include the file produced in your report.</p>
581
583
<h2id="packaging-pyradio">Packaging Pyradio <spanstyle="padding-left: 10px;"><supstyle="font-size: 50%"><ahref="#" title="Go to top of the page">Top</a></sup></style></h2>
582
584
<p>If you are a packager and would like to produce a package for your distribution please do follow this mini guide.</p>
583
-
<p><strong>PyRadio</strong> is able to update and uninstall itself, when installed from source. This is something you do not want to be happening when your package is used; <strong>PyRadio</strong> should be updated and uninstalled using the distro package manager.</p>
585
+
<p>First of all, make sure you declare the pacakges’s requirements to the relevant section of your manifest (or whatever) file. These are: 1. requests 2. dnspython</p>
586
+
<p>After that, you will have to modify some files, because <strong>PyRadio</strong> is able to update and uninstall itself, when installed from source. This is something you do not want to be happening when your package is used; <strong>PyRadio</strong> should be updated and uninstalled using the distro package manager.</p>
584
587
<p>In order to accomplice that, you just have to change the <strong>distro</strong> configuration parameter in the <strong>config</strong> file. <strong>PyRadio</strong> will read this parameter and will disable updating and uninstalling, when set to anything other than “<strong>None</strong>”. So, here’s how you do that:</p>
585
588
<p>Once you are in the sources top level directory (typically “<em>pyradio</em>”), you execute the command:</p>
586
589
<pre>sed -i 's/distro = None/distro = YOUR DISTRO NAME/' pyradio/config</pre>
Copy file name to clipboardExpand all lines: README.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Ben Dowling - [https://github.com/coderholic](https://github.com/coderholic)
11
11
*[Installation](#installation)
12
12
*[Command line options](#command-line-options)
13
13
*[Controls](#controls)
14
-
*[PyRadio's Modes](#pyradio's-modes)
14
+
*[PyRadio Modes](#pyradio-modes)
15
15
*[Config file](#config-file)
16
16
*[About Playlist files](#about-playlist-files)
17
17
*[Integrating new stations](#integrating-new-stations)
@@ -57,6 +57,7 @@ Ben Dowling - [https://github.com/coderholic](https://github.com/coderholic)
57
57
## Requirements
58
58
* python 2.7/3.5+
59
59
- requests
60
+
- dnspython
60
61
* MPV, MPlayer or VLC installed and in your path
61
62
62
63
## Installation
@@ -171,7 +172,7 @@ The same logic applies to all **PyRadio** windows.
171
172
**Note:** When tagging a station position for a move action (by pressing "**J**"), the position will be displayed at the right bottom corner of the window, suffixed by a "*J*", i.e. pressing "*J*" on position *35* will display *[35J]*.
172
173
173
174
174
-
## PyRadio's Modes
175
+
## PyRadio Modes
175
176
176
177
**PyRadio** has the following primary modes:
177
178
@@ -183,6 +184,8 @@ The same logic applies to all **PyRadio** windows.
183
184
184
185
4. The **Register Main** mode, which is identical to the "*Main*" mode, except it displays the content of a **named** register.
185
186
187
+
5. The **Listening** mode, which is intended to be used when you want **PyRadio** to just play your favorite station and not take up too much space. It is ideal for tilling window manager use, as the whole TUI can be reduced all the way down to a single line (displaying the "*Status Bar*"). In this mode, adjusting, muting and saving the volume are the only action available. To get **PyRadio** back to normal operation one would just resize its window to a reasonable size (7 lines vertically, or more).
188
+
186
189
A set of **secondary modes** is also available (a secondary mode works within a primary one):
187
190
188
191
1. The **Extra Commands** mode, which gives you access to extra commands. You can enter this mode by pressing "**\\**" (backslash). Then a backslash is displayed at the bottom right corner of the window.
@@ -730,7 +733,11 @@ Finally, include the file produced in your report.
730
733
731
734
If you are a packager and would like to produce a package for your distribution please do follow this mini guide.
732
735
733
-
**PyRadio** is able to update and uninstall itself, when installed from source. This is something you do not want to be happening when your package is used; **PyRadio** should be updated and uninstalled using the distro package manager.
736
+
First of all, make sure you declare the pacakges's requirements to the relevant section of your manifest (or whatever) file. These are:
737
+
1. requests
738
+
2. dnspython
739
+
740
+
After that, you will have to modify some files, because **PyRadio** is able to update and uninstall itself, when installed from source. This is something you do not want to be happening when your package is used; **PyRadio** should be updated and uninstalled using the distro package manager.
734
741
735
742
In order to accomplice that, you just have to change the **distro** configuration parameter in the **config** file. **PyRadio** will read this parameter and will disable updating and uninstalling, when set to anything other than "**None**". So, here's how you do that:
Copy file name to clipboardExpand all lines: pyradio.1
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -158,6 +158,9 @@ The \fBRegisters\fR mode. This is identical to the "\fIPlaylist\fR" mode, but in
158
158
.IP4.3
159
159
The \fBRegisterMain\fR mode, which is identical to the "\fIMain\fR" mode, except it displays the content of a \fBnamed\fR register.
160
160
161
+
.IP5.3
162
+
The \fBListening\fR mode, which is intended to be used when you want \fBpyradio\fR to just play your favorite station and not take up too much space. It is ideal for tilling window manager use, as the whole TUI can be reduced all the way down to a single line (displaying the "\fIStatusBar\fR"). In this mode, adjusting, muting and saving the volume are the only actions available. To get \fBpyradio\fR back to normal operation one would just resize its window to a reasonable size (7 lines vertically, or more).
163
+
161
164
.RE
162
165
163
166
A set of \fBsecondarymodes\fR is also available (a secondary mode works within a primary one):
0 commit comments