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
--show-themes Show Internal and System Themes names.
154
+
--no-themes Disable themes (use default theme).
149
155
--write-theme IN_THEME OUT_THEME,
150
156
Write an Internal or System Theme to themes directory.
157
+
--terminal TERMINAL Use this terminal for Desktop file instead of the
158
+
auto-detected one. Use "none" to reset to the default
159
+
terminal or "auto" to reset to the auto-detected one.
160
+
--terminal-param TERMINAL_PARAM
161
+
Use this as PyRadio parameter in the Desktop File.
162
+
Please replace hyphens with underscores when passing
163
+
the parameter, for example: --terminal-param "_p 3 _t
164
+
light" (which will result to "pyradio -p 3 -t light").
151
165
-tlp, --toggle-load-last-playlist
152
166
Toggle autoload last opened playlist.
153
167
-scd, --show-config-dir
@@ -565,7 +579,7 @@ The default player to use can also be set in **PyRadio**'s [configuration file](
565
579
566
580
### Extra Player Parameters
567
581
568
-
All three supported players can accept a significant number of "*command line parameters*", which are well documented and accessible through man pages (on linux and macOs) or the documentation (on Windows).
582
+
All three supported players can accept a significant number of "*command line options*", which are well documented and accessible through man pages (on linux and macOs) or the documentation (on Windows).
569
583
570
584
**PyRadio** uses some of these parameters in order to execute and communicate with the players. In particular, the following parameters are in use **by default**:
571
585
@@ -577,13 +591,13 @@ All three supported players can accept a significant number of "*command line pa
577
591
578
592
**Note:** The user should not use or change the above player parameters. Failing to do so, may render the player ***unusable***.
579
593
580
-
**PyRadio** provides a way for the user to add extra parameters to the player, either by a command line parameter, or the "*Configuration Window*" (under "*Player:*").
594
+
**PyRadio** provides a way for the user to add extra parameters to the player, either by a command line option, or the "*Configuration Window*" (under "*Player:*").
581
595
582
596
This way, 10 sets of parameters can be inserted and made available for selection.
583
597
584
598
#### Using the command line
585
599
586
-
When the command line parameter (**-ep** or **--extra_player_parameters**) is used, the parameters specified must be of a specific format, and will be added to the list of parameters and made default for the player for the current session.
600
+
When the command line option (**-ep** or **--extra_player_parameters**) is used, the parameters specified must be of a specific format, and will be added to the list of parameters and made default for the player for the current session.
587
601
588
602
The format of the parameter is the following: **[player_name:parameters]**
589
603
@@ -621,7 +635,7 @@ The user can add ("**a**") a new parameter, edit ("**e**") an existing set and d
621
635
622
636
### Changing parameters set
623
637
624
-
When all desired parameter sets are already defined, using the **-ap** (**--active-player-param-id**) command line parameter can activate the set that corresponds to the number specified. The number to use for any given set can be retrieved using the **-lp** (**--list-player-parameters**) command line parameter.
638
+
When all desired parameter sets are already defined, using the **-ap** (**--active-player-param-id**) command line option can activate the set that corresponds to the number specified. The number to use for any given set can be retrieved using the **-lp** (**--list-player-parameters**) command line option.
625
639
626
640
While **PyRadio** is running, the user can change the parameters set used by the player using the "*Player Extra Parameters*" window, by pressing "**Z**".
627
641
@@ -833,6 +847,18 @@ The "*Theme selection window*" will remain open after activating a theme, so tha
833
847
834
848
Pressing "**SPACE**", will apply the theme and make it default, and pressing "**c**" will apply the theme and make it default and start a file watch function on the file, so that if the file changes, **PyRadio** will automatically update itself.
835
849
850
+
### Virtual terminal restrictions
851
+
852
+
After introducing CSS color themes, it has come to my attention that **PyRadio** will not display colors correctly when executed within specific terminals, *konsole*, *yakuake*, *deepin-teminal*, *qterminal* and *terminology*, just to name a few.
853
+
854
+
Now, I do not know whether this is because of the terminals themselves, python curses implementation or whatever, but that's that.
855
+
856
+
**PyRadio** will try to detect these terminals and disable themes (after displaying a relative message). Then the default theme will be used.
857
+
858
+
Some of the terminals that work ok, are: *gnome-terminal*, *mate-terminal*, *xfce4-terminal*, *lxterminal*, *terminator*, *termite*, *kitty*, *alacritty*, *sakura*, *roxterm*, *tilix*, *lilyterm*, *st*, *xst*, *rxvt*, *urxvt*, *uxterm*, *xterm*.
859
+
860
+
If you want to make **PyRadio** start in one of these terminal, just follow the instructions given at [Desktop File: Specifying the terminal to use](#specifying-the-terminal-to-use).
861
+
836
862
### CSS color themes restrictions
837
863
838
864
Using CSS colors imposes a couple of restrictions on the type of terminals **PyRadio** will be able to run:
@@ -841,7 +867,7 @@ Using CSS colors imposes a couple of restrictions on the type of terminals **PyR
841
867
\
842
868
**PyRadio** will set it to "*xterm-256color*" if not set. \
843
869
\
844
-
Furthermore, if TERM is set to anything like "**xterm***", "**screen***" or "**tmux***", **PyRadio** will set it to "*xterm-256color*" as well.
870
+
Furthermore, if TERM is set to anything like "**xterm**", "**screen**" or "**tmux**", **PyRadio** will set it to "*xterm-256color*" as well.
845
871
846
872
2. Terminals that do not support at least 16 colors will not be able to display any of the new themes. The same goes for terminals that do not support changing their colors (through the **curses** library). \
847
873
\
@@ -1043,7 +1069,7 @@ The way this works, according to the documenataion, is that one "can use the **m
1043
1069
1044
1070
The function can be enabled:
1045
1071
1046
-
1. using the `-lt` (`--log-titles`) command line parameter, or
1072
+
1. using the `-lt` (`--log-titles`) command line option, or
1047
1073
2. by pressing "**W**" while in the **Main**, the **Playlist** or the **Register** mode.
1048
1074
1049
1075
The titles are written in a file called `pyradio-titles.log` which is saved at **PyRadio** configuration directory.
@@ -1103,6 +1129,44 @@ If enabled, **PyRadio** will display:
1103
1129
1104
1130
To find out more about configuring this feature, please refer to [Desktop Notification](desktop-notification.md).
1105
1131
1132
+
## Desktop File
1133
+
1134
+
**PyRadio** will install a Desktop File under **~/.local/share/applications**.
1135
+
1136
+
**Note:** The system wide Desktop File will probably be under **/usr/share/applications** or **/usr/local/share/applications**.
1137
+
1138
+
By default, this Desktop File will add a "**PyRadio**" entry under the "**Internet**" category (or menu), and will execute **PyRadio** no matter if the directory it resides in is the PATH or not, using the **default** terminal that the system uses.
1139
+
1140
+
In case of a local installation, when a system wide installation also exists, the entry will display "**PyRadio - Local**" to distinguish itself from the system wide "**PyRadio**" one.
1141
+
1142
+
**Note:** If the TERMINAL variable is set, the Desktop File will use that instead.
1143
+
1144
+
### Specifying the terminal to use
1145
+
1146
+
If a specific terminal has to be used, using the **--terminal** command line option is the way to go:
1147
+
1148
+
pyradio --terminal kitty
1149
+
1150
+
This command will set the terminal in the Desktop file, so that:
1151
+
1152
+
Exec=kitty -e pyradio
1153
+
1154
+
To have **PyRadio** try to find a suitable terminal, execute:
1155
+
1156
+
pyraio --terminal auto
1157
+
1158
+
To restore the original functionality (specifying no terminal):
1159
+
1160
+
pyradio --terminal none
1161
+
1162
+
#### Specifying PyRadio parameters
1163
+
1164
+
If a **PyRadio** parameter has to be present in the Desktop File, use the **--terminal-param** command line option:
1165
+
1166
+
pyradio --terminal none --terminal-param "_p 2"
1167
+
1168
+
This command will use no specific terminal and will pass the "**-p 2**" (play station No 2 automatically) parameter to **PyRadio**. To pass such a parameter, substitute all hyphens with underscores.
1169
+
1106
1170
## Session Locking
1107
1171
1108
1172
**PyRadio** uses session locking, which actually means that only the first instance executed within a given session will be able to write to the configuration file.
@@ -1111,7 +1175,7 @@ Subsequent instances will be "*locked*". This means that the user can still play
1111
1175
1112
1176
### Session unlocking
1113
1177
1114
-
If for any reason **PyRadio** always starts in "*locked mode*", one can **unlock** the session, using the "*--unlock*" command line parameter.
1178
+
If for any reason **PyRadio** always starts in "*locked mode*", one can **unlock** the session, using the "*--unlock*" command line option.
1115
1179
1116
1180
## Update notification
1117
1181
@@ -1139,7 +1203,7 @@ Finally, execute the command:
1139
1203
1140
1204
## Cleaning up
1141
1205
1142
-
**PyRadio** will uninstall all previously installed versions when updated (using the **-U** command line parameter), so no extra steps are needed any more to house keep your system.
1206
+
**PyRadio** will uninstall all previously installed versions when updated (using the **-U** command line option), so no extra steps are needed any more to house keep your system.
1143
1207
1144
1208
## Debug mode
1145
1209
@@ -1200,7 +1264,7 @@ Having said that, if you are not packaging for a specific distribution, please d
1200
1264
-[ ] Use Radio Browser service ([#80](https://github.com/coderholic/pyradio/issues/80)[#93](https://github.com/coderholic/pyradio/issues/93)[#112](https://github.com/coderholic/pyradio/issues/112))
1201
1265
-[ ] Use some OPML service, [https://opml.radiotime.com](https://opml.radiotime.com) for example
1202
1266
-[x] Notify the user that the package's stations.csv has changed -v 0.8.9
1203
-
-[x] Update / uninstall using command line parameters (-U / -R) - v. 0.8.9
1267
+
-[x] Update / uninstall using command line options (-U / -R) - v. 0.8.9
1204
1268
-[x] Basic mouse support ([#119](https://github.com/coderholic/pyradio/issues/119)) - v. 0.8.8.3
1205
1269
-[x] Players extra parameters ([#118](https://github.com/coderholic/pyradio/issues/118)) - v. 0.8.8.3
1206
1270
-[x] New player selection configuration window ([#118](https://github.com/coderholic/pyradio/issues/118)) - v. 0.8.8.3
0 commit comments