diff --git a/options.lua b/options.lua index 8dc154f..c300a84 100644 --- a/options.lua +++ b/options.lua @@ -2,4 +2,5 @@ return { browser="firefox", terminal="alacritty", email="thomas@forgione.fr", + email2="thomas@polymny.studio", } diff --git a/rc.lua b/rc.lua index e6a45a0..bc72027 100644 --- a/rc.lua +++ b/rc.lua @@ -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"}) )