From 91cc7f284623fef5e076e83b47f23fecada804a8 Mon Sep 17 00:00:00 2001 From: notohh Date: Sat, 17 Jun 2023 10:31:24 -0400 Subject: [PATCH] home: init spotify-player config --- home/spotify/app.toml | 30 ++++++++++++++++++++++++++++++ home/spotify/default.nix | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 home/spotify/app.toml create mode 100644 home/spotify/default.nix diff --git a/home/spotify/app.toml b/home/spotify/app.toml new file mode 100644 index 0000000..70bc2a0 --- /dev/null +++ b/home/spotify/app.toml @@ -0,0 +1,30 @@ +theme = "default" +client_id = "bc629e700c1740a28b3f594ef1942eac" +client_port = 8080 +playack_format = "{track} • {artists}\n{album}\n{metadata}" +notify_format = { summary = "{track} • {artists}", body = "{album}" } +copy_command = { command = "wl-copy", args = [] } +app_refresh_duration_in_ms = 32 +playback_refresh_duration_in_ms = 0 +cover_image_refresh_duration_in_ms = 2000 +page_size_in_rows = 20 +track_table_item_max_len = 32 +enable_media_control = true +enable_streaming = true +enable_cover_image_cache = true +default_device = "tsuki" +play_icon = "▶" +pause_icon = "▌▌" +liked_icon = "♥" +playback_window_position = "Top" +cover_img_width = 5 +cover_img_length = 10 +cover_img_scale = 1.5 +playback_window_width = 6 + +[device] +name = "tsuki" +device_type = "computer" +volume = 100 +bitrate = 320 +audio_cache = true diff --git a/home/spotify/default.nix b/home/spotify/default.nix new file mode 100644 index 0000000..c9cf3ae --- /dev/null +++ b/home/spotify/default.nix @@ -0,0 +1,37 @@ +{pkgs, ...}: { + home.packages = [pkgs.spotify-player]; + xdg.configFile."spotify-player/app.toml" = { + text = '' + theme = "default" + client_id = "bc629e700c1740a28b3f594ef1942eac" + client_port = 8080 + playack_format = "{track} • {artists}\n{album}\n{metadata}" + notify_format = { summary = "{track} • {artists}", body = "{album}" } + copy_command = { command = "wl-copy", args = [] } + app_refresh_duration_in_ms = 32 + playback_refresh_duration_in_ms = 0 + cover_image_refresh_duration_in_ms = 2000 + page_size_in_rows = 20 + track_table_item_max_len = 32 + enable_media_control = true + enable_streaming = true + enable_cover_image_cache = true + default_device = "tsuki" + play_icon = "▶" + pause_icon = "▌▌" + liked_icon = "♥" + playback_window_position = "Top" + cover_img_width = 5 + cover_img_length = 10 + cover_img_scale = 1.5 + playback_window_width = 6 + + [device] + name = "tsuki" + device_type = "computer" + volume = 100 + bitrate = 320 + audio_cache = true + ''; + }; +}