Better xdotool

This commit is contained in:
Thomas Forgione 2024-10-11 20:47:50 +02:00
parent d986312dd4
commit 3bf01d1b04
1 changed files with 2 additions and 6 deletions

8
rc.lua
View File

@ -605,17 +605,13 @@ globalkeys = awful.util.table.join(
awful.key({modkey, "Shift"}, "m", function()
awful.spawn.easy_async('sleep 0.5', function()
for i = 1, #options.email do
os.execute('xdotool type --clearmodifiers ' .. options.email:sub(i,i))
end
os.execute('xdotool type --clearmodifiers ' .. options.email)
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
os.execute('xdotool type --clearmodifiers ' .. options.email2)
end)
end, {description="Automatically enters the key to type your secondary email", group="shortcuts"}),