From 7d48b963a3e5357a790adafe253cb839781e9816 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 28 Oct 2022 18:17:11 +0300 Subject: [PATCH] users/vifm: add catppussino theme --- users/modules/file_manager/default.nix | 1 + .../modules/file_manager/vifm_catppuccin.vifm | 94 +++++++++++++++++++ users/modules/file_manager/vifmrc | 7 +- 3 files changed, 98 insertions(+), 4 deletions(-) create mode 100644 users/modules/file_manager/vifm_catppuccin.vifm diff --git a/users/modules/file_manager/default.nix b/users/modules/file_manager/default.nix index 9c57dad..badbcf0 100644 --- a/users/modules/file_manager/default.nix +++ b/users/modules/file_manager/default.nix @@ -5,5 +5,6 @@ xdg.configFile = { "vifm/vifmrc".source = ./vifmrc; + "vifm/colors/catppuccin".source = ./vifm_catppuccin.vifm; }; } diff --git a/users/modules/file_manager/vifm_catppuccin.vifm b/users/modules/file_manager/vifm_catppuccin.vifm new file mode 100644 index 0000000..7111e86 --- /dev/null +++ b/users/modules/file_manager/vifm_catppuccin.vifm @@ -0,0 +1,94 @@ +" You can edit this file by hand. +" The " character at the beginning of a line comments out the line. +" Blank lines are ignored. + +" The Default color scheme is used for any directory that does not have +" a specified scheme and for parts of user interface like menus. A +" color scheme set for a base directory will also +" be used for the sub directories. + +" The standard ncurses colors are: +" Default = -1 = None, can be used for transparency or default color +" Black = 0 +" Red = 1 +" Green = 2 +" Yellow = 3 +" Blue = 4 +" Magenta = 5 +" Cyan = 6 +" White = 7 + +" Light versions of colors are also available (they set bold +" attribute in terminals with less than 16 colors): +" LightBlack +" LightRed +" LightGreen +" LightYellow +" LightBlue +" LightMagenta +" LightCyan +" LightWhite + +" Available attributes (some of them can be combined): +" bold +" underline +" reverse or inverse +" standout +" italic (on unsupported systems becomes reverse) +" combine +" none + +" Vifm supports 256 colors you can use color numbers 0-255 +" (requires properly set up terminal: set your TERM environment variable +" (directly or using resources) to some color terminal name (e.g. +" xterm-256color) from /usr/lib/terminfo/; you can check current number +" of colors in your terminal with tput colors command) + +" highlight group cterm=attrs ctermfg=foreground_color ctermbg=background_color + +highlight clear + +highlight Win cterm=none ctermfg=7 ctermbg=none +highlight TopLine cterm=none ctermfg=7 ctermbg=0 +highlight TopLineSel cterm=bold ctermfg=4 ctermbg=0 +highlight StatusLine cterm=bold ctermfg=15 ctermbg=8 +highlight CmdLine cterm=none ctermfg=7 ctermbg=none +highlight Border cterm=none ctermfg=0 ctermbg=0 +highlight OtherLine cterm=none ctermfg=none ctermbg=none +highlight JobLine cterm=bold,reverse ctermfg=black ctermbg=white +highlight TabLine cterm=none ctermfg=0 ctermbg=none +highlight TabLineSel cterm=bold ctermfg=0 ctermbg=2 +highlight SuggestBox cterm=bold ctermfg=0 ctermbg=17 +highlight WildMenu cterm=underline,reverse ctermfg=7 ctermbg=0 + +highlight Directory cterm=bold ctermfg=4 ctermbg=none + +highlight Link cterm=bold ctermfg=17 ctermbg=none +highlight HardLink cterm=none ctermfg=17 ctermbg=none +highlight BrokenLink cterm=bold ctermfg=1 ctermbg=none + +highlight Socket cterm=bold ctermfg=2 ctermbg=none +highlight Device cterm=bold ctermfg=2 ctermbg=none +highlight Fifo cterm=bold ctermfg=2 ctermbg=none + +highlight Executable cterm=bold ctermfg=2 ctermbg=none +highlight Selected cterm=bold ctermfg=5 ctermbg=none +highlight CurrLine cterm=bold,reverse ctermfg=default ctermbg=default + +highlight ErrorMsg cterm=none ctermfg=1 ctermbg=0 + +highlight CmpMismatch cterm=bold ctermfg=white ctermbg=red +highlight AuxWin ctermfg=default ctermbg=default + +highlight User1 ctermfg=default ctermbg=default +highlight User2 ctermfg=default ctermbg=default +highlight User3 ctermfg=default ctermbg=default +highlight User4 ctermfg=default ctermbg=default +highlight User5 ctermfg=default ctermbg=default +highlight User6 ctermfg=default ctermbg=default +highlight User7 ctermfg=default ctermbg=default +highlight User8 ctermfg=default ctermbg=default +highlight User9 ctermfg=default ctermbg=default +highlight OtherWin ctermfg=default ctermbg=default +highlight LineNr ctermfg=default ctermbg=default +highlight OddLine ctermfg=default ctermbg=default diff --git a/users/modules/file_manager/vifmrc b/users/modules/file_manager/vifmrc index 3bb1263..c1506fa 100644 --- a/users/modules/file_manager/vifmrc +++ b/users/modules/file_manager/vifmrc @@ -12,8 +12,6 @@ " you will need to change this setting. set vicmd=vim -" set vicmd=elvis\ -G\ termcap -" set vicmd=vile " This makes vifm perform file operations on its own instead of relying on " standard utilities like `cp`. While using `cp` and alike is a more universal @@ -59,7 +57,7 @@ set norunexec " List of color schemes to try (picks the first one supported by the terminal) -colorscheme Default-256 Default +colorscheme catppuccin " Format for displaying time in file list. For example: " TIME_STAMP_FORMAT=%m/%d-%H:%M @@ -402,6 +400,7 @@ nnoremap x " " let $VIFM_SERVER_NAME = v:servername +" ------------------------------------------------------------------------------ " Ranger devicons for ViFM " https://github.com/cirala/vifm_devicons @@ -463,7 +462,7 @@ set classify+=' ::*.d::' set classify+=' ::*.erl,,*.hrl::' set classify+=' ::*.ai::' set classify+=' ::*.psb,,*.psd::' -set classify+=' ::*.jsx,*.tsx::' +set classify+=' ::*.jsx,,*.tsx::' set classify+=' ::*.aac,,*.anx,,*.asf,,*.au,,*.axa,,*.flac,,*.m2a,,*.m4a,,*.mid,,*.midi,,*.mp3,,*.mpc,,*.oga,,*.ogg,,*.ogx,,*.ra,,*.ram,,*.rm,,*.spx,,*.wav,,*.wma,,*.ac3::' set classify+=' ::*.avi,,*.flv,,*.mkv,,*.mov,,*.mp4,,*.mpeg,,*.mpg,,*.webm,,*.av1::' set classify+=' ::*.epub,,*.pdf,,*.fb2,,*.djvu::'