ravachol / kew

A command-line music player
GNU General Public License v2.0
567 stars 21 forks source link

[Enhancement] Changes to the config file #99

Closed Jaoheah closed 9 months ago

Jaoheah commented 9 months ago

This is what I came up with as to how the config file could be formatted

On a side note is switchNumberedSong= supposed to have no keybind? That's how it is on my machine, and I don't remember changing it from default.

# Make sure that Kew is closed before editing this file in order for changes to take effect. 

path= ???
coverEnabled=1
coverAnsi=1
visualizerEnabled=1
visualizerHeight=8
useProfileColors=0

# Keybindings

volumeUp=+
volumeDown=-
previousTrackAlt=h
nextTrackAlt=l
scrollUpAlt=k
scrollDownAlt=j
switchNumberedSong=
togglePause=p
toggleColorsDerivedFrom=i
toggleVisualizer=v
toggleCovers=c
toggleAscii=b
toggleRepeat=r
toggleShuffle=s
seekBackward=a
seekForward=d
savePlaylist=x
addToMainPlaylist=.
quit=q

# For special keys use terminal codes OS, for F4 for instance. This can depend on the terminal.

Maybe more info could be added to the comment on the bottom? like a link to a website or something that shows all the keybindings for special keys per terminal or at least where to begin on finding that information.

ravachol commented 9 months ago

Thank you, yes you can use a tool like showkey. I'll add info about that in the file.

ravachol commented 9 months ago

it's:

showkey -a then press the key you want and then for special keys, grab the sequence after the first left bracket [.

ravachol commented 9 months ago

This has been added, in the latest commit.