From 6050db3e3888a4604c7a5d80a8a4e626f2946919 Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Mon, 23 Aug 2021 09:35:55 +0200 Subject: [PATCH] More complete sxmo_migrate.sh This add some config file to the check list. It also handle ssh and none mode to check all files. Signed-off-by: Stacy Harper Signed-off-by: Maarten van Gompel --- scripts/core/sxmo_migrate.sh | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/scripts/core/sxmo_migrate.sh b/scripts/core/sxmo_migrate.sh index c0f78dc..e3308b6 100644 --- a/scripts/core/sxmo_migrate.sh +++ b/scripts/core/sxmo_migrate.sh @@ -60,12 +60,27 @@ checkhooks() { fi } +sway() { + defaultconfig /usr/share/sxmo/appcfg/sway_template "$XDG_CONFIG_HOME/sxmo/sway" 744 + defaultconfig /usr/share/sxmo/appcfg/foot.ini "$XDG_CONFIG_HOME/foot/foot.ini" 744 + defaultconfig /usr/share/sxmo/appcfg/mako.conf "$XDG_CONFIG_HOME/mako/config" 744 +} + +xorg() { + defaultconfig /usr/share/sxmo/appcfg/xinit_template "$XDG_CONFIG_HOME/sxmo/xinit" 744 + defaultconfig /usr/share/sxmo/appcfg/dunst.conf "$XDG_CONFIG_HOME/dunst/dunstrc" 744 +} + case "$(sxmo_wm.sh)" in sway) - defaultconfig /usr/share/sxmo/appcfg/sway_template "$XDG_CONFIG_HOME/sxmo/sway" 744 + sway ;; xorg|dwm) - defaultconfig /usr/share/sxmo/appcfg/xinit_template "$XDG_CONFIG_HOME/sxmo/xinit" 744 + xorg + ;; + ssh|none) + sway + xorg ;; esac