Better xdotool
This commit is contained in:
parent
d986312dd4
commit
3bf01d1b04
8
rc.lua
8
rc.lua
|
@ -605,17 +605,13 @@ globalkeys = awful.util.table.join(
|
||||||
|
|
||||||
awful.key({modkey, "Shift"}, "m", function()
|
awful.key({modkey, "Shift"}, "m", function()
|
||||||
awful.spawn.easy_async('sleep 0.5', function()
|
awful.spawn.easy_async('sleep 0.5', function()
|
||||||
for i = 1, #options.email do
|
os.execute('xdotool type --clearmodifiers ' .. options.email)
|
||||||
os.execute('xdotool type --clearmodifiers ' .. options.email:sub(i,i))
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
end, {description="Automatically enters the key to type your email", group="shortcuts"}),
|
end, {description="Automatically enters the key to type your email", group="shortcuts"}),
|
||||||
|
|
||||||
awful.key({modkey, "Shift"}, "ù", function()
|
awful.key({modkey, "Shift"}, "ù", function()
|
||||||
awful.spawn.easy_async('sleep 0.5', function()
|
awful.spawn.easy_async('sleep 0.5', function()
|
||||||
for i = 1, #options.email2 do
|
os.execute('xdotool type --clearmodifiers ' .. options.email2)
|
||||||
os.execute('xdotool type --clearmodifiers ' .. options.email2:sub(i,i))
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
end, {description="Automatically enters the key to type your secondary email", group="shortcuts"}),
|
end, {description="Automatically enters the key to type your secondary email", group="shortcuts"}),
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue