altkey = "Mod1"
-- Mouse bindings {{{1
-root.buttons(awful.util.table.join(
+root.buttons(gears.table.join(
awful.button({ }, 3, function () mymainmenu:toggle() end)
))
-- Global Keys {{{1
-globalkeys = awful.util.table.join(globalkeys,
+globalkeys = gears.table.join(globalkeys,
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
{description="show help", group="awesome"}),
awful.key({ modkey, }, "Left", awful.tag.viewprev,
prompt = "Run Lua code: ",
textbox = awful.screen.focused().mypromptbox.widget,
exe_callback = awful.util.eval,
- history_path = awful.util.get_cache_dir() .. "/history_eval"
+ history_path = gears.filesystem.get_cache_dir() .. "/history_eval"
}
end,
{description = "lua execute prompt", group = "awesome"}),
)
-- Client keys {{{1
-clientkeys = awful.util.table.join(
+clientkeys = gears.table.join(
awful.key({ modkey, }, "f",
function (c)
c.fullscreen = not c.fullscreen
-- Be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, 9 do
- globalkeys = awful.util.table.join(globalkeys,
+ globalkeys = gears.table.join(globalkeys,
-- View tag only.
awful.key({ modkey }, "#" .. i + 9,
function ()
end
-- Client Buttons {{{1
-clientbuttons = awful.util.table.join(
+clientbuttons = gears.table.join(
awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
awful.button({ modkey }, 1, awful.mouse.client.move),
awful.button({ modkey }, 3, awful.mouse.client.resize))
-- Variable definitions {{{1
-- Themes define colours, icons, font and wallpapers.
-beautiful.init(awful.util.getdir("config").."/themes/mlp/theme.lua")
+beautiful.init(gears.filesystem.get_dir("config").."/themes/mlp/theme.lua")
-- This is used later as the default terminal and editor to run.
terminal = "urxvtc"
local theme = {}
local awful = require("awful")
-theme.path = awful.util.getdir("config").."/themes/mlp"
+theme.path = gears.filesystem.get_dir("config").."/themes/mlp"
theme.font = "Droid Sans 8"
theme = {}
-local themes = awful.util.getdir("config").."/themes/shattered"
+local themes = gears.filesystem.get_dir("config").."/themes/shattered"
theme.font = "sans 8"
-- Wibox {{{1
-- Create a wibox for each screen and add it
-local taglist_buttons = awful.util.table.join(
+local taglist_buttons = gears.table.join(
awful.button({ }, 1, function(t) t:view_only() end),
awful.button({ modkey }, 1, function(t)
if client.focus then
awful.button({ }, 5, function(t) awful.tag.viewprev(t.screen) end)
)
-local tasklist_buttons = awful.util.table.join(
+local tasklist_buttons = gears.table.join(
awful.button({ }, 1, function (c)
if c == client.focus then
c.minimized = true
-- Create an imagebox widget which will contains an icon indicating which layout we're using.
-- We need one layoutbox per screen.
s.mylayoutbox = awful.widget.layoutbox(s)
- s.mylayoutbox:buttons(awful.util.table.join(
+ s.mylayoutbox:buttons(gears.table.join(
awful.button({ }, 1, function () awful.layout.inc( 1) end),
awful.button({ }, 3, function () awful.layout.inc(-1) end),
awful.button({ }, 4, function () awful.layout.inc( 1) end),
end
function utils.rules.append(rules)
- awful.rules.rules = awful.util.table.join(awful.rules.rules, rules)
+ awful.rules.rules = gears.table.join(awful.rules.rules, rules)
end
function utils.globalkeys.append(keys)
- globalkeys = awful.util.table.join(globalkeys, keys)
+ globalkeys = gears.table.join(globalkeys, keys)
end
function utils.has_battery()
calwidget:connect_signal("mouse::enter", function () calendar:show(0) end)
calwidget:connect_signal("mouse::leave", function () calendar:hide() end)
-calwidget:buttons(awful.util.table.join(
+calwidget:buttons(gears.table.join(
awful.button({ }, 1, function () calendar:show(-1) end),
awful.button({ }, 3, function () calendar:show( 1) end),
awful.button({ }, 4, function () calendar:show(-1) end),
-Subproject commit a81f1f27ef1d2c1c8e4c062f3993bab8cd4706a2
+Subproject commit ef2d060a154198db7f4612c1d861168c1e1d10e3
awful.spawn(terminal.." -name diary -e diary")
end)
-globalkeys = awful.util.table.join(globalkeys,
+globalkeys = gears.table.join(globalkeys,
awful.key({ modkey, "Shift" }, "p", function() pomodoro:toggle() end)
)
vicious.register(volwidget, vicious.contrib.pulse, "$1", 1, device)
-- Mouse bindings
-volwidget:buttons(awful.util.table.join( awful.button({ }, 1, function () utils.run_or_kill("kmix") end),
+volwidget:buttons(gears.table.join( awful.button({ }, 1, function () utils.run_or_kill("kmix") end),
awful.button({ }, 2,
function ()
vicious.contrib.pulse.toggle(device)
vicious.register(volwidget, vicious.contrib.pulse, '<span font="Symbola 12">🔊</span> '.."$1", 1, device)
-- Mouse bindings
-volwidget:buttons(awful.util.table.join(
+volwidget:buttons(gears.table.join(
awful.button({ }, 1,
function ()
utils.run_or_kill("urxvt -name pulsemixer -e pulsemixer", {class = "urxvt", instance = "pulsemixer"})