Added main script and rc file. Organised Todo list.

This commit is contained in:
Archie Hilton (thytom) 2019-10-21 19:20:09 +01:00
parent a3733553da
commit 858149f3ab
3 changed files with 41 additions and 8 deletions

View file

@ -1,6 +1,17 @@
#+TITLE:TODO.org
* Modules To Do
* Structure
Main shell script, calls each module one by one, in the order specified.
Each module writes to stdout.
/usr/bin/dwmbar
/home/$USER/.config/dwmbar/dwmbarrc
/home/$USER/.config/dwmbar/modules/
* Todo List
Modules:
[ ] - Date
[ ] - Weather
[ ] - Updates
@ -15,10 +26,6 @@
[ ] - Temperature
[ ] - Battery
* Structure
Main shell script, calls each module one by one, in the order specified.
Each module writes to stdout.
/usr/bin/dwmbar
/home/$USER/.config/dwmbar/dwmbarrc
/home/$USER/.config/dwmbar/modules/
Scripts
[ ] - /usr/bin/dwmbar
[ ] - /home/$USER/.config/dwmbarrc

16
dwmbar Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
VERSION="0.0.1"
RC_LOCATION="/home/$USER/.config/dwmbar/dwmbarrc"
if [[ -f $DEFAULT_RC_LOCATION ]]; then
>&2 echo "No dwmbarrc found."
exit 1
fi
print_help(){
echo "dwmbar $VERSION"
}
xsetroot -name "$(exec $RC_LOCATION)"

10
dwmbarrc Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
modules(){
}
run(){
echo "Test"
}
run