More shortcuts

This commit is contained in:
Thomas Forgione 2023-01-16 09:44:55 +01:00
parent 5cef8f61ea
commit fb8bfa45fb
2 changed files with 14 additions and 4 deletions

View File

@ -2,4 +2,5 @@ return {
browser="firefox",
terminal="alacritty",
email="thomas@forgione.fr",
email2="thomas@polymny.studio",
}

17
rc.lua
View File

@ -408,9 +408,6 @@ globalkeys = awful.util.table.join(
}
end,
{description = "lua execute prompt", group = "awesome"}),
-- Menubar
awful.key({ modkey }, "p", function() menubar.show() end,
{description = "show the menubar", group = "launcher"}),
-- Custom shortcuts
awful.key({ }, "XF86AudioRaiseVolume", function()
@ -577,13 +574,25 @@ globalkeys = awful.util.table.join(
end)
end, {description="Automatically enters the key to type your email", group="shortcuts"}),
awful.key({modkey, "Shift"}, "ù", function()
awful.spawn.easy_async('sleep 0.5', function()
for i = 1, #options.email2 do
os.execute('xdotool type --clearmodifiers ' .. options.email2:sub(i,i))
end
end)
end, {description="Automatically enters the key to type your secondary email", group="shortcuts"}),
awful.key({modkey}, "q", function()
awful.spawn.easy_async("mailspring", function() end)
end, {description="Opens mailspring", group="shortcuts"}),
awful.key({modkey}, "e", function()
awful.spawn.easy_async("emojinput", function() end)
end, {description="Starts emojinput", group="shortcuts"})
end, {description="Starts emojinput", group="shortcuts"}),
awful.key({ modkey }, "p", function()
awful.spawn.easy_async("pavucontrol", function(e) end)
end, {description = "starts pavucontrol", group = "shortcuts"})
)