mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-21 18:12:53 +00:00
Updated TODO, and fixed installation script
This commit is contained in:
parent
71c3c2fc73
commit
65dd359278
4 changed files with 10 additions and 5 deletions
5
TODO.org
5
TODO.org
|
@ -16,10 +16,12 @@ Modules:
|
|||
- Disk Usage
|
||||
- Mail
|
||||
- CPU Usage
|
||||
- Network
|
||||
- Volume Bar
|
||||
- Backlight
|
||||
- Memory Usage
|
||||
|
||||
Finished Modules:
|
||||
- Network
|
||||
- Volume
|
||||
- Battery
|
||||
- Temperature
|
||||
|
@ -30,4 +32,5 @@ Finished Modules:
|
|||
- Date
|
||||
|
||||
Scripts
|
||||
- Individual module delays.
|
||||
- Modules that don't output anything shouldn't get a separator.
|
||||
|
|
2
dwmbar
2
dwmbar
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
VERSION="0.0.1"
|
||||
|
||||
RC_LOCATION="./dwmbarrc"
|
||||
RC_LOCATION="/home/$USER/.config/dwmbar/dwmbarrc"
|
||||
|
||||
if [[ -f $DEFAULT_RC_LOCATION ]]; then
|
||||
>&2 echo "No dwmbarrc found."
|
||||
|
|
4
dwmbarrc
4
dwmbarrc
|
@ -2,8 +2,8 @@
|
|||
|
||||
# Example file, designed to be edited.
|
||||
|
||||
DELAY=5
|
||||
MODULES_DIR="modules/"
|
||||
|
||||
SEPARATOR=" | "
|
||||
|
||||
MODULES="wifi internet bluetooth volume temperature date time battery"
|
||||
|
@ -17,8 +17,8 @@ run_modules(){
|
|||
|
||||
run(){
|
||||
run_modules
|
||||
sleep 5; # Delays script before it's called again
|
||||
echo $OUTPUT
|
||||
sleep $DELAY;
|
||||
}
|
||||
|
||||
run
|
||||
|
|
|
@ -11,10 +11,12 @@ fi
|
|||
|
||||
install()
|
||||
{
|
||||
cp "./dwmbar /usr/bin/dwmbar"
|
||||
cp "./dwmbar" "/usr/bin/dwmbar"
|
||||
|
||||
mkdir -p "$CONFIG_DIR"
|
||||
|
||||
[[ ! -f "$MODULES_DIR" ]] && cp -r "./modules" "$CONFIG_DIR/modules"
|
||||
[[ ! -f "$DWMBARRC" ]] && cp "./dwmbarrc" "$DWMBARRC"
|
||||
}
|
||||
|
||||
install
|
||||
|
|
Loading…
Reference in a new issue