Compare commits

..

2 commits

Author SHA1 Message Date
12999418de kakoune 2022-06-18 18:53:59 -03:00
7138b5c360 style: Use double quotes 2022-06-17 10:31:03 -03:00
4 changed files with 25 additions and 14 deletions

8
modules/kakoune.lua Normal file
View 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 })

View file

@ -1,6 +1,6 @@
#!/usr/bin/env lua5.1
local templater = require 'utils/template'
local templater = require "utils/template"
function expect_nil(result)
if result then
@ -18,7 +18,7 @@ local function read_file(path)
return content
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)
theme = dofile("themes/"..theme_name..".lua")
@ -32,14 +32,15 @@ function save_config(name, template, params, pattern)
file:close()
end
require 'modules/sway'
require 'modules/river'
require 'modules/yambar'
require 'modules/foot'
require 'modules/fnott'
require 'modules/fuzzel'
require 'modules/lock'
require 'modules/shell'
require 'modules/vis'
require 'modules/gtk'
require "modules/sway"
require "modules/river"
require "modules/yambar"
require "modules/foot"
require "modules/fnott"
require "modules/fuzzel"
require "modules/lock"
require "modules/shell"
require "modules/vis"
require "modules/kakoune"
require "modules/gtk"

View file

@ -17,5 +17,6 @@ local theme = {
dark = false,
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)

View file

@ -17,5 +17,6 @@ local theme = {
dark = true,
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)