From 83d3b21b7f221c351ad981d63220d6da289eee78 Mon Sep 17 00:00:00 2001 From: julien Date: Thu, 26 Feb 2026 12:15:38 +0100 Subject: [PATCH] fixed config --- README.md | 9 ++++++++- .../.config}/alacritty/alacritty.toml | 0 .../.config}/alacritty/themes/monokai_pro.toml | 0 {usrconfig => skel/.config}/helix/config.toml | 0 {usrconfig => skel/.config}/xfce4/helpers.rc | 0 .../xfce4/xfconf/xfce-perchannel-xml/thunar.xml | 0 .../xfce4/xfconf/xfce-perchannel-xml/xsettings.xml | 0 template-pi.sh | 13 +++++++++++-- 8 files changed, 19 insertions(+), 3 deletions(-) rename {usrconfig => skel/.config}/alacritty/alacritty.toml (100%) rename {usrconfig => skel/.config}/alacritty/themes/monokai_pro.toml (100%) rename {usrconfig => skel/.config}/helix/config.toml (100%) rename {usrconfig => skel/.config}/xfce4/helpers.rc (100%) rename {usrconfig => skel/.config}/xfce4/xfconf/xfce-perchannel-xml/thunar.xml (100%) rename {usrconfig => skel/.config}/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml (100%) diff --git a/README.md b/README.md index fb8bf36..e2f0630 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ # Qubes OS -* template-pi.sh : Default template post-installation script +## template-pi.sh + +Default template post-installation script. + +``` +$ sudo ./template-pi.sh +$ localectl set-locale fr_FR.UTF-8 ### Might be not necessary +``` diff --git a/usrconfig/alacritty/alacritty.toml b/skel/.config/alacritty/alacritty.toml similarity index 100% rename from usrconfig/alacritty/alacritty.toml rename to skel/.config/alacritty/alacritty.toml diff --git a/usrconfig/alacritty/themes/monokai_pro.toml b/skel/.config/alacritty/themes/monokai_pro.toml similarity index 100% rename from usrconfig/alacritty/themes/monokai_pro.toml rename to skel/.config/alacritty/themes/monokai_pro.toml diff --git a/usrconfig/helix/config.toml b/skel/.config/helix/config.toml similarity index 100% rename from usrconfig/helix/config.toml rename to skel/.config/helix/config.toml diff --git a/usrconfig/xfce4/helpers.rc b/skel/.config/xfce4/helpers.rc similarity index 100% rename from usrconfig/xfce4/helpers.rc rename to skel/.config/xfce4/helpers.rc diff --git a/usrconfig/xfce4/xfconf/xfce-perchannel-xml/thunar.xml b/skel/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml similarity index 100% rename from usrconfig/xfce4/xfconf/xfce-perchannel-xml/thunar.xml rename to skel/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml diff --git a/usrconfig/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml b/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml similarity index 100% rename from usrconfig/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml rename to skel/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml diff --git a/template-pi.sh b/template-pi.sh index 5bf0564..4202c2d 100755 --- a/template-pi.sh +++ b/template-pi.sh @@ -1,5 +1,14 @@ #!/bin/bash +# If root +ID=$(id -u) +if [ "$ID" -ne 0 ] +then + echo + echo "Please run as root!" + exit +fi + # RPM Fusion dnf config-manager setopt rpmfusion-free.enabled=1 dnf config-manager setopt rpmfusion-free-updates.enabled=1 @@ -20,8 +29,8 @@ dnf install mozilla-ublock-origin dnf install ffmpeg --allowerasing # User configuration -mkdir -p /rw/usrlocal/etc/skel/.config -cp -r usrconfig/. /rw/usrlocal/etc/skel/.config/ +mkdir -p /etc/skel +cp -r skel/. /etc/skel # Set locale localectl set-locale fr_FR.UTF-8