From: Samir Benmendil Date: Sun, 23 Oct 2016 23:38:05 +0000 (+0100) Subject: awesome: remove pomodoro X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/12065a8e7c41480688537fc116e7917bf186f279?ds=sidebyside awesome: remove pomodoro --- diff --git a/.gitmodules b/.gitmodules index 80b041d..cbefaf3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,10 +7,6 @@ [submodule "awesome/widgets/net_widgets"] path = awesome/widgets/net_widgets url = git@github.com:Ram-Z/net_widgets.git -[submodule "awesome/widgets/pomodoro"] - path = awesome/widgets/pomodoro - url = git@github.com:/Ram-Z/awesome-pomodoro - branch = module-path [submodule "zsh/lib/zsh-syntax-highlighting"] path = zsh/lib/zsh-syntax-highlighting url = https://github.com/zsh-users/zsh-syntax-highlighting diff --git a/awesome/topbar.lua b/awesome/topbar.lua index 91b04fa..7986af0 100644 --- a/awesome/topbar.lua +++ b/awesome/topbar.lua @@ -89,8 +89,6 @@ for s = 1, screen.count() do local right_layout = wibox.layout.fixed.horizontal() if s == 1 then right_layout:add(wibox.widget.systray()) end right_layout:add(separator) - right_layout:add(require("widgets/pomodoro")) - right_layout:add(separator) right_layout:add(require("widgets/awesompd")) right_layout:add(require("widgets/volume_widget")) if utils.host == "chronos" then diff --git a/awesome/widgets/pomodoro b/awesome/widgets/pomodoro deleted file mode 160000 index a861385..0000000 --- a/awesome/widgets/pomodoro +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a861385355d0ac10091eda49757fc9eda05480a3 diff --git a/awesome/widgets/pomodoro.lua b/awesome/widgets/pomodoro.lua deleted file mode 100644 index 3c7af63..0000000 --- a/awesome/widgets/pomodoro.lua +++ /dev/null @@ -1,22 +0,0 @@ -local pomodoro = require("widgets/pomodoro/init") -local wibox = require("wibox") - --- durations in seconds -pomodoro.short_pause_duration = 5 * 60 -pomodoro.long_pause_duration = 30 * 60 -pomodoro.work_duration = 25 * 60 - --- format string -pomodoro.format = function (t) return " "..t.."" end - -pomodoro.init() - -pombox = wibox.layout.fixed.horizontal() -pombox:add(pomodoro.icon_widget) -pombox:add(pomodoro.widget) - -globalkeys = awful.util.table.join(globalkeys, - awful.key({ modkey, "Shift" }, "p", function() pomodoro:start() end) -) - -return pombox