summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pomodoroarc-widget/README.md16
-rw-r--r--pomodoroarc-widget/pomodoroarc.lua9
2 files changed, 21 insertions, 4 deletions
diff --git a/pomodoroarc-widget/README.md b/pomodoroarc-widget/README.md
new file mode 100644
index 0000000..49b1b2c
--- /dev/null
+++ b/pomodoroarc-widget/README.md
@@ -0,0 +1,16 @@
+# Pomodoro Widget
+
+:construction: This widget is under construction :construction_worker:
+
+## Installation
+
+This widget is based on [@jsspencer](https://github.com/jsspencer)' [pomo](https://github.com/jsspencer/pomo) - a simple pomodoro timer.
+So first install/clone it anywhere you like, then either
+ - in widget's code provide path to the pomo.sh, or
+ - add pomo.sh to the PATH, or
+ - make a soft link in /usr/local/bin/ to it:
+ ```bash
+ sudo ln -sf /opt/pomodoro/pomo.sh /usr/local/bin/pomo
+ ```
+
+Note that by default widget's code expects third way and calls script by `pomo`. \ No newline at end of file
diff --git a/pomodoroarc-widget/pomodoroarc.lua b/pomodoroarc-widget/pomodoroarc.lua
index 5158570..dab8c3a 100644
--- a/pomodoroarc-widget/pomodoroarc.lua
+++ b/pomodoroarc-widget/pomodoroarc.lua
@@ -13,10 +13,10 @@ local watch = require("awful.widget.watch")
local wibox = require("wibox")
local naughty = require("naughty")
-local GET_pomodoro_CMD = "/home/raph/scripts/pomo/pomo.sh clock"
-local PAUSE_pomodoro_CMD = "/home/raph/scripts/pomo/pomo.sh pause"
-local START_pomodoro_CMD = "/home/raph/scripts/pomo/pomo.sh start"
-local STOP_pomodoro_CMD = "/home/raph/scripts/pomo/pomo.sh stop"
+local GET_pomodoro_CMD = "pomo clock"
+local PAUSE_pomodoro_CMD = "pomo pause"
+local START_pomodoro_CMD = "pomo start"
+local STOP_pomodoro_CMD = "pomo stop"
local text = wibox.widget {
id = "txt",
@@ -65,6 +65,7 @@ text.font = "Inconsolata Medium 13"
local workbreak = string.match(stdout, "[ P]?([BW])%d?%d?:%d?%d?")
text.text = pomomin
+-- Helps debugging
--naughty.notify {
--text = pomomin,
--title = "pomodoro debug",