Added a few rules, replace os.execute with awful.spawn

This commit is contained in:
Mutzi 2023-01-15 12:35:59 +01:00
parent eaf02a52d2
commit 0823273ebc
2 changed files with 8 additions and 4 deletions

View File

@ -249,7 +249,7 @@ globalkeys = mytable.join(
{description = "destroy all notifications", group = "hotkeys"}),
-- Take a screenshot
awful.key({ modkey, altkey }, "p", function() os.execute("flameshot gui") end,
awful.key({ modkey, altkey }, "p", function() awful.spawn("flameshot gui") end,
{description = "take a screenshot", group = "hotkeys"}),
-- X screen locker
@ -719,13 +719,17 @@ awful.rules.rules = {
}
}, properties = { floating = true }},
{ rule = { class = "Firefox" },
{ rule_any = { class = {"firefox", "factorio"} },
properties = { opacity = 1, maximized = false, floating = false } },
-- Add titlebars to normal clients and dialogs
{ rule_any = {type = { "normal", "dialog" }
}, properties = { titlebars_enabled = true }
},
{
rule = { class = "mpv" },
properties = { fullscreen = true }
}
-- Set Firefox to always map on the tag named "2" on screen 1.
-- { rule = { class = "Firefox" },

View File

@ -103,7 +103,7 @@ mytextclock.font = theme.font
theme.cal = lain.widget.cal({
attach_to = { mytextclock },
notification_preset = {
font = "Terminus 10",
font = "Monospace 10",
fg = theme.fg_normal,
bg = theme.bg_normal
}
@ -119,7 +119,7 @@ theme.fs = lain.widget.fs({
})
theme.fs.widget:buttons(gears.table.join(
awful.button({}, 1, function()
os.execute("Thunar")
awful.spawn("Thunar")
end)
))