From b8b5801378b62765e2e8292504e17c5319e80436 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Fri, 6 Jan 2023 15:33:42 +0100 Subject: awesome: use wallpaper of desktop theme --- awesome/rc.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/awesome/rc.lua b/awesome/rc.lua index 0e4cbb3..b7d803f 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -52,7 +52,10 @@ end -- {{{ Variable definitions -- Themes define colours, icons, font and wallpapers. beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua") -beautiful.wallpaper = awful.util.get_configuration_dir() .. "wallpaper.png" +beautiful.wallpaper = function(s) + local dim = tostring(s.geometry.width) .. "x" .. tostring(s.geometry.height) + return "/etc/alternatives/desktop-theme/wallpaper/contents/images/" .. dim .. ".svg" +end -- This is used later as the default terminal and editor to run. terminal = "x-terminal-emulator" -- cgit v1.2.3