From 60aa37fc768dce14b06098ed116d44134250c991 Mon Sep 17 00:00:00 2001 From: Crescent617 Date: Wed, 7 Aug 2024 23:06:52 +0800 Subject: [PATCH] update floating window --- rc.lua | 4 +++- themes/multicolor/theme.lua | 10 ++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/rc.lua b/rc.lua index 3eb79c4..1ed6681 100644 --- a/rc.lua +++ b/rc.lua @@ -805,7 +805,9 @@ client.connect_signal("manage", function(c) c.floating = true end if c.floating then - awful.placement.centered(c) + -- awful.placement.centered(c) + awful.placement.bottom_right(c) + end end) diff --git a/themes/multicolor/theme.lua b/themes/multicolor/theme.lua index 8b6359c..e232711 100644 --- a/themes/multicolor/theme.lua +++ b/themes/multicolor/theme.lua @@ -19,13 +19,15 @@ theme.confdir = os.getenv "HOME" .. "/.config/awesome/themes/multicolor" theme.wallpaper = os.getenv "MY_WALLPAPER" or theme.confdir .. "/wall.png" theme.font = "Monospace 11" +local focus_fg = "#59e269" + -- Menu theme.menu_bg_normal = "#000000AA" theme.menu_bg_focus = "#000000AA" theme.menu_border_width = 0 theme.menu_width = dpi(130) theme.menu_fg_normal = "#aaaaaa" -theme.menu_fg_focus = "#59e269" +theme.menu_fg_focus = focus_fg theme.menu_bg_normal = "#050505dd" theme.menu_bg_focus = "#050505dd" @@ -38,7 +40,7 @@ theme.bg_minimize = "#444444" -- Foreground theme.fg_normal = "#ffffff" -theme.fg_focus = "#59e269" +theme.fg_focus = focus_fg theme.fg_urgent = "#ffffff" theme.fg_minimize = "#ffffff" @@ -51,8 +53,8 @@ theme.gap_single_client = true -- Window Borders theme.border_width = dpi(2) theme.border_normal = "#1c2022" -theme.border_focus = "#59e269" -theme.border_marked = "#3ca4d8" +theme.border_focus = focus_fg +theme.border_marked = "#d166ff" -- Taglist theme.taglist_bg_empty = theme.bg_normal