move flex-launcher config to template

This commit is contained in:
Carlos Sousa 2024-08-01 20:25:38 +02:00
parent 32c7d71e28
commit 74eb97e88d
4 changed files with 147 additions and 13 deletions

View File

@ -18,6 +18,7 @@ flapak_common_remotes:
# Software to be installed in every system
software_packages_common_present:
- ansible
- btop
- curl
- git
@ -33,6 +34,4 @@ software_packages_common_present:
- tmux
- vim
- vlc
- wget
- wget

View File

@ -7,15 +7,15 @@ VSync=true
OnLaunch=Blank
ResetOnBack=false
MouseSelect=false
InhibitOSScreensaver=true
InhibitOSScreensaver=false
#StartupCmd=
#QuitCmd=
[Background]
Mode=Color
Mode=Slideshow
Color=#000000
#Image=
#SlideshowDirectory=
SlideshowDirectory={{ htpc_shared_directory_background_images }}
#SlideshowImageDuration=30
#SlideshowTransitionTime=3
#ChromaKeyColor=#010101
@ -47,7 +47,7 @@ FillOpacity=25%
OutlineSize=0
OutlineColor=#0000FF
OutlineOpacity=100%
CornerRadius=0
CornerRadius=25
VPadding=30
HPadding=30
@ -59,8 +59,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
@ -118,9 +118,10 @@ ButtonDPadRight=:right
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
Entry3=Sleep;/usr/share/flex-launcher/assets/icons/sleep.png;:sleep

View File

@ -17,9 +17,17 @@
- /home/{{ htpc_main_user }}/.config/flex-launcher/
# .config files
- name: htpc setup | copy flex-launcher config.ini to {{ htpc_main_user }} .config
copy:
src: files/configs/flex-launcher/config.ini
# - name: htpc setup | copy flex-launcher config.ini to {{ htpc_main_user }} .config
# copy:
# src: files/configs/flex-launcher/config.ini
# dest: /home/{{ htpc_main_user }}/.config/flex-launcher/config.ini
# owner: "{{ htpc_main_user }}"
# group: "{{ htpc_main_user }}"
# mode: '0755'
- name: htpc setup | deploy flex-launcher config.ini file
template:
src: templates/flex-launcher/config.ini.j2
dest: /home/{{ htpc_main_user }}/.config/flex-launcher/config.ini
owner: "{{ htpc_main_user }}"
group: "{{ htpc_main_user }}"

View File

@ -0,0 +1,126 @@
# 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=true
OverlayColor=#000000
OverlayOpacity=30%
[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=false
ShowDate=false
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
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