diff --git a/rc.lua b/rc.lua index 0620afd..fcb90c3 100644 --- a/rc.lua +++ b/rc.lua @@ -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"}),