change awful.utils.get_dir to gears.filesystem.configuration_dir

This commit is contained in:
Rene Kievits
2022-09-22 18:37:48 +02:00
parent 6cdda097c1
commit 747b8a9787
35 changed files with 49 additions and 40 deletions

View File

@@ -12,7 +12,7 @@ local capi = {
}
-- Icon directory path
local icondir = awful.util.getdir("config") .. "src/assets/icons/audio/"
local icondir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/audio/"
-- Returns the audio widget
return function(s)

View File

@@ -16,7 +16,7 @@ local capi = {
}
-- Icon directory path
local icondir = awful.util.getdir("config") .. "src/assets/icons/battery/"
local icondir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/battery/"
---Returns the battery widget
---@return wibox.widget

View File

@@ -13,7 +13,7 @@ local capi = {
}
-- Icon directory path
local icondir = awful.util.getdir("config") .. "src/assets/icons/bluetooth/"
local icondir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/bluetooth/"
-- Returns the bluetooth widget
return function(s)

View File

@@ -9,7 +9,7 @@ local gears = require("gears")
local wibox = require("wibox")
-- Icon directory path
local icondir = awful.util.getdir("config") .. "src/assets/icons/clock/"
local icondir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/clock/"
-- Returns the clock widget
return function()

View File

@@ -15,7 +15,7 @@ local capi = {
awesome = awesome,
}
local icon_dir = awful.util.getdir("config") .. "src/assets/icons/cpu/"
local icon_dir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/cpu/"
--TODO: Add tooltip with more CPU and per core information
return function(widget, _)

View File

@@ -14,7 +14,7 @@ local capi = {
}
-- Icon directory path
local icondir = awful.util.getdir("config") .. "src/assets/icons/date/"
local icondir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/date/"
-- Returns the date widget
return function()

View File

@@ -15,7 +15,7 @@ local capi = {
awesome = awesome,
}
local icon_dir = awful.util.getdir("config") .. "src/assets/icons/cpu/"
local icon_dir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/cpu/"
return function(widget)
local gpu_usage_widget = wibox.widget {

View File

@@ -14,7 +14,7 @@ local capi = {
}
-- Icon directory path
local icondir = awful.util.getdir("config") .. "src/assets/icons/kblayout/"
local icondir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/kblayout/"
return function(s)
local kblayout_widget = wibox.widget {

View File

@@ -14,7 +14,7 @@ local capi = {
}
-- Icon directory path
local icondir = awful.util.getdir("config") .. "src/assets/icons/network/"
local icondir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/network/"
-- Insert your interfaces here, get the from ip a
local interfaces = {

View File

@@ -13,7 +13,7 @@ local capi = {
}
-- Icon directory path
local icondir = awful.util.getdir("config") .. "src/assets/icons/power/"
local icondir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/power/"
return function()

View File

@@ -13,7 +13,7 @@ local capi = {
awesome = awesome,
}
local icon_dir = awful.util.getdir("config") .. "src/assets/icons/cpu/"
local icon_dir = gears.filesystem.get_configuration_dir() .. "src/assets/icons/cpu/"
return function()
local ram_widget = wibox.widget {