diff --git a/hosts/canopus/home.nix b/hosts/canopus/home.nix index 7d9dc4a..f71cdb3 100644 --- a/hosts/canopus/home.nix +++ b/hosts/canopus/home.nix @@ -21,6 +21,7 @@ ../../modules/home/discord ../../modules/home/kdeconnect ../../modules/home/obs-studio + ../../modules/home/spotify ]; home.pointerCursor = { @@ -96,7 +97,6 @@ ".config/sops" ".config/obs-studio" ".config/rustdesk" - ".config/spotify" ".local/share/nvim" ".local/share/zsh" ".local/share/zoxide" @@ -104,7 +104,6 @@ ".local/share/GalaxyBudsClient" ".local/share/TelegramDesktop" ".local/state/lazygit" - ".cache/spotify" ]; files = [ ".wakatime.cfg" diff --git a/modules/home/desktop/hyprland/default.nix b/modules/home/desktop/hyprland/default.nix index 0a6c9f8..014d233 100644 --- a/modules/home/desktop/hyprland/default.nix +++ b/modules/home/desktop/hyprland/default.nix @@ -27,6 +27,7 @@ floating_terminal = "wezterm start --class wezterm-floating"; editor = "wezterm -e nvim"; browser = "brave"; + spotify = "wezterm start --class wezterm-floating -e spotify_player"; filemanager = "thunar"; in { #-- Output @@ -150,13 +151,16 @@ "size 800 600, class:org.pulseaudio.pavucontrol" "float, class:com.ghostty.floating" - "size 900 700, class:com.ghostty.floating" + "size 1400 1000, class:com.ghostty.floating" + + "float, class:wezterm-floating" + "size 1400 1000, class:wezterm-floating" "float, class:GalaxyBudsClient" "size 900 700, class:GalaxyBudsClient" "workspace 3 silent, class:(firefox|Brave-browser)" - "workspace 5 silent, class:(discord|Spotify|org.telegram.desktop)" + "workspace 5 silent, class:(discord|org.telegram.desktop)" ]; plugin = { @@ -182,7 +186,7 @@ "SUPER, B, exec, ${browser}" "SUPER, G, exec, GalaxyBudsClient" "SUPER, D, exec, discord" - "SUPER, S, exec, spotify" + "SUPER, S, exec, ${spotify}" "SUPER, V, exec, copyq show" "SUPER_SHIFT, Return, exec, ${floating_terminal}" diff --git a/modules/home/spotify/default.nix b/modules/home/spotify/default.nix new file mode 100644 index 0000000..d8c48ca --- /dev/null +++ b/modules/home/spotify/default.nix @@ -0,0 +1,19 @@ +{ + programs.spotify-player = { + enable = true; + settings = { + theme = "default"; + client_id = "c54c06bacd3642c68d981474dadd3a53"; + login_redirect_uri = "http://127.0.0.1:8989/login"; + device = { + name = "spotify-player"; + device_type = "speaker"; + volume = 100; + bitrate = 320; + audio_cache = false; + normalization = false; + autoplay = false; + }; + }; + }; +}