Make some space for wezterm as an alacritty replacement

This commit is contained in:
Wilfried OLLIVIER 2023-02-25 18:50:51 +01:00
parent 22123778ed
commit 5530f149af
1 changed files with 5 additions and 16 deletions

21
rc.lua
View File

@ -57,7 +57,7 @@ end
beautiful.init("~/.config/awesome/themes/gruvbox/theme.lua")
-- This is used later as the default terminal and editor to run.
terminal = "alacritty"
terminal = "wezterm"
editor = os.getenv("EDITOR") or "nano"
editor_cmd = terminal .. " -e " .. editor
@ -279,6 +279,9 @@ globalkeys = gears.table.join(
-- Standard program
awful.key({ mod4 }, "Return", function() awful.spawn(terminal) end,
{ description = "open a terminal", group = "launcher" }),
awful.key({ mod4, "Shift" }, "Return", function() awful.spawn("tdrop -ma -w -4 " .. terminal) end,
{ description = "toggle scratchpad", group = "launcher" }),
awful.key({ modkey, "Control" }, "r", awesome.restart,
{ description = "reload awesome", group = "awesome" }),
awful.key({ modkey, "Shift" }, "q", awesome.quit,
@ -300,20 +303,15 @@ globalkeys = gears.table.join(
{ description = "select next", group = "layout" }),
awful.key({ modkey, "Shift" }, "space", function() awful.layout.inc(-1) end,
{ description = "select previous", group = "layout" }),
awful.key({ mod4, "Shift" }, "Return", function() awful.spawn(terminal .. " -t scratch") end,
{ description = "start a scratch terminal", group = "launcher" }),
-- Launchers
awful.key({ mod4, }, "space", function() awful.spawn("rofi -combi-modi window,drun -show combi -modi combi -m -4") end,
{ description = "show rofi", group = "launcher" }),
awful.key({ mod4, }, "r", function() awful.spawn("rofi-pass") end,
{ description = "show rofi-pass", group = "launcher" }),
awful.key({ mod4, }, "f", function() awful.spawn("brave") end,
{ description = "start firefox", group = "launcher" }),
-- Lock screen
awful.key({ mod4, }, "l", function() awful.spawn(".config/awesome/bin/saver.sh") end,
awful.key({ mod4, modkey }, "l", function() awful.spawn(".config/awesome/bin/saver.sh") end,
{ description = "lock screen", group = "session" }),
-- Volume controls
@ -502,15 +500,6 @@ awful.rules.rules = {
}
}, properties = { floating = true } },
-- tiny scratchpad
{ rule = { name = "scratch" },
properties = {
floating = true,
width = awful.screen.focused().workarea.width * 0.5,
height = awful.screen.focused().workarea.height * 0.4
}
},
-- Add titlebars to normal clients and dialogs
{ rule_any = { type = { "normal", "dialog" }
}, properties = { titlebars_enabled = false }