From f2327000cba4dec2ed0bf5d6a5f49cd0fb579028 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Tue, 5 Mar 2024 21:05:35 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20fix(awesome):=20Awesome=20tweaks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/awesome/lib/exit-screen.lua | 2 +- .config/awesome/themes/catppuccin/theme.lua | 6 +++--- .config/awesome/ui/popups/volume/init.lua | 2 +- .config/awesome/ui/titlebar/init.lua | 16 ---------------- 4 files changed, 5 insertions(+), 21 deletions(-) diff --git a/.config/awesome/lib/exit-screen.lua b/.config/awesome/lib/exit-screen.lua index 5453698..d2dd0b8 100644 --- a/.config/awesome/lib/exit-screen.lua +++ b/.config/awesome/lib/exit-screen.lua @@ -104,7 +104,7 @@ local create_exit_screen = function(s) type = "splash", visible = false, ontop = true, - bg = theme.transparent, + bg = theme.color.transparent, fg = theme.fg_normal, height = s.geometry.height, width = s.geometry.width, diff --git a/.config/awesome/themes/catppuccin/theme.lua b/.config/awesome/themes/catppuccin/theme.lua index 6240fa3..39a362e 100644 --- a/.config/awesome/themes/catppuccin/theme.lua +++ b/.config/awesome/themes/catppuccin/theme.lua @@ -15,7 +15,7 @@ local theme = {} theme.color = {} -- Transparent Color -- -theme.transparent = "#00000000" +theme.color.transparent = "#00000000" -- Base -- theme.color.crust = palette.crust.hex @@ -117,8 +117,8 @@ theme.snap_shape = helpers.ui.rrect(0) theme.hotkeys_shape = helpers.ui.rrect(12) theme.hotkeys_border_color = theme.color.accent1 theme.hotkeys_modifiers_fg = theme.color.overlay2 -theme.hotkeys_font = helpers.ui.set_font("9", theme.font) -theme.hotkeys_description_font = helpers.ui.set_font("9", theme.font) +theme.hotkeys_font = helpers.ui.set_font("10", theme.font) +theme.hotkeys_description_font = helpers.ui.set_font("10", theme.font) -- Layoutlist theme.layoutlist_shape_selected = helpers.ui.rrect(7) diff --git a/.config/awesome/ui/popups/volume/init.lua b/.config/awesome/ui/popups/volume/init.lua index 31698c4..2af3375 100644 --- a/.config/awesome/ui/popups/volume/init.lua +++ b/.config/awesome/ui/popups/volume/init.lua @@ -139,7 +139,7 @@ screen.connect_signal("request::desktop_decoration", function(s) width = volume_osd_width, maximum_height = volume_osd_height, maximum_width = volume_osd_width, - bg = theme.transparent, + bg = theme.color.transparent, offset = dpi(5), border_width = dpi(3), border_color = theme.color.surface0, diff --git a/.config/awesome/ui/titlebar/init.lua b/.config/awesome/ui/titlebar/init.lua index 97673e0..598c1c3 100644 --- a/.config/awesome/ui/titlebar/init.lua +++ b/.config/awesome/ui/titlebar/init.lua @@ -5,22 +5,6 @@ local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi ---- Rounded Corners Client Side --- --- Use Picom If you Can -- -local function shapemanager(c) - c.shape = function(cr, w, h) - if not c.fullscreen and not c.maximized then - gears.shape.rounded_rect(cr, w, h, 15) - else - gears.shape.rounded_rect(cr, w, h, 0) - end - end -end - -client.connect_signal("property::fullscreen", function(c) - shapemanager(c) -end) - -- Add a titlebar if titlebars_enabled is set to true in the rules. client.connect_signal("request::titlebars", function(c) -- buttons for the titlebar