Compare commits

...

1 Commits

Author SHA1 Message Date
482f80003c vis: remove lfs dependency 2025-09-30 21:04:34 +02:00

View File

@@ -192,17 +192,10 @@ local function add_global_mark()
end end
end end
local lfs = require('lfs')
local theme_modification = 0
local last_theme = 'default' local last_theme = 'default'
function set_current_theme() function set_current_theme()
local path = os.getenv('HOME') .. '/.config/xsettingsd/xsettingsd.conf' 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) local f = io.open(path)
if f then if f then
local s = f:read('*all') local s = f:read('*all')