diff --git a/profiles/applications/cantata.nix b/profiles/applications/cantata.nix new file mode 100644 index 0000000..e7629a4 --- /dev/null +++ b/profiles/applications/cantata.nix @@ -0,0 +1,32 @@ +{ pkgs, config, ... }: { + home-manager.users.balsoft = { + home.packages = [ pkgs.cantata ]; + wayland.windowManager.sway = { + config = { + assigns."ﱘ" = [{ app_id = "cantata"; }]; + }; + }; + xdg.configFile."cantata/cantata.conf".text = pkgs.my-lib.genIni { + General = { + lyricProviders = "azlyrics.com, chartlyrics.com, lyrics.wikia.com"; + wikipediaLangs = "en:en"; + mpris = "true"; + currentConnection = "Default"; + + version = pkgs.cantata.version; + }; + + AlbumView.fullWidthCover = false; + + Connection-Default = { + host = "localhost"; + passwd = ""; + port = "6600"; + }; + + VolumeControl.control = "mpd"; + }; + }; + + startupApplications = [ "${pkgs.cantata}/bin/cantata" ]; +} diff --git a/profiles/workspace/sway/default.nix b/profiles/workspace/sway/default.nix index b2ea1bb..204fa58 100755 --- a/profiles/workspace/sway/default.nix +++ b/profiles/workspace/sway/default.nix @@ -38,7 +38,6 @@ in { { title = "nheko"; } { title = "Slack.*"; } ]; - "ﱘ" = [{ app_id = "cantata"; }]; }; fonts = { names = [ config.themes.fonts.main.family ]; diff --git a/roles/desktop.nix b/roles/desktop.nix index 21f841f..12df12b 100644 --- a/roles/desktop.nix +++ b/roles/desktop.nix @@ -13,6 +13,7 @@ virtualisation alacritty + cantata emacs firefox geary