]> git.rmz.io Git - dotfiles.git/commitdiff
Add diary executable
authorSamir Benmendil <me@rmz.io>
Wed, 1 Feb 2017 00:23:18 +0000 (00:23 +0000)
committerSamir Benmendil <me@rmz.io>
Wed, 1 Feb 2017 00:23:18 +0000 (00:23 +0000)
awesome/bindings.lua
awesome/widgets/pomodoro.lua
bin/diary [new file with mode: 0755]

index 5d9937b32672e33e8fb1f8046ed980a74613e384..47b4288db31315c9c100058b35b99435befe749a 100644 (file)
@@ -102,7 +102,7 @@ globalkeys = awful.util.table.join(globalkeys,
     awful.key({ modkey, "Control" }, "Escape", function () awful.util.spawn("xautolock -locknow") end),
     -- VimWiki
     awful.key({ modkey }, "i", function ()
-        awful.util.spawn("urxvtc -name vimwiki -e vim -c 'call vimwiki#base#goto_index(v:count1)'")
+        awful.spawn(terminal.." -name vimwiki -e vim -c 'call vimwiki#base#goto_index(v:count1)'")
     end)
 )
 
index 3947aed71068ca7edfec32302b8a054a72f8c27d..46ca53855b3b25cc28935e3c14764908afe2f36f 100644 (file)
@@ -20,7 +20,7 @@ pombox:add(pomodoro.widget)
 -- pomodoro:connect_signal("stop_pause",    function () naughty.notify{ text = "stop_pause",    timeout = 10 } end)
 -- pomodoro:connect_signal("start_working", function () naughty.notify{ text = "start_working", timeout = 10 } end)
 pomodoro:connect_signal("start_pause",   function ()
-    awful.spawn(terminal.." -name diary -e vim -c 'call vimwiki#diary#make_note(v:count1)' + -c 'r !date +\" * \\%H:\\%M  \"' -c 'start!'")
+    awful.spawn(terminal.." -name diary -e diary")
 end)
 
 globalkeys = awful.util.table.join(globalkeys,
diff --git a/bin/diary b/bin/diary
new file mode 100755 (executable)
index 0000000..6cd2a7a
--- /dev/null
+++ b/bin/diary
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+name=diary
+
+/usr/bin/urxvt -name $name -e vim \
+    -c "call vimwiki#diary#make_note(v:count1)" \
+    + \
+    -c 'r !date +"\%n== \%H:\%M ==\%n * "' \
+    -c "start!"