add pip, configure dock, improve deploy flex-launcher

This commit is contained in:
Carlos Sousa 2024-08-01 21:57:55 +02:00
parent 1b0bbf34ea
commit f4ddfb3b4f
6 changed files with 31 additions and 152 deletions

View File

@ -6,6 +6,7 @@
# Common package installation
- import_tasks: software/packages_apt.yml
- import_tasks: software/packages_pip.yml
# Common system setup tasks
- import_tasks: system_setup/security_updates.yml

View File

@ -0,0 +1,6 @@
- name: system setup | common packages | install pip
pip:
name: "{{ software_pip_common_present }}"
state: present
when: software_pip_common_present is defined
tags: common, software

View File

@ -1,127 +0,0 @@
# Flex Launcher v2.1 sample configuration file
# For documentation of these settings, visit: https://complexlogic.github.io/flex-launcher/configuration
[General]
DefaultMenu=Main
VSync=true
#FPSLimit=
OnLaunch=Blank
ResetOnBack=false
MouseSelect=false
InhibitOSScreensaver=false
#StartupCmd=
#QuitCmd=
[Background]
Mode=Slideshow
Color=#000000
#Image=
SlideshowDirectory={{ htpc_shared_directory_background_images }}
#SlideshowImageDuration=30
#SlideshowTransitionTime=3
#ChromaKeyColor=#010101
Overlay=false
OverlayColor=#000000
OverlayOpacity=50%
[Layout]
MaxButtons=4
IconSize=256
IconSpacing=5%
VCenter=50%
[Titles]
Enabled=true
Font=/usr/share/flex-launcher/assets/fonts/OpenSans-Regular.ttf
FontSize=36
Color=#FFFFFF
Opacity=100%
Shadows=false
ShadowColor=#000000
OversizeMode=Shrink
Padding=20
[Highlight]
Enabled=true
FillColor=#FFFFFF
FillOpacity=25%
OutlineSize=0
OutlineColor=#0000FF
OutlineOpacity=100%
CornerRadius=25
VPadding=30
HPadding=30
[Scroll Indicators]
Enabled=true
FillColor=#FFFFFF
OutlineSize=0
OutlineColor=#000000
Opacity=100%
[Clock]
Enabled=true
ShowDate=true
Alignment=Left
Font=/usr/share/flex-launcher/assets/fonts/SourceSansPro-Regular.ttf
FontSize=50
FontColor=#FFFFFF
Shadows=false
ShadowColor=#000000
Margin=5%
Opacity=100%
TimeFormat=Auto
DateFormat=Auto
IncludeWeekday=true
[Screensaver]
Enabled=false
IdleTime=300
Intensity=70%
PauseSlideshow=true
[Hotkeys]
# Esc to quit
Hotkey1=#1B;:quit
[Gamepad]
Enabled=false
DeviceIndex=-1
#ControllerMappingsFile=
LStickX-=:left
LStickX+=:right
#LStickY-=
#LStickY+=
#RStickX-=
#RStickX+=
#RStickY-=
#RStickY+=
#LTrigger=
#RTrigger=
ButtonA=:select
ButtonB=:back
#ButtonX=
#ButtonY=
#ButtonBack=
#ButtonGuide=
#ButtonStart=
#ButtonLeftStick=
#ButtonRightStick=
#ButtonLeftShoulder=
#ButtonRightShoulder=
#ButtonDPadUp=
#ButtonDPadDown=
ButtonDPadLeft=:left
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=Steam;/usr/share/flex-launcher/assets/icons/steam.png;/usr/share/applications/steam.desktop;BigPicture
Entry3=Firefox;/usr/share/flex-launcher/assets/icons/steam.png;/usr/bin/share/applications/firefox.desktop
Entry4=System;/usr/share/flex-launcher/assets/icons/system.png;:submenu System
[System]
Entry1=Shutdown;/usr/share/flex-launcher/assets/icons/system.png;:shutdown
Entry2=Restart;/usr/share/flex-launcher/assets/icons/restart.png;:restart
Entry3=Sleep;/usr/share/flex-launcher/assets/icons/sleep.png;:sleep

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -25,7 +25,7 @@
# group: "{{ htpc_main_user }}"
# mode: '0755'
- name: htpc setup | deploy flex-launcher config.ini file
- name: htpc setup | flex-launcher | deploy config.ini template
template:
src: templates/flex-launcher/config.ini.j2
dest: /home/{{ htpc_main_user }}/.config/flex-launcher/config.ini
@ -33,7 +33,7 @@
group: "{{ htpc_main_user }}"
mode: '0755'
- name: htpc setup | copy flex-launcher.desktop to autostart directory
- name: htpc setup | flex-launcher | copy .desktop to autostart directory
copy:
src: files/configs/flex-launcher/flex-launcher.desktop
dest: /home/{{ htpc_main_user }}/.config/autostart/flex-launcher.desktop
@ -41,24 +41,10 @@
group: "{{ htpc_main_user }}"
mode: '0755'
# Desktop
- name: htpc setup | copy flex-launcher.desktop to desktop
- name: htpc setup | flex-launcher | copy firefox icon to assets
copy:
src: files/configs/flex-launcher/flex-launcher.desktop
dest: /home/{{ htpc_main_user }}/Desktop/flex-launcher.desktop
owner: "{{ htpc_main_user }}"
group: "{{ htpc_main_user }}"
mode: '0755'
- name: htpc setup | copy retroarch.desktop to desktop
copy:
src: files/configs/retroarch/retroarch.desktop
dest: /home/{{ htpc_main_user }}/Desktop/retroarch.desktop
owner: "{{ htpc_main_user }}"
group: "{{ htpc_main_user }}"
mode: '0755'
src: files/configs/flex-launcher/firefox.png
dest: /usr/share/flex-launcher/assets/icons/firefox.png
# /usr/share/applications
- name: htpc setup | copy retroarch.desktop to /usr/share/applications
@ -75,4 +61,14 @@
dest: /usr/share/applications/kodi.desktop
owner: root
group: root
mode: '0644'
mode: '0644'
- name: htpc setup | set main user dock applications
become: yes
become_user: "{{ htpc_main_user }}"
community.general.dconf:
key: "/org/gnome/shell/favorite-apps"
value: "['pop-cosmic-launcher.desktop', 'pop-cosmic-applications.desktop', 'flex-launcher.desktop', 'firefox.desktop', 'org.gnome.Nautilus.desktop', 'org.gnome.Terminal.desktop', 'gnome-control-center.desktop']"
state: present

View File

@ -25,7 +25,8 @@ OverlayOpacity=30%
[Layout]
MaxButtons=4
IconSize=256
#IconSize=256
IconSize=128
IconSpacing=5%
VCenter=50%
@ -59,8 +60,8 @@ OutlineColor=#000000
Opacity=100%
[Clock]
Enabled=false
ShowDate=false
Enabled=true
ShowDate=true
Alignment=Left
Font=/usr/share/flex-launcher/assets/fonts/SourceSansPro-Regular.ttf
FontSize=50
@ -69,8 +70,8 @@ Shadows=false
ShadowColor=#000000
Margin=5%
Opacity=100%
TimeFormat=Auto
DateFormat=Auto
TimeFormat=24hr
DateFormat=Little
IncludeWeekday=true
[Screensaver]
@ -117,6 +118,8 @@ ButtonDPadRight=:right
[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