diff --git a/tasks/mpd.yml b/tasks/mpd.yml index 242c83f..3aa60ec 100644 --- a/tasks/mpd.yml +++ b/tasks/mpd.yml @@ -43,6 +43,7 @@ - { src: 'templates/mpd/ncmpc.j2', dest: '{{ ncmpc_configuration_dir }}/config' } notify: - stop mpd service +# TODO: install https://aur.archlinux.org/mpd-mpris-bin.git from AUR # Use mpc to control local mpd server. # Use $ mpc add http://{{ mpd_remote_address }}:{{ mpd_remote_stream_port }} # to add the HTTP stream to the playlist. diff --git a/tasks/setup.yml b/tasks/setup.yml index 1b8da9e..f213248 100644 --- a/tasks/setup.yml +++ b/tasks/setup.yml @@ -50,9 +50,9 @@ state: directory - name: copy alacritty configuration - copy: + template: dest: '{{ xdg_config_dir }}/alacritty/alacritty.toml' - src: 'files/alacritty.toml' + src: 'templates/alacritty.j2' - name: enable fstrim timer become: true diff --git a/files/alacritty.toml b/templates/alacritty.j2 similarity index 93% rename from files/alacritty.toml rename to templates/alacritty.j2 index 8512809..79668f4 100644 --- a/files/alacritty.toml +++ b/templates/alacritty.j2 @@ -1,3 +1,12 @@ +[general] +import = [ "{{ xdg_config_dir }}/alacritty/include.toml" ] + +[selection] +save_to_clipboard = true + +[keyboard] +bindings = [{ key = "N", mods = "Control | Shift", action = "SpawnNewInstance" },] + [font] normal = { family = "monospace", style = "Regular" } @@ -50,9 +59,3 @@ normal = { family = "monospace", style = "Regular" } magenta = "#704d68" cyan = "#4d7770" white = "#8e8e8e" - -[selection] -save_to_clipboard = true - -[keyboard] -bindings = [{ key = "N", mods = "Control | Shift", action = "SpawnNewInstance" },]