Keymapping for generating IMEC TOTP
This commit is contained in:
parent
3ffc1fba3a
commit
79afd5af4a
|
@ -137,6 +137,13 @@ keys.globalkeys = gears.table.join(
|
|||
end,
|
||||
{description = "Open Firefox", group = "launcher"}
|
||||
),
|
||||
-- Generate IMEC TOTP
|
||||
awful.key({modkey}, "i",
|
||||
function()
|
||||
awful.spawn.with_shell("ykman oath accounts code \"Microsoft (IMEC)\" | cut -d ' ' -f 5 | xsel --clipboard")
|
||||
end,
|
||||
{description = "Generate IMEC TOTP", group = "launcher"}
|
||||
),
|
||||
-- Spawn file manager
|
||||
awful.key({modkey}, "a",
|
||||
function()
|
||||
|
@ -261,7 +268,7 @@ keys.globalkeys = gears.table.join(
|
|||
|
||||
awful.key({}, "XF86Calculator",
|
||||
function()
|
||||
awful.util.spawn("rofi -show calc -modi calc -no-show-match -no-sort -calc-command \"echo -n '{result}' | xsel -i\"")
|
||||
awful.util.spawn("rofi -show calc -modi calc -no-show-match -no-sort -calc-command \"echo -n '{result}' | xsel --clipboard\"")
|
||||
end,
|
||||
{description = "Launch the calculator", group = "hotkeys"}
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue