Update awesome configuration

This commit is contained in:
Oliver Davies 2024-06-21 08:36:27 +01:00
parent b3b96c3163
commit b86cc3d7f0
3 changed files with 10 additions and 6 deletions

View file

@ -57,7 +57,7 @@ end
-- Themes define colours, icons, font and wallpapers. -- Themes define colours, icons, font and wallpapers.
beautiful.init(gears.filesystem.get_configuration_dir() .. "theme.lua") beautiful.init(gears.filesystem.get_configuration_dir() .. "theme.lua")
awful.spawn.with_shell "awesome-autorun" awful.spawn.with_shell "awesome-autostart"
-- This is used later as the default terminal and editor to run. -- This is used later as the default terminal and editor to run.
terminal = "alacritty" terminal = "alacritty"
@ -73,7 +73,7 @@ modkey = "Mod4"
-- Table of layouts to cover with awful.layout.inc, order matters. -- Table of layouts to cover with awful.layout.inc, order matters.
awful.layout.layouts = { awful.layout.layouts = {
awful.layout.suit.max, -- awful.layout.suit.max,
awful.layout.suit.tile, awful.layout.suit.tile,
awful.layout.suit.floating, awful.layout.suit.floating,
-- awful.layout.suit.tile.left, -- awful.layout.suit.tile.left,
@ -354,6 +354,10 @@ globalkeys = gears.table.join(
awful.spawn "thunar" awful.spawn "thunar"
end, { description = "run browser", group = "launcher" }), end, { description = "run browser", group = "launcher" }),
awful.key({ modkey, "Shift" }, "y", function()
awful.spawn "copyq toggle"
end, { description = "run copyq", group = "launcher" }),
awful.key({ modkey }, "x", function() awful.key({ modkey }, "x", function()
awful.prompt.run { awful.prompt.run {
prompt = "Run Lua code: ", prompt = "Run Lua code: ",
@ -530,7 +534,7 @@ awful.rules.rules = {
}, },
}, },
properties = { floating = true }, properties = { floating = true, placement = awful.placement.centered },
}, },
-- Add titlebars to normal clients and dialogs -- Add titlebars to normal clients and dialogs
@ -546,7 +550,7 @@ awful.rules.rules = {
{ rule = { class = "kdenlive" }, properties = { tag = "7", fullscreen = true } }, { rule = { class = "kdenlive" }, properties = { tag = "7", fullscreen = true } },
{ rule = { class = "0ad" }, properties = { tag = "8" } }, { rule = { class = "0ad" }, properties = { tag = "8", fullscreen = true } },
{ rule = { class = "Slack" }, properties = { tag = "9" } }, { rule = { class = "Slack" }, properties = { tag = "9" } },
{ rule = { class = "discord" }, properties = { tag = "9" } }, { rule = { class = "discord" }, properties = { tag = "9" } },

View file

@ -11,7 +11,7 @@ local themes_path = gfs.get_themes_dir()
local theme = {} local theme = {}
theme.font = "sans 9" theme.font = "sans 10"
theme.bg_normal = "#222222" theme.bg_normal = "#222222"
theme.bg_focus = "#535d6c" theme.bg_focus = "#535d6c"

View file

@ -7,7 +7,7 @@ local gears = require "gears"
local wibox = require "wibox" local wibox = require "wibox"
local text = wibox.widget { local text = wibox.widget {
font = "Hack 11", font = "sans 9",
widget = wibox.widget.textbox, widget = wibox.widget.textbox,
} }