From 9c181c5c7002947c61f0632f8d8d395ac48afa58 Mon Sep 17 00:00:00 2001 From: Pavel Makhov Date: Sat, 22 Sep 2018 19:47:43 -0400 Subject: small changes to pomo widget --- pomodoroarc-widget/README.md | 16 ++++++++++++++++ pomodoroarc-widget/pomodoroarc.lua | 9 +++++---- 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 pomodoroarc-widget/README.md (limited to 'pomodoroarc-widget') 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", -- cgit v1.2.3