Refactor for use with Hyprland

This commit is contained in:
Oliver Traber 2024-02-25 20:30:31 +01:00
parent 67f4db010d
commit e38ba9220b
Signed by: Bluemedia
GPG key ID: C0674B105057136C
26 changed files with 457 additions and 398 deletions

View file

@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Spotify
GenericName=Music Player
Icon=spotify-client
TryExec=spotify
Exec=spotify --enable-features=UseOzonePlatform --ozone-platform=wayland --uri=%U
Terminal=false
MimeType=x-scheme-handler/spotify;
Categories=Audio;Music;Player;AudioVideo;
StartupWMClass=spotify

View file

@ -0,0 +1,31 @@
- name: Add Spotify repository
become: yes
deb822_repository:
name: spotify
types: deb
uris: http://repository.spotify.com
suites: stable
components: non-free
signed_by: https://download.spotify.com/debian/pubkey_6224F9941A8AA6D1.gpg
state: present
enabled: yes
- name: Install packages
become: yes
apt:
state: latest
update_cache: true
install_recommends: false
name:
- spotify-client
- name: Ensure that directory for desktop entries exists
file:
path: "{{ ansible_env.HOME }}/.local/share/applications"
recurse: yes
state: directory
- name: Create Spotify desktop entry
copy:
src: "{{ role_path }}/files/spotify.desktop"
dest: "{{ ansible_env.HOME }}/.local/share/applications/spotify.desktop"