From 57d1ac12ff86fd1e766906871e959379d5a71687 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 28 Aug 2020 13:23:37 -0300 Subject: Keys: kvmx poweroff bindings --- config.dot/awesome.link/keys.lua | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/config.dot/awesome.link/keys.lua b/config.dot/awesome.link/keys.lua index 655a2e8..46117ee 100644 --- a/config.dot/awesome.link/keys.lua +++ b/config.dot/awesome.link/keys.lua @@ -65,7 +65,7 @@ globalkeys = awful.util.table.join(root.keys(), awful.key({ modkey, "" }, "Down", function () awful.spawn("kvmx-spice-paste") end, {description = "kvmx-paste", group = "client"}), --awful.key({ modkey, "" }, "Down", function () awful.spawn("terminal kvmx-clipboard") end, {description = "kvmx-clipboard", group = "client"}), - -- Virtual environments + -- Virtual environments: powerup awful.key({ modkey, "Control" }, "a", function () awful.spawn("kvmx up tails") end, {description = "vm: tails", group = "client"}), awful.key({ modkey, "Control" }, "b", function () awful.spawn("kvmx up bankline") end, {description = "vm: bankline", group = "client"}), awful.key({ modkey, "Control" }, "c", function () awful.spawn("kvmx disposable buster-desktop") end, {description = "vm: buster-desktop disposable", group = "client"}), @@ -82,6 +82,8 @@ globalkeys = awful.util.table.join(root.keys(), awful.key({ modkey, "Control" }, "v", function () awful.spawn("kvmx disposable vpn") end, {description = "vm: vpn disposable", group = "client"}), awful.key({ modkey, "Control" }, "x", function () awful.spawn("kvmx disposable tor") end, {description = "vm: tor disposable", group = "client"}), awful.key({ modkey, "Control" }, "w", function () awful.spawn("kvmx up web") end, {description = "vm: web", group = "client"}), + + -- Virtual environments: suspend awful.key({ modkey, "Shift" }, "a", function () awful.spawn("kvmx suspend tails") end, {description = "vm: down: tails", group = "client"}), awful.key({ modkey, "Shift" }, "b", function () awful.spawn("kvmx suspend bankline") end, {description = "vm: down: bankline", group = "client"}), awful.key({ modkey, "Shift" }, "d", function () awful.spawn("kvmx suspend doc") end, {description = "vm: down: doc", group = "client"}), @@ -94,7 +96,22 @@ globalkeys = awful.util.table.join(root.keys(), awful.key({ modkey, "Shift" }, "s", function () awful.spawn("kvmx suspend sunny") end, {description = "vm: down: sunny", group = "client"}), --awful.key({ modkey, "Shift" }, "t", function () awful.spawn("kvmx suspend tor") end, {description = "vm: down: tor", group = "client"}), awful.key({ modkey, "Shift" }, "v", function () awful.spawn("kvmx suspend vnc") end, {description = "vm: down: vnc", group = "client"}), - awful.key({ modkey, "Shift" }, "w", function () awful.spawn("kvmx suspend web") end, {description = "vm: down: web", group = "client"}) + awful.key({ modkey, "Shift" }, "w", function () awful.spawn("kvmx suspend web") end, {description = "vm: down: web", group = "client"}), + + -- Virtual environments: poweroff + awful.key({ modkey, "Mod1" }, "a", function () awful.spawn("kvmx poweroff tails") end, {description = "vm: down: tails", group = "client"}), + awful.key({ modkey, "Mod1" }, "b", function () awful.spawn("kvmx poweroff bankline") end, {description = "vm: down: bankline", group = "client"}), + awful.key({ modkey, "Mod1" }, "d", function () awful.spawn("kvmx poweroff doc") end, {description = "vm: down: doc", group = "client"}), + awful.key({ modkey, "Mod1" }, "e", function () awful.spawn("kvmx poweroff test") end, {description = "vm: down: test", group = "client"}), + awful.key({ modkey, "Mod1" }, "f", function () awful.spawn("kvmx poweroff funny") end, {description = "vm: down: funny", group = "client"}), + awful.key({ modkey, "Mod1" }, "k", function () awful.spawn("kvmx poweroff work") end, {description = "vm: down: work", group = "client"}), + awful.key({ modkey, "Mod1" }, "m", function () awful.spawn("kvmx poweroff messenger") end, {description = "vm: down: messenger", group = "client"}), + awful.key({ modkey, "Mod1" }, "o", function () awful.spawn("kvmx poweroff messenger-old") end, {description = "vm: down: messenger-old", group = "client"}), + awful.key({ modkey, "Mod1" }, "p", function () awful.spawn("kvmx poweroff shopping") end, {description = "vm: down: shopping", group = "client"}), + awful.key({ modkey, "Mod1" }, "s", function () awful.spawn("kvmx poweroff sunny") end, {description = "vm: down: sunny", group = "client"}), + --awful.key({ modkey, "Mod1" }, "t", function () awful.spawn("kvmx poweroff tor") end, {description = "vm: down: tor", group = "client"}), + awful.key({ modkey, "Mod1" }, "v", function () awful.spawn("kvmx poweroff vnc") end, {description = "vm: down: vnc", group = "client"}), + awful.key({ modkey, "Mod1" }, "w", function () awful.spawn("kvmx poweroff web") end, {description = "vm: down: web", group = "client"}) ) -- Set keys -- cgit v1.2.3