From 65a142fd38b74909bb9839b292cea3bb4b63ff0c Mon Sep 17 00:00:00 2001 From: Anthony Rose Date: Thu, 3 Oct 2024 11:40:36 +0100 Subject: [PATCH] Add PowerShell icon for launcher https://docs.microsoft.com/de-de/powershell/media/index/ps_black_128.svg --- roles/home-gui/files/pwsh.desktop | 1 + roles/home-gui/files/pwsh.svg | 42 +++++++++++++++++++++++++++++++ roles/home-gui/tasks/dirs.yml | 4 +++ roles/home-gui/tasks/dotfiles.yml | 4 +++ 4 files changed, 51 insertions(+) create mode 100644 roles/home-gui/files/pwsh.svg diff --git a/roles/home-gui/files/pwsh.desktop b/roles/home-gui/files/pwsh.desktop index c359e10..1f2bed0 100644 --- a/roles/home-gui/files/pwsh.desktop +++ b/roles/home-gui/files/pwsh.desktop @@ -3,5 +3,6 @@ Name=Microsoft PowerShell TryExec=/home/acp/.dotnet/tools/pwsh Exec=/home/acp/.dotnet/tools/pwsh Type=Application +Icon=pwsh Terminal=true StartupNotify=true diff --git a/roles/home-gui/files/pwsh.svg b/roles/home-gui/files/pwsh.svg new file mode 100644 index 0000000..b427df2 --- /dev/null +++ b/roles/home-gui/files/pwsh.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/roles/home-gui/tasks/dirs.yml b/roles/home-gui/tasks/dirs.yml index 938f42f..2421da2 100644 --- a/roles/home-gui/tasks/dirs.yml +++ b/roles/home-gui/tasks/dirs.yml @@ -33,3 +33,7 @@ ansible.builtin.file: path: "{{ ansible_env.XDG_CONFIG_HOME }}/fontconfig" state: directory +- name: Create $XDG_DATA_HOME/icons + ansible.builtin.file: + path: "{{ ansible_env.XDG_DATA_HOME }}/icons" + state: directory diff --git a/roles/home-gui/tasks/dotfiles.yml b/roles/home-gui/tasks/dotfiles.yml index a3176d7..06deb04 100644 --- a/roles/home-gui/tasks/dotfiles.yml +++ b/roles/home-gui/tasks/dotfiles.yml @@ -79,3 +79,7 @@ ansible.builtin.copy: src: "pwsh.desktop" dest: "{{ ansible_env.XDG_DATA_HOME }}/applications/pwsh.desktop" +- name: Create $XDG_DATA_HOME/icons/pwsh.svg + ansible.builtin.copy: + src: "pwsh.svg" + dest: "{{ ansible_env.XDG_DATA_HOME }}/icons/pwsh.svg"