small changes to pomo widget
This commit is contained in:
parent
1431b325c0
commit
9c181c5c70
|
@ -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`.
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue