diff options
Diffstat (limited to 'dwmbarrc')
| -rwxr-xr-x | dwmbarrc | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -15,20 +15,22 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. -DELAY=0.05 +CONFIG_NAME="modulesrc" + +DELAY=$(cat $CONFIG_NAME | grep -E "DELAY" | cut -d '"' -f2) MODULES_DIR="/home/$USER/.config/dwmbar/modules/" -CUSTOM_DIR="/home/$USER/.config/dwmbar/modules/custom/" -SEPARATOR=" | " -PADDING="$USER@$HOSTNAME " +CUSTOM_DIR=$(cat $CONFIG_NAME | grep -E "CUSTOM_DIR" | cut -d '"' -f2) +SEPARATOR=$(cat $CONFIG_NAME | grep -E "SEPARATOR" | cut -d '"' -f2) +PADDING=$(cat $CONFIG_NAME | grep -E "PADDING" | cut -d '"' -f2) OUTPUT_CACHE="/home/$USER/.config/dwmbar/.cache/" OUTPUT="" # What modules, in what order -MODULES="mpd weather volumebar wifi internet cpuload temperature battery date time" +MODULES=$(cat $CONFIG_NAME | grep -E "MODULES" | cut -d '"' -f2) # Modules that require an active internet connection -ONLINE_MODULES="weather internet" +ONLINE_MODULES=$(cat $CONFIG_NAME | grep -E "ONLINE_MODULES" | cut -d '"' -f2) INTERNET=1 #0 being true |
