diff options
author | Pavel Makhov <pmakhov@touchtunes.com> | 2018-09-22 19:47:43 -0400 |
---|---|---|
committer | Pavel Makhov <pmakhov@touchtunes.com> | 2018-09-22 19:47:43 -0400 |
commit | 9c181c5c7002947c61f0632f8d8d395ac48afa58 (patch) | |
tree | e72fff3322326a1dd29644d834d7098729be02ee /pomodoroarc-widget | |
parent | 1431b325c0bfc43d08b809ed6946ed856b2f59f0 (diff) |
small changes to pomo widget
Diffstat (limited to 'pomodoroarc-widget')
-rw-r--r-- | pomodoroarc-widget/README.md | 16 | ||||
-rw-r--r-- | pomodoroarc-widget/pomodoroarc.lua | 9 |
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", |