From 1be56e4fc00c82dcbf1078943854325aca4c545a Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 10 Apr 2022 19:23:48 -0400 Subject: [PATCH] Add irc option for help --- .includes/irc.sh | 18 ++++++++++++++++++ configure-stormux.sh | 4 ++++ 2 files changed, 22 insertions(+) create mode 100755 .includes/irc.sh diff --git a/.includes/irc.sh b/.includes/irc.sh new file mode 100755 index 0000000..358d8aa --- /dev/null +++ b/.includes/irc.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Make sure irssi is installed +if ! command -v irssi &> /dev/null ; then + install_package irssi | dialog --progressbox "Installing irssi..." -1 -1 +fi + +# check for Stormux specific irssi config +if [[ ! -d ~/.stormux_irssi ]]; then + { fileName="$(mktemp --suffix .txz)" + wget -O "$fileName" "https://stormux.org/downloads/.stormux_irssi.txz" + tar xf "$fileName" -C ~/; } | dialog --progressbox "Configuring irssi..." -1 -1 +fi + +# Launch irssi +irssi --home ~/.stormux_irssi + +exit 0 diff --git a/configure-stormux.sh b/configure-stormux.sh index e804b56..9f9cade 100755 --- a/configure-stormux.sh +++ b/configure-stormux.sh @@ -77,6 +77,9 @@ while [[ "$choice" != "Exit" ]]; do "Set timezone") source .includes/timezone.sh ;; + "Get help on IRC") + source .includes/irc.sh + ;; "Update configure-stormux") sudo git pull exit $? @@ -92,6 +95,7 @@ while [[ "$choice" != "Exit" ]]; do "Screen reader" \ "Set up gaming" \ "Set timezone" \ + "Get help on IRC" \ "Update configure-stormux" \ )" || break done