vis: remove lfs dependency

This commit is contained in:
2025-09-30 21:04:34 +02:00
parent 73d76e8cee
commit 869482ba91

View File

@@ -192,17 +192,10 @@ local function add_global_mark()
end
end
local lfs = require('lfs')
local theme_modification = 0
local last_theme = 'default'
function set_current_theme()
local function set_current_theme()
local path = os.getenv('HOME') .. '/.config/xsettingsd/xsettingsd.conf'
local m = lfs.attributes(path, 'modification')
if m == theme_modification then
return
end
theme_modification = m
local f = io.open(path)
if f then
local s = f:read('*all')