configure-stormux/configure-stormux.sh

61 lines
1.8 KiB
Bash
Raw Normal View History

2020-06-02 19:20:40 -04:00
#!/bin/bash
# Configure Stormux
# A script to configure the system for new users.
#
# Copyright 2020, Storm Dragon, <storm_dragon@linux-a11y.org>
#
# This is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3, or (at your option) any later
# version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this package; see the file COPYING. If not, write to the Free
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
#
#--code--
2021-10-18 00:46:11 -04:00
# Include functions common to all operations
source .includes/functions.sh
# Include the dialog based UI
source .includes/ui.sh
2020-06-02 19:20:40 -04:00
2021-10-18 00:46:11 -04:00
# Make sure basic xdg directory structure is in place:
if [[ ! -d ~/Desktop ]]; then
xdg-user-dirs-update
2020-06-02 19:20:40 -04:00
fi
2021-10-18 00:46:11 -04:00
while [[ "$choice" != "Exit" ]]; do
case "$choice" in
"Change username")
./.includes/chuser.sh $(inputbox "Please enter the new username, letters, dashes, and underscores only.")
restart
;;
2021-10-18 02:06:41 -04:00
"Install Mate Desktop")
source .includes/gui.sh mate
2021-10-18 02:06:41 -04:00
;;
"Install Ratpoison Windowmanager")
source .includes/gui.sh ratpoison
;;
"Set up gaming")
source .includes/gaming.sh
2021-10-18 02:06:41 -04:00
;;
2021-10-18 00:46:11 -04:00
esac
choice="$(menulist \
"Change username" \
2021-10-18 02:06:41 -04:00
"Install Mate Desktop" \
"Install Ratpoison Windowmanager" \
2021-10-18 00:46:11 -04:00
"Set up gaming" \
"Exit" \
)"
done
2020-06-02 19:20:40 -04:00
exit 0