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
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,11 +141,11 @@ This will display the program's window with a list of predefined radio stations
141
141
142
142
- Press "**+**" (or "**.**") and "**-**" (or "**,**") to adjust the volume, and "**v**" to save it.
143
143
144
-
- Pressing "**?**" will give you access to the help screens; "**\\h**" will give you access to the help pages.
144
+
- Pressing "**?**" will give you access to the help screens; "**\\h**" will give you access to the HTML help pages.
145
145
146
146
- "**Esc**" or "**q**" will exit the program.
147
147
148
-
In case the list of predefined stations are not enough for you, you can press "**O**" (capital "**o**") to access **RadioBrowser** online directory; you will probably have to read [this page](docs/radio-browser.md) to learn how to navigate the interface.
148
+
In case the list of predefined stations is not enough for you, you can press "**O**" (capital "**o**") to access **RadioBrowser** online directory; you will probably have to read [this page](docs/radio-browser.md) to learn how to navigate the interface.
149
149
150
150
**PyRadio** comes with a number of themes; press "**t**" to get a list of themes, and
151
151
@@ -211,4 +211,5 @@ If you are a packager and would like to produce a package for your distribution
211
211
## Special thanks
212
212
213
213
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.
214
+
214
215
2.[amano-kenji](https://github.com/amano-kenji), for his valuable suggestions and bug reports.
@@ -36,11 +37,6 @@ Then you have to add the following python modules to the relevant section of you
36
37
5. netifaces
37
38
6. dateutil
38
39
39
-
Linux users will have to install the "**xdg-utils**" package (may be named differently in your distro) which will provide "**xdg-open**", the utility to open directories, html pages, etc.
40
-
41
-
Linux and macOS users will have to have installed a font that supports the "**Unicode Geometric Shapes Block**". Any font mentioned in the [Font Support for Unicode Block 'Geometric Shapes'](https://www.fileformat.info/info/unicode/block/geometric_shapes/fontsupport.htm) page will do; as you can see these include **DejaVu**, **FreeMono**, **Unifont**, etc, some of which will fopefully be installed by default.
42
-
43
-
44
40
## Files to change
45
41
46
42
You will have to modify a couple of files to tailor **PyRadio**' to your needs and liking.
@@ -139,4 +135,20 @@ I would suggest to do so, in order to provide your users the best experience pos
139
135
140
136
In case you decide to do so, please make sure you mark as a dependency the **command line utilities**, not the GUI program, if that's on a different package on your distro. For examle, Arch Linux provides both a *mkvtoolnix-cli* and a *mkvtoolnix-gui* package; the first one should be used. Same thing with Debian Linux; it provides both a *mkvtoolnix* and a *mkvtoolnix-gui* package; in which case you'd use the later.
141
137
138
+
## Resource opener (Linux only)
139
+
140
+
A [resource opener](https://wiki.archlinux.org/title/default_applications#Resource_openers) is a utility to open directories, html pages, etc.
141
+
142
+
**PyRadio** running on Linux will look for *xdg-open*, *gio*, *mimeopen*, *mimeo* or *handlr*, in that order of detection.
143
+
144
+
If none of the above if found, the requested file will simply not open.
145
+
146
+
Most Linux distros will probably have *xdg-open* (from *xdg-utils* package) installed or available (or any of the ones in the list above), so no action will be nesesary.
147
+
148
+
In case a different *resource opener* is to be used, one can declare it like so:
149
+
150
+
sed -i 's/resource_opener = auto/resource_opener = MY_RESOURCE_OPENER/' config
151
+
152
+
This will instruct **PyRadio** to use the file **MY_RESOURCE_OPENER** as a *resource opener*.
142
153
154
+
**MY_RESOURCE_OPENER** can be just the name of the file (if it is in the *PATH*), or an absolute path to a file, it it's not.
Copy file name to clipboardExpand all lines: pyradio/config_window.py
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,7 @@ class PyRadioConfigWindow(object):
88
88
"If True and a compositor is running, the stations' window background will be transparent.", '|', "If True and a compositor is not running, the terminal's background color will be used.", '|', 'Default value: False'])
89
89
_help_text.append(['This option, when enabled, will make all themes behave as if their transparency setting was set to 2 (Obey config setting), in which case the windows\'s transparency will depend entirely on the value of the "Use transparency" setting (the option above this one).', '|', 'Default value: False'])
90
90
_help_text.append(['Pyradio can calculate and use an alternative color for secondary windows.', '|', 'This option will determine if this color will be used (value > 0) or not (value = 0), provided that the theme used does not already provide it.', '|', 'The value of this option is actually the factor to darken or lighten the main (stations) background color.', '|', 'You can get more info on this at https://github.com/coderholic/pyradio#secondary-windows-background', '|', 'Valid Values: 0-0.2', 'Default value: 0'])
91
+
_help_text.append(['The console theme is the one used when PyRadio is executed either from the Linux Virtual Console or the terminal used does not support color changes.', '|', 'This change will take effect after PyRadio is restarted.', '|', 'Default value: dark'])
91
92
_help_text.append(None)
92
93
_help_text.append(['Specify whether you will be asked to confirm every station deletion action.',
0 commit comments