i3lock color, kbscan
This commit is contained in:
6
rc.lua
6
rc.lua
@@ -16,6 +16,7 @@ local cyclefocus = require('cyclefocus')
|
|||||||
-- Load Debian menu entries
|
-- Load Debian menu entries
|
||||||
require("debian.menu")
|
require("debian.menu")
|
||||||
|
|
||||||
|
-- 🔌
|
||||||
-- battery meter
|
-- battery meter
|
||||||
local battery_widget = require("battery-widget")
|
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"}} })
|
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
|
-- Create a launcher widget and a main menu
|
||||||
myawesomemenu = {
|
myawesomemenu = {
|
||||||
{ "hotkeys", function() return false, hotkeys_popup.show_help end},
|
{ "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 },
|
{ "edit config", editor_cmd .. " " .. awesome.conffile },
|
||||||
{ "restart wm", awesome.restart },
|
{ "restart wm", awesome.restart },
|
||||||
{ "logout", function() awesome.quit() end},
|
{ "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}
|
{ "shutdown", function() awful.spawn.with_shell("systemctl poweroff") end}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -331,7 +333,7 @@ globalkeys = awful.util.table.join(
|
|||||||
{description = "quit awesome", group = "awesome"}),
|
{description = "quit awesome", group = "awesome"}),
|
||||||
|
|
||||||
-- sb
|
-- 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, }, "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,
|
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"}),
|
{description = "@measuresforjustice.org", group = "launcher"}),
|
||||||
|
|||||||
Reference in New Issue
Block a user