From d9378d84c6e5f060d8fbe0067287c5e0e6bc9a6d Mon Sep 17 00:00:00 2001 From: Tanvir Date: Thu, 26 Sep 2024 15:39:18 +0600 Subject: [PATCH] change wallpaper directory --- themes/colorless/theme.lua | 25 ++++++++++++++----------- themes/rosybrown/theme.lua | 23 ++++++++++++----------- 2 files changed, 26 insertions(+), 22 deletions(-) diff --git a/themes/colorless/theme.lua b/themes/colorless/theme.lua index c75211d..af2f555 100644 --- a/themes/colorless/theme.lua +++ b/themes/colorless/theme.lua @@ -40,19 +40,22 @@ theme.panel_height = 40 -- panel height theme.border_width = 0 -- window border width theme.useless_gap = 5 -- useless gap theme.cellnum = { x = 96, y = 58 } -- grid layout property + +local wallpaper_dir = os.getenv("HOME") .. "/media/pictures/wallpapers/" theme.wallpapers = { - ["1:1"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrown.png", - ["1:2"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownApple.png", - ["1:3"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownBoy.png", - ["1:4"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownMan.png", - ["1:5"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownGun.png", - - ["2:1"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownSword.png", - ["2:2"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownSword2.png", - ["2:3"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownNix.png", - ["2:4"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownGirl.png", - ["2:5"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownTree.png", + ["1:1"] = wallpaper_dir .. "RosyBrown.png", + ["1:2"] = wallpaper_dir .. "RosyBrownApple.png", + ["1:3"] = wallpaper_dir .. "RosyBrownBoy.png", + ["1:4"] = wallpaper_dir .. "RosyBrownMan.png", + ["1:5"] = wallpaper_dir .. "RosyBrownGun.png", + + ["2:1"] = wallpaper_dir .. "RosyBrownSword.png", + ["2:2"] = wallpaper_dir .. "RosyBrownSword2.png", + ["2:3"] = wallpaper_dir .. "RosyBrownNix.png", + ["2:4"] = wallpaper_dir .. "RosyBrownGirl.png", + ["2:5"] = wallpaper_dir .. "RosyBrownTree.png", } + -- Fonts theme.fonts = { main = "Fira Code 12", -- main font diff --git a/themes/rosybrown/theme.lua b/themes/rosybrown/theme.lua index f9e9c87..0d874b4 100644 --- a/themes/rosybrown/theme.lua +++ b/themes/rosybrown/theme.lua @@ -14,18 +14,19 @@ theme.path = awful.util.get_configuration_dir() .. "themes/rosybrown" -- Main config theme.panel_height = 38 -- panel height -- theme.desktopbg = theme.wallpapers["1:1"] +local wallpaper_dir = os.getenv("HOME") .. "/media/pictures/wallpapers/" theme.wallpapers = { - ["1:1"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrown.png", - ["1:2"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownApple.png", - ["1:3"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownBoy.png", - ["1:4"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownMan.png", - ["1:5"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownGun.png", - - ["2:1"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownSword.png", - ["2:2"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownSword2.png", - ["2:3"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownNix.png", - ["2:4"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownGirl.png", - ["2:5"] = awful.util.get_configuration_dir() .. "wallpapers/RosyBrownTree.png", + ["1:1"] = wallpaper_dir .. "RosyBrown.png", + ["1:2"] = wallpaper_dir .. "RosyBrownApple.png", + ["1:3"] = wallpaper_dir .. "RosyBrownBoy.png", + ["1:4"] = wallpaper_dir .. "RosyBrownMan.png", + ["1:5"] = wallpaper_dir .. "RosyBrownGun.png", + + ["2:1"] = wallpaper_dir .. "RosyBrownSword.png", + ["2:2"] = wallpaper_dir .. "RosyBrownSword2.png", + ["2:3"] = wallpaper_dir .. "RosyBrownNix.png", + ["2:4"] = wallpaper_dir .. "RosyBrownGirl.png", + ["2:5"] = wallpaper_dir .. "RosyBrownTree.png", } -- Setup parent theme settings