Added workspaces and changed rofi font.

This commit is contained in:
sheldonmlee 2021-04-24 16:36:28 +08:00
parent f7dca65739
commit 6d6345417d

View File

@ -196,7 +196,7 @@ awful.screen.connect_for_each_screen(function(s)
-- Each screen has its own tag table.
awful.tag({ "dev", "media", "social", "misc1", "misc2" }, s, awful.layout.layouts[1])
awful.tag({ "a", "r", "s", "t", "z", "x", "c", "v" }, s, awful.layout.layouts[1])
-- Create a promptbox for each screen
s.mypromptbox = awful.widget.prompt()
@ -360,7 +360,7 @@ globalkeys = gears.table.join(
--awful.key({ modkey }, "space", function() menubar.show() end,
-- {description = "show the menubar", group = "launcher"}),
-- rofi
awful.key({ modkey }, "space", function() awful.spawn("rofi -show run") end,
awful.key({ modkey }, "space", function() awful.spawn("rofi -show run -font 'SourceCodePro 12'") end,
{description = "rofi", group = "launcher"}),
-- }}}
-- Custom bindings
@ -465,6 +465,9 @@ local bindings = {
"s",
"t",
"z",
"x",
"c",
"v",
}
for i = 1, #bindings do
@ -596,7 +599,7 @@ awful.rules.rules = {
client.connect_signal("manage", function (c)
-- Set the windows at the slave,
-- i.e. put it at the end of others instead of setting it master.
if not awesome.startup then awful.client.setslave(c) end
--if not awesome.startup then awful.client.setslave(c) end
if awesome.startup
and not c.size_hints.user_position
@ -664,17 +667,20 @@ custom_rules = {
},
{
rule = { class = "firefox" },
properties = { tag = "media", screen = startup_screen }
properties = { tag = "r", screen = startup_screen }
},
{
rule = { class = "discord" },
properties = { tag = "social", screen = startup_screen }
properties = { tag = "s", screen = startup_screen }
},
{
rule = { class = "Steam" },
properties = { tag = "misc1", screen = startup_screen }
properties = { tag = "t", screen = startup_screen }
},
{
rule = { class = "UE4Editor" },
properties = { tag = "t", screen = startup_screen }
},
}
-- concat own rules with rules