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 <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
Stacy Harper 3 years ago committed by Maarten van Gompel
parent 98c7d1f2d4
commit 6050db3e38
  1. 19
      scripts/core/sxmo_migrate.sh

@ -60,12 +60,27 @@ checkhooks() {
fi 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 case "$(sxmo_wm.sh)" in
sway) sway)
defaultconfig /usr/share/sxmo/appcfg/sway_template "$XDG_CONFIG_HOME/sxmo/sway" 744 sway
;; ;;
xorg|dwm) xorg|dwm)
defaultconfig /usr/share/sxmo/appcfg/xinit_template "$XDG_CONFIG_HOME/sxmo/xinit" 744 xorg
;;
ssh|none)
sway
xorg
;; ;;
esac esac

Loading…
Cancel
Save