requisite changes for awesome-powermenu and awesome-switcherpopup

This commit is contained in:
Izaya 2022-09-08 00:20:00 +10:00
parent 60372b458f
commit 69dfcd1888
2 changed files with 9 additions and 5 deletions

6
.gitmodules vendored
View File

@ -13,6 +13,12 @@
[submodule "awesome-navbar"] [submodule "awesome-navbar"]
path = awesome-navbar path = awesome-navbar
url = https://git.shadowkat.net/izaya/awesome-navbar.git url = https://git.shadowkat.net/izaya/awesome-navbar.git
[submodule "awesome-batterystat"]
path = awesome-batterystat
url = https://git.shadowkat.net/izaya/awesome-batterystat.git
[submodule "awesome-memwidget"]
path = awesome-memwidget
url = https://git.shadowkat.net/izaya/awesome-memwidget.git
[submodule "vkbd"] [submodule "vkbd"]
path = vkbd path = vkbd
url = https://codeberg.org/izaya/vkbd.git url = https://codeberg.org/izaya/vkbd.git

8
rc.lua
View File

@ -97,10 +97,8 @@ end
-- {{{ Widgets and etc -- {{{ Widgets and etc
-- Power menu for
powermenuPopup = powermenu.new()
awful.screen.connect_for_each_screen(function(s) awful.screen.connect_for_each_screen(function(s)
s.powermenu = powermenu.new(s)
s.navbar = navbar.new(s) s.navbar = navbar.new(s)
gears.wallpaper.maximized(beautiful.wallpaper,s,false) gears.wallpaper.maximized(beautiful.wallpaper,s,false)
end) end)
@ -131,8 +129,8 @@ local function client_key(mods, key, cb, opt_desc, opt_group)
end end
global_key({modkey}, "Return", function() awful.spawn(terminal) end, "open a terminal", "launcher") global_key({modkey}, "Return", function() awful.spawn(terminal) end, "open a terminal", "launcher")
global_key({modkey}, "p", function() powermenuPopup:toggle() end, "show power menu", "launcher") global_key({modkey}, "p", function() awful.screen.focused().powermenu:toggle() end, "show power menu", "launcher")
global_key({}, "XF86PowerOff", function() powermenuPopup:toggle() end, "show power menu", "launcher") global_key({}, "XF86PowerOff", function() awful.screen.focused().powermenu:toggle() end, "show power menu", "launcher")
global_key({modkey}, "Space", function() awful.spawn(launcher) end, "Show launcher", "launcher") global_key({modkey}, "Space", function() awful.spawn(launcher) end, "Show launcher", "launcher")
client_key({modkey,"Mod1"},"q",function(c) c:kill() end, "close application","client") client_key({modkey,"Mod1"},"q",function(c) c:kill() end, "close application","client")