change awful.utils.get_dir to gears.filesystem.configuration_dir
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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, _)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user