From b86cc3d7f0d5dcf7fd55ba94465ce3656d0aaedd Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 21 Jun 2024 08:36:27 +0100 Subject: [PATCH] Update awesome configuration --- config/awesome/rc.lua | 12 ++++++++---- config/awesome/theme.lua | 2 +- config/awesome/widgets/battery.lua | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 067b383..aaac335 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -57,7 +57,7 @@ end -- Themes define colours, icons, font and wallpapers. 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. terminal = "alacritty" @@ -73,7 +73,7 @@ modkey = "Mod4" -- Table of layouts to cover with awful.layout.inc, order matters. awful.layout.layouts = { - awful.layout.suit.max, + -- awful.layout.suit.max, awful.layout.suit.tile, awful.layout.suit.floating, -- awful.layout.suit.tile.left, @@ -354,6 +354,10 @@ globalkeys = gears.table.join( awful.spawn "thunar" 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.prompt.run { 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 @@ -546,7 +550,7 @@ awful.rules.rules = { { 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 = "discord" }, properties = { tag = "9" } }, diff --git a/config/awesome/theme.lua b/config/awesome/theme.lua index 669b8c2..72f1f19 100644 --- a/config/awesome/theme.lua +++ b/config/awesome/theme.lua @@ -11,7 +11,7 @@ local themes_path = gfs.get_themes_dir() local theme = {} -theme.font = "sans 9" +theme.font = "sans 10" theme.bg_normal = "#222222" theme.bg_focus = "#535d6c" diff --git a/config/awesome/widgets/battery.lua b/config/awesome/widgets/battery.lua index 74fb7f3..3eadb20 100644 --- a/config/awesome/widgets/battery.lua +++ b/config/awesome/widgets/battery.lua @@ -7,7 +7,7 @@ local gears = require "gears" local wibox = require "wibox" local text = wibox.widget { - font = "Hack 11", + font = "sans 9", widget = wibox.widget.textbox, }