From 7d211340681231bdcc437b8e21d4879071217fa7 Mon Sep 17 00:00:00 2001 From: Narvin Singh Date: Thu, 31 Dec 2020 13:50:52 -0500 Subject: [PATCH] Feat: Rename module directory to mod This is a breaking change so this will be a new major version. --- README.md | 2 +- avdd | 2 +- {module => mod}/bat | 0 {module => mod}/bl | 0 {module => mod}/cpu | 0 {module => mod}/dt | 0 {module => mod}/mem | 0 {module => mod}/vol-amixer | 0 8 files changed, 2 insertions(+), 2 deletions(-) rename {module => mod}/bat (100%) rename {module => mod}/bl (100%) rename {module => mod}/cpu (100%) rename {module => mod}/dt (100%) rename {module => mod}/mem (100%) rename {module => mod}/vol-amixer (100%) diff --git a/README.md b/README.md index 09f9a11..653a915 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ replaced with underscores. For instance, if your module file is called `weather-wttr`, it should contain a function called `mod_weather_wttr`. This function should print to stdout whatever you want to appear in its section of the status bar (so it should be concise with no newline characters). Then -place your script in the `module` directory. +place your script in the `mod` directory. To include your module output in the status bar, start the daemon with the module list parameter and include the name of your script in the diff --git a/avdd b/avdd index 014976b..702d95f 100755 --- a/avdd +++ b/avdd @@ -43,7 +43,7 @@ DEFAULT_PRE=' ' DEFAULT_SEP_L='| ' DEFAULT_SEP_R=' ' DEFAULT_SUF=' ' -MOD_DIR="$(dirname "$0")"/module +MOD_DIR="$(dirname "$0")"/mod ACTION_DIR=/tmp/avdd ACTION_DIR_LEN=${#ACTION_DIR} diff --git a/module/bat b/mod/bat similarity index 100% rename from module/bat rename to mod/bat diff --git a/module/bl b/mod/bl similarity index 100% rename from module/bl rename to mod/bl diff --git a/module/cpu b/mod/cpu similarity index 100% rename from module/cpu rename to mod/cpu diff --git a/module/dt b/mod/dt similarity index 100% rename from module/dt rename to mod/dt diff --git a/module/mem b/mod/mem similarity index 100% rename from module/mem rename to mod/mem diff --git a/module/vol-amixer b/mod/vol-amixer similarity index 100% rename from module/vol-amixer rename to mod/vol-amixer