diff --git a/music-discord-rpc/dot-config/music-discord-rpc/config.yaml b/music-discord-rpc/dot-config/music-discord-rpc/config.yaml new file mode 100644 index 0000000..d2f5b9e --- /dev/null +++ b/music-discord-rpc/dot-config/music-discord-rpc/config.yaml @@ -0,0 +1,45 @@ +# music-discord-rpc configuration file + +# You can reset this file using the command: +# music-discord-rpc --reset-config + +# You can also disable Last.fm as a cover source by providing an empty string as the key. +lastfm_api_key: "" + +# Activity refresh rate in seconds (min 5) +interval: 5 + +# Select visible activity buttons (max 2) [possible values: yt, lastfm, listenbrainz, mprisUrl, shamelessAd] +button: +# - yt +# - lastfm + +rpc_name: artist + +small_image: none + +# Prevent MPRIS artUrl to be used as album cover if cover is not available on Last.fm. Mainly for working with thumbnails from YouTube and other video sites. +# Additionally, it also disables icon and player name replacement on YouTube if it detects a YouTube thumbnail link. +disable_mpris_art_url: false + +# Use -l, --list-players to get player exact name to use with this option +# The order matters and the first is the most important. +allowlist: + - "Music" + +# Use -l, --list-players to get player exact name to use with this option +video_players: +# - "VLC Media Player" +# - "Chrome" + +# Hide the album name to decrease activity height +hide_album_name: false + +# Only send activity when media is playing +only_when_playing: true + +# Prevent MusicBrainz to be used as source of album cover if cover is not available on Last.fm +disable_musicbrainz_cover: false + +# Disable cache (not recommended) +disable_cache: false diff --git a/niri/dot-config/niri/config.kdl b/niri/dot-config/niri/config.kdl index a2d38fd..6d71e80 100644 --- a/niri/dot-config/niri/config.kdl +++ b/niri/dot-config/niri/config.kdl @@ -71,6 +71,7 @@ spawn-at-startup "udiskie" spawn-at-startup "wl-paste" "--watch" "cliphist" "store" spawn-at-startup "cliphist" "wipe" spawn-at-startup "flatpak" "run" "it.mijorus.smile" "--start-hidden" +spawn-at-startup "music-discord-rpc" environment { CLIPHIST_MAX_ITEMS "20" ELECTRON_OZONE_PLATFORM_HINT "auto" diff --git a/niri/dot-config/waybar/config.jsonc b/niri/dot-config/waybar/config.jsonc index 02b1920..dbcccd6 100644 --- a/niri/dot-config/waybar/config.jsonc +++ b/niri/dot-config/waybar/config.jsonc @@ -46,6 +46,9 @@ } }, "mpris": { + "ignored-players": [ + "firefox" + ], "format": "♪ ~ {status_icon}{title}", "format-stopped": "", "tooltip-format": "{dynamic}",