diff --git a/.config/nvim b/.config/nvim index b4987ee..f7d2632 160000 --- a/.config/nvim +++ b/.config/nvim @@ -1 +1 @@ -Subproject commit b4987eec8d0c8525c29083b4eb3b1be00a42b2e3 +Subproject commit f7d2632d208c892a3f570674975a4477e0aeb7ab diff --git a/.config/spotify-tui/config.yml b/.config/spotify-tui/config.yml new file mode 100644 index 0000000..0a2274e --- /dev/null +++ b/.config/spotify-tui/config.yml @@ -0,0 +1,71 @@ +# Sample config file + +# The theme colours can be an rgb string of the form "255, 255, 255" or a string that references the colours from your terminal theme: Reset, Black, Red, Green, Yellow, Blue, Magenta, Cyan, Gray, DarkGray, LightRed, LightGreen, LightYellow, LightBlue, LightMagenta, LightCyan, White. +theme: + active: Cyan # current playing song in list + banner: LightCyan # the "spotify-tui" banner on launch + error_border: Red # error dialog border + error_text: LightRed # error message text (e.g. "Spotify API reported error 404") + hint: Yellow # hint text in errors + hovered: Magenta # hovered pane border + inactive: Gray # borders of inactive panes + playbar_background: Black # background of progress bar + playbar_progress: LightCyan # filled-in part of the progress bar + playbar_progress_text: Cyan # song length and time played/left indicator in the progress bar + playbar_text: White # artist name in player pane + selected: LightCyan # a) selected pane border, b) hovered item in list, & c) track title in player + text: "255, 255, 255" # text in panes + header: White # header text in panes (e.g. 'Title', 'Artist', etc.) + +behavior: + seek_milliseconds: 5000 + volume_increment: 10 + # The lower the number the higher the "frames per second". You can decrease this number so that the audio visualisation is smoother but this can be expensive! + tick_rate_milliseconds: 250 + # Enable text emphasis (typically italic/bold text styling). Disabling this might be important if the terminal config is otherwise restricted and rendering text escapes interferes with the UI. + enable_text_emphasis: true + # Controls whether to show a loading indicator in the top right of the UI whenever communicating with Spotify API + show_loading_indicator: true + # Disables the responsive layout that makes the search bar smaller on bigger + # screens and enforces a wide search bar + enforce_wide_search_bar: false + # Determines the text icon to display next to "liked" Spotify items, such as + # liked songs and albums, or followed artists. Can be any length string. + # These icons require a patched nerd font. + liked_icon: ♥ + shuffle_icon: 🔀 + repeat_track_icon: 🔂 + repeat_context_icon: 🔁 + playing_icon: ▶ + paused_icon: ⏸ + +keybindings: + # Key stroke can be used if it only uses two keys: + # ctrl-q works, + # ctrl-alt-q doesn't. + back: "ctrl-q" + + jump_to_album: "a" + + # Shift modifiers use a capital letter (also applies with other modifier keys + # like ctrl-A) + jump_to_artist_album: "A" + + manage_devices: "d" + decrease_volume: "-" + increase_volume: "+" + toggle_playback: " " + seek_backwards: "<" + seek_forwards: ">" + next_track: "n" + previous_track: "p" + copy_song_url: "c" + copy_album_url: "C" + help: "?" + shuffle: "ctrl-s" + repeat: "r" + search: "/" + audio_analysis: "v" + jump_to_context: "o" + basic_view: "B" + add_item_to_queue: "z" diff --git a/.config/spotifyd/spotifyd.conf b/.config/spotifyd/spotifyd.conf new file mode 100644 index 0000000..ebc9046 --- /dev/null +++ b/.config/spotifyd/spotifyd.conf @@ -0,0 +1,91 @@ +[global] +# Your Spotify account name. +username = "stofflees@gmail.com" + +# Your Spotify account password. +#password = "password" + +# A command that gets executed and can be used to +# retrieve your password. +# The command should return the password on stdout. +# +# This is an alternative to the `password` field. Both +# can't be used simultaneously. +#password_cmd = "command_that_writes_password_to_stdout" + +# If set to true, `spotifyd` tries to look up your +# password in the system's password storage. +# +# This is an alternative to the `password` field. Both +# can't be used simultaneously. +use_keyring = true + +# +# If set to true, `spotifyd` tries to bind to the session dbus +# and expose MPRIS controls. When running headless, without a dbus session, +# then set this to false to avoid binding errors +# +use_mpris = true + +# The audio backend used to play the your music. To get +# a list of possible backends, run `spotifyd --help`. +backend = "pulseaudio" + +# The alsa audio device to stream audio to. To get a +# list of valid devices, run `aplay -L`, +#device = "alsa_audio_device" # omit for macOS + +# The alsa control device. By default this is the same +# name as the `device` field. +#control = "alsa_audio_device" # omit for macOS + +# The alsa mixer used by `spotifyd`. +#mixer = "PCM" + +# The volume controller. Each one behaves different to +# volume increases. For possible values, run +# `spotifyd --help`. +volume_controller = "alsa" # use softvol for macOS + +# A command that gets executed in your shell after each song changes. +#on_song_change_hook = "command_to_run_on_playback_events" + +# The name that gets displayed under the connect tab on +# official clients. Spaces are not allowed! +device_name = "Station" + +# The audio bitrate. 96, 160 or 320 kbit/s +bitrate = 160 + +# The directory used to cache audio data. This setting can save +# a lot of bandwidth when activated, as it will avoid re-downloading +# audio files when replaying them. +# +# Note: The file path does not get expanded. Environment variables and +# shell placeholders like $HOME or ~ don't work! +cache_path = "/home/chris/.cache/spotifyd" + +# If set to true, audio data does NOT get cached. +#no_audio_cache = true + +# Volume on startup between 0 and 100 +# NOTE: This variable's type will change in v0.4, to a number (instead of string) +initial_volume = "90" + +# If set to true, enables volume normalisation between songs. +volume_normalisation = true + +# The normalisation pregain that is applied for each song. +normalisation_pregain = -10 + +# The port `spotifyd` uses to announce its service over the network. +#zeroconf_port = 1234 + +# The proxy `spotifyd` will use to connect to spotify. +#proxy = "http://proxy.example.org:8080" + +# The displayed device type in Spotify clients. +# Can be unknown, computer, tablet, smartphone, speaker, t_v, +# a_v_r (Audio/Video Receiver), s_t_b (Set-Top Box), and audio_dongle. +device_type = "speaker" +