vis: remove lfs dependency
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user