change awful.utils.get_dir to gears.filesystem.configuration_dir
This commit is contained in:
@@ -15,7 +15,7 @@ local capi = {
|
||||
}
|
||||
|
||||
-- Icon directory path
|
||||
local icondir = awful.util.getdir("config") .. "src/assets/icons/notifications/"
|
||||
local icondir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/notifications/"
|
||||
|
||||
return function(s)
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ local capi = {
|
||||
}
|
||||
|
||||
-- Icon directory path
|
||||
local icondir = awful.util.getdir("config") .. "src/assets/icons/notifications/"
|
||||
local icondir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/notifications/"
|
||||
|
||||
local nl = {}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
|
||||
-- Icon directory path
|
||||
local icondir = awful.util.getdir("config") .. "src/assets/icons/profile/"
|
||||
local icondir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/profile/"
|
||||
|
||||
return function()
|
||||
|
||||
@@ -20,7 +20,8 @@ return function()
|
||||
{
|
||||
{
|
||||
{
|
||||
image = gears.surface.load_uncached(awful.util.getdir("config") .. "src/assets/userpfp/crylia.png"),
|
||||
image = gears.surface.load_uncached(gears.filesystem.get_configuration_dir() ..
|
||||
"src/assets/userpfp/crylia.png"),
|
||||
id = "icon",
|
||||
valign = "center",
|
||||
halign = "center",
|
||||
|
||||
@@ -14,7 +14,7 @@ local capi = {
|
||||
}
|
||||
|
||||
-- Icon directory path
|
||||
local icondir = awful.util.getdir("config") .. "src/assets/icons/notifications/"
|
||||
local icondir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/notifications/"
|
||||
|
||||
return function(s)
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ local capi = {
|
||||
}
|
||||
|
||||
-- Icon directory path
|
||||
local icondir = awful.util.getdir("config") .. "src/assets/icons/"
|
||||
local icondir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/"
|
||||
|
||||
--- Signal bars widget for the notification-center
|
||||
---@diagnostic disable-next-line: undefined-doc-name
|
||||
|
||||
@@ -12,7 +12,7 @@ local naughty = require("naughty")
|
||||
local json_lua = require("src.lib.json-lua.json-lua")
|
||||
|
||||
-- Icon directory path
|
||||
local icondir = awful.util.getdir("config") .. "src/assets/icons/weather/"
|
||||
local icondir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/weather/"
|
||||
|
||||
return function()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user