added moonlight to htpc stack

This commit is contained in:
Carlos Sousa 2024-08-01 22:50:59 +02:00
parent f4653a6ec9
commit 65dccb5880
4 changed files with 34 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

View File

@ -0,0 +1,10 @@
Desktop Entry]
Name=Moonlight
Comment=Stream games and other applications from another PC running Sunshine or GeForce Experience
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=moonlight com.moonlight_stream.Moonlight
Icon=com.moonlight_stream.Moonlight
Terminal=false
Type=Application
Categories=Qt;Game;
Keywords=nvidia;gamestream;stream;sunshine;remote play;
X-Flatpak=com.moonlight_stream.Moonlight

View File

@ -25,6 +25,7 @@
# group: "{{ htpc_main_user }}"
# mode: '0755'
- name: htpc setup | flex-launcher | deploy config.ini template
template:
src: templates/flex-launcher/config.ini.j2
@ -41,12 +42,18 @@
group: "{{ htpc_main_user }}"
mode: '0755'
# flex-launcher extra assets
- name: htpc setup | flex-launcher | copy firefox icon to assets
copy:
src: files/configs/flex-launcher/firefox.png
dest: /usr/share/flex-launcher/assets/icons/firefox.png
# /usr/share/applications
- name: htpc setup | flex-launcher | copy moonlight icon to assets
copy:
src: files/configs/flex-launcher/moonlight.png
dest: /usr/share/flex-launcher/assets/icons/moonlight.png
# /usr/share/applications extra .desktop files
- name: htpc setup | copy retroarch.desktop to /usr/share/applications
copy:
src: files/configs/retroarch/retroarch.desktop
@ -63,6 +70,14 @@
group: root
mode: '0644'
- name: htpc setup | copy moonlight.desktop to /usr/share/applications
copy:
src: files/configs/moonlight/moonlight.desktop
dest: /usr/share/applications/moonlight.desktop
owner: root
group: root
mode: '0644'
- name: htpc setup | set main user dock applications
become: yes

View File

@ -24,7 +24,7 @@ OverlayColor=#000000
OverlayOpacity=30%
[Layout]
MaxButtons=4
MaxButtons=6
#IconSize=256
IconSize=128
IconSpacing=5%
@ -117,11 +117,13 @@ ButtonDPadRight=:right
# Menu configurations
[Main]
Entry1=Kodi;/usr/share/flex-launcher/assets/icons/kodi.png;/usr/share/applications/kodi.desktop
Entry2=RetroArch;/usr/share/flex-launcher/assets/icons/retroarch.png;/usr/share/applications/retroarch.desktop
Entry3=Firefox;/usr/share/flex-launcher/assets/icons/firefox.png;/usr/bin/firefox
#Entry3=Firefox;/usr/share/flex-launcher/assets/icons/firefox.png;/usr/bin/share/applications/firefox.desktop
#Entry3=Steam;/usr/share/flex-launcher/assets/icons/steam.png;/usr/share/applications/steam.desktop;BigPicture
Entry4=System;/usr/share/flex-launcher/assets/icons/system.png;:submenu System
Entry2=Firefox;/usr/share/flex-launcher/assets/icons/firefox.png;/usr/bin/firefox
Entry3=Steam;/usr/share/flex-launcher/assets/icons/steam.png;/usr/share/applications/steam.desktop;BigPicture
Entry4=Moonlight;/usr/share/flex-launcher/assets/icons/moonlight.png;/usr/share/applications/moonlight.desktop
Entry5=RetroArch;/usr/share/flex-launcher/assets/icons/retroarch.png;/usr/share/applications/retroarch.desktop
Entry6=System;/usr/share/flex-launcher/assets/icons/system.png;:submenu System
[System]
Entry1=Shutdown;/usr/share/flex-launcher/assets/icons/system.png;:shutdown