added powermenu

This commit is contained in:
Rene Kievits
2021-11-06 04:57:15 +01:00
parent 7843046d5b
commit b73cfe028a
35 changed files with 1060 additions and 251 deletions

View File

@@ -19,7 +19,7 @@ M.session = {
}
M.applications = {
{ "Brave", "brave-browser" },
{ "Firefox", "firefox" },
{ "VS Code", "code" },
{ "Blender", "blender" },
{ "Steam", "steam" },

View File

@@ -37,13 +37,14 @@ function _M.get(clientkeys, clientbuttons)
"pop-up"
}
},
properties = { floating = true }
properties = { floating = true, titlebars_enabled = true }
},
{
id = "titlebar",
rule_any = {
type = { "normal", "dialog" }
type = { "normal", "dialog", "modal", "utility" }
},
properties = { titlebars_enabled = false }
properties = { titlebars_enabled = true }
}
}
return rules

View File

@@ -1,7 +1,6 @@
-- Awesome Libs
local awful = require("awful")
local beautiful = require("beautiful")
local naughty = require("naughty")
client.connect_signal(
@@ -43,6 +42,7 @@ client.connect_signal(
end
)
-- Sloppy focus
client.connect_signal("mouse::enter", function(c)
c:emit_signal("request::activate", "mouse_enter", {raise = false})
@@ -51,7 +51,7 @@ end)
-- Workaround for focused border color, why in the love of god doesnt it work with
-- beautiful.border_focus
client.connect_signal("focus", function (c)
c.border_color = "#bdbdbd"
c.border_color = "#616161"
end)
client.connect_signal("unfocus", function (c)