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