Add dark monokai-pro theme for foot and nvim

This commit is contained in:
Tanguy Gérôme 2025-04-17 22:12:18 +03:00
parent 7ac08713c8
commit 9d2097bfd9
Signed by: tanguy
GPG key ID: 10B2947233740B88
3 changed files with 87 additions and 6 deletions

View file

@ -80,7 +80,7 @@ color = 2e3440 d8dee9
# long-press-delay=400 # long-press-delay=400
[colors] [colors]
alpha=0.9 alpha=0.95
# background=242424 # background=242424
# foreground=ffffff # foreground=ffffff
# flash=7f7f00 # flash=7f7f00
@ -188,6 +188,25 @@ bright6 = 1c8ca8
regular7 = CCCCCA regular7 = CCCCCA
bright7 = CCCCCA bright7 = CCCCCA
##### https://codeberg.org/dnkl/foot/src/branch/master/themes/monokai-pro
background=2D2A2E
foreground=FCFCFA
regular0=403E41
regular1=FF6188
regular2=A9DC76
regular3=FFD866
regular4=FC9867
regular5=AB9DF2
regular6=78DCE8
regular7=FCFCFA
bright0=727072
bright1=FF6188
bright2=A9DC76
bright3=FFD866
bright4=FC9867
bright5=AB9DF2
bright6=78DCE8
bright7=FCFCFA
# mis-ordered monokai pro light # mis-ordered monokai pro light
#regular0 = 403E41 #regular0 = 403E41

View file

@ -25,6 +25,7 @@ Plug('neoclide/coc.nvim', {['branch'] = 'release'})
-- style -- style
Plug 'loctvl842/monokai-pro.nvim' Plug 'loctvl842/monokai-pro.nvim'
Plug 'eliseshaffer/darklight.nvim'
vim.call('plug#end') vim.call('plug#end')
@ -73,8 +74,29 @@ vim.keymap.set('n', '<leader>fb', fzflua.buffers, { desc = 'fzf-lua buffers' })
-- style -- style
vim.g.t_Co = 256 vim.g.t_Co = 256
vim.cmd.colorscheme('monokai-pro-light') require("monokai-pro").setup({
transparent_background = true,
filter = "pro"
})
vim.cmd.colorscheme('monokai-pro')
vim.g.lightline = { colorscheme = 'monokaipro', mode_map = { n = 'N', i = 'I', R = 'R', v = 'V', V = 'VL', c = 'C', s = 'S', S = 'SL', t = 'T' }, active = { left = { { 'mode', 'paste' }, { 'readonly', 'relativepath', 'modified' } } } } vim.g.lightline = { colorscheme = 'monokaipro', mode_map = { n = 'N', i = 'I', R = 'R', v = 'V', V = 'VL', c = 'C', s = 'S', S = 'SL', t = 'T' }, active = { left = { { 'mode', 'paste' }, { 'readonly', 'relativepath', 'modified' } } } }
require('darklight').setup({
mode = 'custom',
light_mode_callback = function()
require("monokai-pro").setup({
transparent_background = false,
filter = "light", -- classic | octagon | pro | machine | ristretto | spectrum
})
end,
dark_mode_callback = function()
require("monokai-pro").setup({
transparent_background = true,
filter = "pro", -- classic | octagon | pro | machine | ristretto | spectrum
})
end
})
vim.cmd([[nmap <leader>dl :DarkLightSwitch<CR>]])
-- select last paste in visual mode -- select last paste in visual mode
vim.cmd([[nnoremap <expr> gb '`[' . strpart(getregtype(), 0, 1) . '`]']]) vim.cmd([[nnoremap <expr> gb '`[' . strpart(getregtype(), 0, 1) . '`]']])
@ -99,7 +121,5 @@ autocmd Filetype python setlocal ts=4 sts=4 sw=4 expandtab
-- TeX
vim.cmd([[nmap <leader>bb :!./build.sh<CR>]])

42
etc/portage/make.conf Normal file
View file

@ -0,0 +1,42 @@
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
# These warnings indicate likely runtime problems with LTO, so promote them
# to errors. If a package fails to build with these, LTO should not be used there.
WARNING_FLAGS="-Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
COMMON_FLAGS="-O3 -pipe -march=native -flto ${WARNING_FLAGS}"
CFLAGS="${COMMON_FLAGS}"
KCFLAGS="-march=native"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
LDFLAGS="${LDFLAGS} ${WARNING_FLAGS}"
RUSTFLAGS="${RUSTFLAGS} -C target-cpu=native"
#FEATURES="getbinpkg binpkg-request-signature"
MAKEOPTS="-j16 -l16"
EMERGE_DEFAULT_OPTS="-j16 -l16"
USE="lto avif btrfs bluetooth branding kde latex multilib wayland webp dist-kernel"
ACCEPT_LICENSE="${ACCEPT_LICENSE} @FREE linux-fw-redistributable google-chrome"
GRUB_PLATFORMS="efi-64"
# NOTE: This stage was built with the bindist USE flag enabled
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8
GENTOO_MIRRORS="https://gentoo.mirrors.ovh.net/gentoo-distfiles/ \
https://ftp.agdsn.de/gentoo \
https://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ \
https://ftp.uni-hannover.de/gentoo/ \
https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ \
https://ftp.halifax.rwth-aachen.de/gentoo/ \
https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ \
https://ftp.uni-stuttgart.de/gentoo-distfiles/ \
https://ftp.lysator.liu.se/gentoo/"