From 6d6345417de8050fff86ab0230d4bc97b6578254 Mon Sep 17 00:00:00 2001 From: sheldonmlee Date: Sat, 24 Apr 2021 16:36:28 +0800 Subject: [PATCH] Added workspaces and changed rofi font. --- .config/awesome/rc.lua | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index da973ba..edd320f 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -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