From 858149f3aba1b99c3d554b1885fb4c3a85b21860 Mon Sep 17 00:00:00 2001 From: "Archie Hilton (thytom)" Date: Mon, 21 Oct 2019 19:20:09 +0100 Subject: Added main script and rc file. Organised Todo list. --- TODO.org | 23 +++++++++++++++-------- dwmbar | 16 ++++++++++++++++ dwmbarrc | 10 ++++++++++ 3 files changed, 41 insertions(+), 8 deletions(-) create mode 100755 dwmbar create mode 100755 dwmbarrc 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 -- cgit v1.2.3