From 5f36cb1146409fe21c6fffe114aa1dd3ba1a10e2 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sat, 24 Feb 2024 12:52:08 -0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(awesome):=20Set?= =?UTF-8?q?=20wallpaper=20in=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/awesome/config.lua | 3 +++ .config/awesome/main/wallpaper.lua | 5 +++-- .config/awesome/themes/catppuccin/theme.lua | 2 -- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.config/awesome/config.lua b/.config/awesome/config.lua index 8b559cd..4f007ae 100644 --- a/.config/awesome/config.lua +++ b/.config/awesome/config.lua @@ -1,3 +1,5 @@ +local config_dir = require("gears.filesystem").get_configuration_dir() + local M = {} M.keys = { @@ -19,6 +21,7 @@ M.apps.music_player = M.apps.terminal .. "--class music -e ncmpcpp" M.theme = { flavor = "macchiato", accent = "pink", + wallpaper = config_dir .. "themes/catppuccin/buttons.png", icons = {}, } diff --git a/.config/awesome/main/wallpaper.lua b/.config/awesome/main/wallpaper.lua index b69194c..c7dff3f 100644 --- a/.config/awesome/main/wallpaper.lua +++ b/.config/awesome/main/wallpaper.lua @@ -1,13 +1,14 @@ local awful = require("awful") local wibox = require("wibox") -local beautiful = require("beautiful").get() + +local image = require("config").theme.wallpaper local function set_wall(s) awful.wallpaper({ screen = s, widget = { { - image = beautiful.wallpaper, + image = image, upscale = true, downscale = true, widget = wibox.widget.imagebox, diff --git a/.config/awesome/themes/catppuccin/theme.lua b/.config/awesome/themes/catppuccin/theme.lua index 7b20901..ab39750 100644 --- a/.config/awesome/themes/catppuccin/theme.lua +++ b/.config/awesome/themes/catppuccin/theme.lua @@ -205,8 +205,6 @@ theme.titlebar_maximized_button_focus_inactive = themes_path .. "catppuccin/titl theme.titlebar_maximized_button_normal_inactive_hover = themes_path .. "catppuccin/titlebar/maximize_hover.svg" theme.titlebar_maximized_button_focus_inactive_hover = themes_path .. "catppuccin/titlebar/maximize_hover.svg" -theme.wallpaper = themes_path .. "catppuccin/buttons.png" - -- You can use your own layout icons like this: theme.layout_floating = themes_path .. "catppuccin/layouts/floating.png" theme.layout_max = themes_path .. "catppuccin/layouts/max.png"