From 56b1b2c9c8a6bc3c59330a04401f136dcb26dba1 Mon Sep 17 00:00:00 2001 From: Narvin Singh Date: Mon, 28 Dec 2020 21:58:52 -0500 Subject: [PATCH] Feat: Swap resolution and module list param order --- xrsbd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xrsbd b/xrsbd index fd75241..3563aa0 100755 --- a/xrsbd +++ b/xrsbd @@ -4,15 +4,15 @@ # our code in a function so we can declare all variables local main() { # Customizable configuration constants - local -r DEFAULT_RES=.25 local -r DEFAULT_MOD_LIST='cpu mem bl vol-amixer bat dt' + local -r DEFAULT_RES=.25 local -r DEFAULT_PRE=' ' local -r DEFAULT_SEP_L='| ' local -r DEFAULT_SEP_R=' ' local -r DEFAULT_SUF=' ' - local -r res="${1-${DEFAULT_RES}}" - local -r mod_list="${2-${DEFAULT_MOD_LIST}}" + local -r mod_list="${1-${DEFAULT_MOD_LIST}}" + local -r res="${2:-${DEFAULT_RES}}" local -r pre="${3-${DEFAULT_PRE}}" local -r sep_l="${4-${DEFAULT_SEP_L}}" local -r sep_r="${5-${DEFAULT_SEP_R}}"