Compare commits
2 commits
736f1477b4
...
12999418de
Author | SHA1 | Date | |
---|---|---|---|
12999418de | |||
7138b5c360 |
4 changed files with 25 additions and 14 deletions
8
modules/kakoune.lua
Normal file
8
modules/kakoune.lua
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
local kakoune_theme = theme.kakoune_theme
|
||||||
|
if kakoune_theme == nil then
|
||||||
|
kakoune_theme = "rose-pine-dawn"
|
||||||
|
end
|
||||||
|
|
||||||
|
save_config("kakoune", [[
|
||||||
|
colorscheme {theme}
|
||||||
|
]], { theme = kakoune_theme })
|
25
themer.lua
25
themer.lua
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env lua5.1
|
#!/usr/bin/env lua5.1
|
||||||
|
|
||||||
local templater = require 'utils/template'
|
local templater = require "utils/template"
|
||||||
|
|
||||||
function expect_nil(result)
|
function expect_nil(result)
|
||||||
if result then
|
if result then
|
||||||
|
@ -18,7 +18,7 @@ local function read_file(path)
|
||||||
return content
|
return content
|
||||||
end
|
end
|
||||||
|
|
||||||
local theme_name_path = os.getenv('HOME').."/.config/themer.lua.theme"
|
local theme_name_path = os.getenv("HOME").."/.config/themer.lua.theme"
|
||||||
local theme_name = read_file(theme_name_path)
|
local theme_name = read_file(theme_name_path)
|
||||||
theme = dofile("themes/"..theme_name..".lua")
|
theme = dofile("themes/"..theme_name..".lua")
|
||||||
|
|
||||||
|
@ -32,14 +32,15 @@ function save_config(name, template, params, pattern)
|
||||||
file:close()
|
file:close()
|
||||||
end
|
end
|
||||||
|
|
||||||
require 'modules/sway'
|
require "modules/sway"
|
||||||
require 'modules/river'
|
require "modules/river"
|
||||||
require 'modules/yambar'
|
require "modules/yambar"
|
||||||
require 'modules/foot'
|
require "modules/foot"
|
||||||
require 'modules/fnott'
|
require "modules/fnott"
|
||||||
require 'modules/fuzzel'
|
require "modules/fuzzel"
|
||||||
require 'modules/lock'
|
require "modules/lock"
|
||||||
require 'modules/shell'
|
require "modules/shell"
|
||||||
require 'modules/vis'
|
require "modules/vis"
|
||||||
require 'modules/gtk'
|
require "modules/kakoune"
|
||||||
|
require "modules/gtk"
|
||||||
|
|
||||||
|
|
|
@ -17,5 +17,6 @@ local theme = {
|
||||||
dark = false,
|
dark = false,
|
||||||
|
|
||||||
vis_theme = "rose-pine-dawn-colorless",
|
vis_theme = "rose-pine-dawn-colorless",
|
||||||
|
kakoune_theme = "rose-pine-dawn",
|
||||||
}
|
}
|
||||||
return require('utils/rose-pine-convert')(theme)
|
return require("utils/rose-pine-convert")(theme)
|
||||||
|
|
|
@ -17,5 +17,6 @@ local theme = {
|
||||||
dark = true,
|
dark = true,
|
||||||
|
|
||||||
vis_theme = "rose-pine-moon-colorless",
|
vis_theme = "rose-pine-moon-colorless",
|
||||||
|
kakoune_theme = "rose-pine-moon",
|
||||||
}
|
}
|
||||||
return require('utils/rose-pine-convert')(theme)
|
return require("utils/rose-pine-convert")(theme)
|
||||||
|
|
Loading…
Reference in a new issue