switched xsetroot to hsetroot, fixed TrueZen config

This commit is contained in:
Rudis Muiznieks 2022-08-20 21:06:18 -05:00
parent c75412d698
commit bf902764eb
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
2 changed files with 5 additions and 41 deletions

View File

@ -17,7 +17,7 @@ if hc silent new_attr bool my_picom_is_running; then
fi
hc lock
xsetroot -solid "#1e1e2e" -cursor_name left_ptr &
hsetroot -solid "#1e1e2e"
feh --bg-fill ~/.config/herbstluftwm/wallpaper.png
xobpipe="$XDG_RUNTIME_DIR/xobpipe"

View File

@ -184,46 +184,10 @@ require'lualine'.setup {
}
}
-- zen mode setup
local true_zen = require('true-zen')
true_zen.setup {
modes = {
ataraxis = {
custom_bg = { "solid", "#141414" },
ideal_writing_area_width = { 90, 150, "max" },
affected_higroups = {},
},
},
-- zen mode config
require('true-zen').setup {
integrations = {
tmux = true,
gitsigns = true,
lualine = true,
},
lualine = true
}
}
true_zen.before_mode_ataraxis_on = function ()
vim.cmd("set nolist")
vim.cmd("set nocursorline")
vim.cmd("set spell")
vim.cmd("set lbr")
vim.cmd("hi Normal guibg=#141414")
vim.cmd("hi StatusLine guibg=#141414 guifg=#141414")
vim.cmd("hi StatusLineNC guibg=#141414 guifg=#141414")
local opts = { noremap = true, silent = true }
vim.api.nvim_set_keymap("", "k", "gk", opts)
vim.api.nvim_set_keymap("", "j", "gj", opts)
vim.api.nvim_set_keymap("", "<Up>", "gk", opts)
vim.api.nvim_set_keymap("", "<Down>", "gj", opts)
end
true_zen.after_mode_ataraxis_off = function ()
vim.cmd("set list")
vim.cmd("set cursorline")
vim.cmd("set nospell")
vim.cmd("set nolbr")
vim.cmd("hi Normal guibg=#242424")
vim.cmd("hi StatusLine guifg=NONE guibg=NONE")
vim.cmd("hi StatusLineNC guifg=NONE guibg=NONE")
vim.api.nvim_del_keymap("", "k")
vim.api.nvim_del_keymap("", "j")
vim.api.nvim_del_keymap("", "<Up>")
vim.api.nvim_del_keymap("", "<Down>")
end