♻️ refactor(awesome): Set wallpaper in config
This commit is contained in:
parent
42a2b3b7c2
commit
5f36cb1146
3 changed files with 6 additions and 4 deletions
|
@ -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 = {},
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue