mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2025-03-13 17:09:22 +00:00
Added different config file
This commit is contained in:
parent
9969167112
commit
db37793594
2 changed files with 25 additions and 6 deletions
14
dwmbarrc
14
dwmbarrc
|
@ -15,20 +15,22 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# 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/"
|
MODULES_DIR="/home/$USER/.config/dwmbar/modules/"
|
||||||
CUSTOM_DIR="/home/$USER/.config/dwmbar/modules/custom/"
|
CUSTOM_DIR=$(cat $CONFIG_NAME | grep -E "CUSTOM_DIR" | cut -d '"' -f2)
|
||||||
SEPARATOR=" | "
|
SEPARATOR=$(cat $CONFIG_NAME | grep -E "SEPARATOR" | cut -d '"' -f2)
|
||||||
PADDING="$USER@$HOSTNAME "
|
PADDING=$(cat $CONFIG_NAME | grep -E "PADDING" | cut -d '"' -f2)
|
||||||
|
|
||||||
OUTPUT_CACHE="/home/$USER/.config/dwmbar/.cache/"
|
OUTPUT_CACHE="/home/$USER/.config/dwmbar/.cache/"
|
||||||
OUTPUT=""
|
OUTPUT=""
|
||||||
|
|
||||||
# What modules, in what order
|
# 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
|
# 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
|
INTERNET=1 #0 being true
|
||||||
|
|
||||||
|
|
17
modulesrc
Normal file
17
modulesrc
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# What modules, in what order
|
||||||
|
MODULES="mpd weather volumebar wifi internet cpuload temperatu
|
||||||
|
|
||||||
|
# Modules that require an active internet connection
|
||||||
|
ONLINE_MODULES="weather internet"
|
||||||
|
|
||||||
|
# Delay between showing the status bar
|
||||||
|
DELAY="0.05"
|
||||||
|
|
||||||
|
# Where the custom modules are stored
|
||||||
|
CUSTOM_DIR="/home/$USER/.config/dwmbar/modules/custom/"
|
||||||
|
|
||||||
|
# Separator between modules
|
||||||
|
SEPARATOR=" | "
|
||||||
|
|
||||||
|
# Padding at the end and beggining of the status bar
|
||||||
|
PADDING="$USER@$HOSTNAME "
|
Loading…
Reference in a new issue