Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

Commit

Permalink
Allow changing large icon
Browse files Browse the repository at this point in the history
Now you can use the xmas icon #47
  • Loading branch information
Pigpog committed Dec 8, 2020
1 parent 369944c commit cd522d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ module.exports = {
// If true, VLC will not be opened for you.
// Note: You must set a password
detached: false,
// Changes the big icon of the rich presence
// Some of the available icons are: vlc, vlcflat, vlcblue, vlcneon, vlcxmas
largeIcon: "vlcxmas",
},

vlc: {
Expand Down
4 changes: 2 additions & 2 deletions src/rpc/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ module.exports = (status) => {
return {
state: 'Stopped',
details: 'Nothing is playing.',
largeImageKey: 'vlc',
largeImageKey: config.rpc.largeIcon,
smallImageKey: 'stopped',
instance: true,
};
} // else
const { meta } = status.information.category;
const output = {
details: meta.title || meta.filename,
largeImageKey: 'vlc',
largeImageKey: config.rpc.largeIcon,
smallImageKey: status.state,
smallImageText: `Volume: ${Math.round(status.volume / 2.56)}%`,
instance: true,
Expand Down

0 comments on commit cd522d0

Please sign in to comment.