Compare commits
1 Commits
wip
...
482f80003c
| Author | SHA1 | Date | |
|---|---|---|---|
| 482f80003c |
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user