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

@@ -254,7 +254,7 @@ return gears.table.join(
awful.spawn.easy_async_with_shell(
"pkexec xfpm-power-backlight-helper --get-brightness",
function(stdout)
awful.spawn(awful.util.getdir("config") ..
awful.spawn(gears.filesystem.get_configuration_dir() ..
"src/scripts/backlight.sh set " .. tostring(tonumber(stdout) + BACKLIGHT_SEPS))
capi.awesome.emit_signal("brightness::update")
end
@@ -269,7 +269,7 @@ return gears.table.join(
awful.spawn.easy_async_with_shell(
"pkexec xfpm-power-backlight-helper --get-brightness",
function(stdout)
awful.spawn(awful.util.getdir("config") ..
awful.spawn(gears.filesystem.get_configuration_dir() ..
"src/scripts/backlight.sh set " .. tostring(tonumber(stdout) - BACKLIGHT_SEPS))
capi.awesome.emit_signal("brightness::update")
end