aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-10-21 19:20:09 +0100
committerArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-10-21 19:20:09 +0100
commit858149f3aba1b99c3d554b1885fb4c3a85b21860 (patch)
treeb0833235c92c83ec0c1a33acfec2a17324f72719
parenta3733553dac7f11a309d7bce150d05621178dc94 (diff)
Added main script and rc file. Organised Todo list.
-rw-r--r--TODO.org23
-rwxr-xr-xdwmbar16
-rwxr-xr-xdwmbarrc10
3 files changed, 41 insertions, 8 deletions
diff --git a/TODO.org b/TODO.org
index ab59d74..e6d783a 100644
--- a/TODO.org
+++ b/TODO.org
@@ -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
diff --git a/dwmbar b/dwmbar
new file mode 100755
index 0000000..937ca55
--- /dev/null
+++ b/dwmbar
@@ -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)"
diff --git a/dwmbarrc b/dwmbarrc
new file mode 100755
index 0000000..1601db7
--- /dev/null
+++ b/dwmbarrc
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+modules(){
+}
+
+run(){
+ echo "Test"
+}
+
+run