From 75dde09a96ccb0376b66f42c7b01dfdd1571f61f Mon Sep 17 00:00:00 2001 From: Stephen Byrne Date: Thu, 28 Nov 2019 09:40:28 -0500 Subject: [PATCH] i3lock color, kbscan --- rc.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rc.lua b/rc.lua index 455658f..3d2fb6b 100644 --- a/rc.lua +++ b/rc.lua @@ -16,6 +16,7 @@ local cyclefocus = require('cyclefocus') -- Load Debian menu entries require("debian.menu") +-- 🔌 -- battery meter local battery_widget = require("battery-widget") local battery = battery_widget({adapter = "BAT0",widget_text="${color_on}🔋${color_off}", limits={{10,"red"},{20,"orange"},{100,"white"}} }) @@ -122,10 +123,11 @@ end -- Create a launcher widget and a main menu myawesomemenu = { { "hotkeys", function() return false, hotkeys_popup.show_help end}, + { "kbscan", function() awful.spawn.with_shell("/home/sbyrne/bin/kbscan") end}, { "edit config", editor_cmd .. " " .. awesome.conffile }, { "restart wm", awesome.restart }, { "logout", function() awesome.quit() end}, - { "reboot", function() awful.spawn.with_shell("systemctl restart") end}, + { "reboot", function() awful.spawn.with_shell("systemctl reboot") end}, { "shutdown", function() awful.spawn.with_shell("systemctl poweroff") end} } @@ -331,7 +333,7 @@ globalkeys = awful.util.table.join( {description = "quit awesome", group = "awesome"}), -- sb - awful.key({ modkey, "Shift" }, "l", function () awful.spawn("i3lock") end, {description="lock", group="lock"}), + awful.key({ modkey, "Shift" }, "l", function () awful.spawn("i3lock -c 000000") end, {description="lock", group="lock"}), awful.key({ modkey, }, "y", function () awful.spawn("yubioath-gui") end, {description="yubioath-gui", group="app"}), awful.key({ modkey, }, "F2", function () awful.spawn.with_shell("xdotool sleep 0.25; xdotool key --clearmodifiers --delay 0 m e a s u r e s f o r j u s t i c e period o r g") end, {description = "@measuresforjustice.org", group = "launcher"}),