local hotkeys_popup = require("awful.hotkeys_popup").widget
+local utils = require("utils")
-- Default modkey.
modkey = "Mod4"
awful.key({ }, "F13", function () awful.spawn("ksnapshot") end),
awful.key({ }, "Print", function () awful.spawn("ksnapshot") end),
-- ranger
- awful.key({ modkey }, "r", function () awful.spawn(terminal .. " -e ranger") end),
+ awful.key({ modkey }, "r", function () utils.spawn_terminal("ranger") end),
-- Volume
awful.key({ }, "XF86AudioMute", function () awful.spawn("pulsemixer --toggle-mute") end,
{description = "toggle mute", group = "volume"}),
awful.key({ modkey, "Control" }, "Escape", function () awful.spawn("i3lock -c 000000") end),
-- VimWiki
awful.key({ modkey }, "i", function ()
- awful.spawn(terminal.." -name vimwiki -e vim -c 'call vimwiki#base#goto_index(v:count1)'")
+ utils.spawn_terminal("vim -c 'call vimwiki#base#goto_index(v:count1)'", { instance = "vimwiki"})
end)
)