From 6fecd8bb0cae614e983fb3f4c8409fce104d02db Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Tue, 27 Jul 2021 18:39:01 +0300 Subject: [PATCH] Add cantata --- profiles/applications/cantata.nix | 32 +++++++++++++++++++++++++++++ profiles/workspace/sway/default.nix | 1 - roles/desktop.nix | 1 + 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 profiles/applications/cantata.nix 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