Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
lektor
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Kubat
lektor
Validations
c501d311
Vérifiée
Valider
c501d311
rédigé
4 years ago
par
Kubat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
CMDS: Add pause/unpause commands to lkt, also update the documentation
parent
8ebd02ba
Aucune branche associée trouvée
Branches contenant la validation
Aucune étiquette associée trouvée
Étiquettes contenant la validation
1 requête de fusion
!141
Improve MPD compatibility
Modifications
4
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
4 fichiers modifiés
CHANGELOG.md
+2
-1
2 ajouts, 1 suppression
CHANGELOG.md
README.md
+1
-1
1 ajout, 1 suppression
README.md
man/lkt.template
+15
-9
15 ajouts, 9 suppressions
man/lkt.template
src/main/lkt.c
+4
-0
4 ajouts, 0 suppression
src/main/lkt.c
avec
22 ajouts
et
11 suppressions
CHANGELOG.md
+
2
−
1
Voir le fichier @
c501d311
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
-
Assert and abort will trigger a SEGV to try to display the backtrace
-
Assert and abort will trigger a SEGV to try to display the backtrace
-
Check if downloaded karas are matroska files (only the magic number)
-
Check if downloaded karas are matroska files (only the magic number)
-
In case of restart get the klkt instance launched by the previous lektord
-
In case of restart get the klkt instance launched by the previous lektord
-
The 'pause' command may take one argument to force the 'paused' state of lektord
-
Add window icon
-
Add window icon
-
Add the Klkt client (notification for desktops) to the lektor project
-
Add the Klkt client (notification for desktops) to the lektor project
-
Add AppImage builds for lektord, lkt and klkt
-
Add AppImage builds for lektord, lkt and klkt
...
@@ -14,7 +15,7 @@
...
@@ -14,7 +15,7 @@
-
Add the
\_\_
flat command to set all priorities to 1 in the queue
-
Add the
\_\_
flat command to set all priorities to 1 in the queue
-
Add MPD commands: seek, seekid, seekcur, delete (partial), playlistid
-
Add MPD commands: seek, seekid, seekcur, delete (partial), playlistid
-
Alias list
\*
commands as find
-
Alias list
\*
commands as find
-
lkt handle the playlistid (queue id) and
\_\_
flat (queue flatten) commands
-
lkt handle the playlistid (queue id) and
\_\_
flat (queue flatten)
, pause, unpause
commands
-
lkt shuffle works the same way as klkt, it doens't force the 'play' command but unpause, i.e it doesn't replay the kara
-
lkt shuffle works the same way as klkt, it doens't force the 'play' command but unpause, i.e it doesn't replay the kara
-
Remove archlinux package support (replaced by AppImage)
-
Remove archlinux package support (replaced by AppImage)
-
Fix dl process with the repo module
-
Fix dl process with the repo module
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
README.md
+
1
−
1
Voir le fichier @
c501d311
...
@@ -200,7 +200,7 @@ For the compatibility column, the possible values are the following:
...
@@ -200,7 +200,7 @@ For the compatibility column, the possible values are the following:
|
`replay_gain_mode {mode}`
| | | not implemented |
|
`replay_gain_mode {mode}`
| | | not implemented |
|
`replay_gain_status`
| | | not implemented |
|
`replay_gain_status`
| | | not implemented |
|
`next`
|
`next`
| + | |
|
`next`
|
`next`
| + | |
|
`pause {state}`
|
`pause {state}`
|
CHECK | check compat state
|
|
`pause {state}`
|
`pause {state}`
|
+ |
|
|
`play [songpos]`
|
`play [songpos]`
| + | if no
`songpos`
passed, defaults to
`0`
|
|
`play [songpos]`
|
`play [songpos]`
| + | if no
`songpos`
passed, defaults to
`0`
|
|
`playid [songid]`
|
`playid {songid}`
| + | get the first found
`songid`
in the queue |
|
`playid [songid]`
|
`playid {songid}`
| + | get the first found
`songid`
in the queue |
|
`previous`
|
`previous`
| + | |
|
`previous`
|
`previous`
| + | |
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
man/lkt.template
+
15
−
9
Voir le fichier @
c501d311
...
@@ -28,26 +28,32 @@ Here are the \fBlkt\fP commands:
...
@@ -28,26 +28,32 @@ Here are the \fBlkt\fP commands:
\fBcurrent\fP
\fBcurrent\fP
Prints informations about the currently playing kara. Can be used to
Prints informations about the currently playing kara. Can be used to
display the current kara in a status bar like \fBxmobar\fP or in the
display the current kara in a status bar like \fBxmobar\fP or in the
\fBi3 panel\fP
\fBi3 panel\fP
.
.TP
.TP
\fBplay\fP [index]
\fBplay\fP [index]
Toggle play/pause state. If the playback is stopped, start at a possibly
Toggle play/pause state. If the playback is stopped, start at a possibly
specified index
specified index.
.TP
\fBpause\fP
For lektord to be paused, don't do anything is lektord is already paused.
.TP
\fBunpause\fP
Unpause lektord, don't do anything if lektord is already playing or if it is
stopped. In that case use the \fBplay\fP command.
.TP
.TP
\fBnext\fP
\fBnext\fP
Play next kara in the queue
Play next kara in the queue
.
.TP
.TP
\fBprevious\fP
\fBprevious\fP
Play the previous kara in the queue
Play the previous kara in the queue
.
.TP
.TP
\fBshuffle\fP
\fBshuffle\fP
Shuffle the queue. If the state was stoppped, play from the first kara
Shuffle the queue. If lektord was paused it will unpause but if it was stopped
in the queue. If lektor was already playing a kara, it will play it
it won't start. If it exists, the current kara will be placed in the first
from the begening. The current kara will be placed in first position
place in the queue.
in the queue.
.TP
.TP
\fBstatus\fP
\fBstatus\fP
Prints information about the state of lektor and the currently playing kara
Prints information about the state of lektor and the currently playing kara
.
.TP
.TP
\fBstop\fP
\fBstop\fP
Stop the playback and reading the queue, the state is now \fIstopped\fP.
Stop the playback and reading the queue, the state is now \fIstopped\fP.
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/main/lkt.c
+
4
−
0
Voir le fichier @
c501d311
...
@@ -309,6 +309,8 @@ just_send(queue_crop__, "crop\n")
...
@@ -309,6 +309,8 @@ just_send(queue_crop__, "crop\n")
just_send
(
next__
,
"next
\n
"
)
just_send
(
next__
,
"next
\n
"
)
just_send
(
prev__
,
"previous
\n
"
)
just_send
(
prev__
,
"previous
\n
"
)
just_send
(
stop__
,
"stop
\n
"
)
just_send
(
stop__
,
"stop
\n
"
)
just_send
(
pause__
,
"pause 1
\n
"
)
just_send
(
unpause__
,
"pause 0
\n
"
)
just_send
(
shuffle__
,
"shuffle
\n
pause 0
\n
"
)
just_send
(
shuffle__
,
"shuffle
\n
pause 0
\n
"
)
just_send
(
queue_flatten__
,
"__flat
\n
"
)
just_send
(
queue_flatten__
,
"__flat
\n
"
)
#undef just_send
#undef just_send
...
@@ -1212,6 +1214,8 @@ queue__(struct cmd_args *args)
...
@@ -1212,6 +1214,8 @@ queue__(struct cmd_args *args)
static
struct
cmd_opt
options_
[]
=
{
static
struct
cmd_opt
options_
[]
=
{
{
.
name
=
"current"
,
.
call
=
current__
},
{
.
name
=
"current"
,
.
call
=
current__
},
{
.
name
=
"play"
,
.
call
=
play__
},
{
.
name
=
"play"
,
.
call
=
play__
},
{
.
name
=
"pause"
,
.
call
=
pause__
},
{
.
name
=
"unpause"
,
.
call
=
unpause__
},
{
.
name
=
"next"
,
.
call
=
next__
},
{
.
name
=
"next"
,
.
call
=
next__
},
{
.
name
=
"previous"
,
.
call
=
prev__
},
{
.
name
=
"previous"
,
.
call
=
prev__
},
{
.
name
=
"queue"
,
.
call
=
queue__
},
{
.
name
=
"queue"
,
.
call
=
queue__
},
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter