From 742dcd46a4d24cbe92cf81fc0f70dfd3232eece5 Mon Sep 17 00:00:00 2001 From: Jiri Konecny Date: Dec 16 2022 21:16:58 +0000 Subject: Enable Sway Live specific configuration files Create symlinks to liveuser sway configuration which will be loaded automatically by /etc/sway/config and used as top preference. --- diff --git a/libexec/livesys/sessions.d/livesys-sway b/libexec/livesys/sessions.d/livesys-sway index c340647..dfa2fd5 100755 --- a/libexec/livesys/sessions.d/livesys-sway +++ b/libexec/livesys/sessions.d/livesys-sway @@ -28,3 +28,9 @@ echo "echo 'Please type liveinst and press Enter to start the installer'" >> /ho # fixing the installer non opening bug # this should ideally go into the /home/liveuser/.profile but SDDM won't source that echo "xhost si:localuser:root" >> /home/liveuser/.bashrc + +# use sway configuration files for live environment +if [ -n "$(ls /usr/share/sway/config.live.d/*.conf 2>/dev/null)" ]; then + mkdir -p /home/liveuser/.config/sway/config.d/ + ln -sf -t /home/liveuser/.config/sway/config.d /usr/share/sway/config.live.d/*.conf; +fi