From ae217c4333c022efd6271756db1d78343e714fc4 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 23 Nov 2022 17:41:13 -0500 Subject: [PATCH] Added -u to update scripts of they get updated and you want to keep your current config. --- i38.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/i38.sh b/i38.sh index 5071120..421ba5f 100755 --- a/i38.sh +++ b/i38.sh @@ -115,10 +115,16 @@ export QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 EOF } +update_scripts() { + cp -rv scripts/ "${i3Path}/" | dialog --backtitle "I38" --progressbox "Updating scripts..." -1 -1 + exit 0 +} + # Array of command line arguments declare -A command=( [h]="This help screen." + [u]="Copy over the latest version of scripts." [x]="Generate ~/.xinitrc and ~/.xprofile." ) @@ -128,6 +134,7 @@ args="${args//[[:space:]]/}" while getopts "${args}" i ; do case "$i" in h) help;; + u) update_scripts;; x) write_xinitrc esac done @@ -187,6 +194,7 @@ cat << EOF > ${i3Path}/config # layout, use the i3-config-wizard # +workspace_layout tabbed # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:monospace 8