📜 ⬆️ ⬇️

Midnight Commander: Skins

Default schemas


One of the new features appeared in mc is a convenient system for changing skins. Now, to change the color scheme, it is enough when running mc to start it with the -S <Skin name> key or set the parameter = = Skin name in the [Midnight-Commander] section

Skins examples

Topic: FAR (Black)
Topic: FAR (Black)


')
Subject: FAR (Default)
Subject: FAR (Default)

Subject: Default
Subject: Default

Creating your own schemes


Adding your own schema is easy enough; you need to create a file in the ~ / .mc / skins directory. The file must have the ini extension. Next put there the following content:

[skin]
description=Far-like skin

[Lines]
lefttop=╔
righttop=╗
centertop=╤
centerbottom=╧
leftbottom=╚
rightbottom=╝
leftmiddle=╟
rightmiddle=╢
centermiddle=┼
horiz=═
vert=║
thinhoriz=─
thinvert=│

[core]
_default_=lightgray;blue
selected=black;cyan
marked=yellow;blue
markselect=yellow;cyan;
gauge=white;black
input=black;cyan
reverse=black;lightgray

[dialog]
_default_=black;lightgray
dfocus=black;cyan
dhotnormal=blue;lightgray
dhotfocus=blue;cyan

[error]
_default_=white;red
errdhotnormal=yellow;red
errdhotfocus=yellow;lightgray

[filehighlight]
directory=white;
executable=brightgreen;
symlink=lightgray;
stalelink=brightred;
device=brightmagenta;
special=black;
core=red;
temp=gray;
archive=brightmagenta;
doc=brown;
source=cyan;
media=green;
graph=brightcyan;
database=brightred;

[menu]
_default_=white;cyan
menuhot=yellow;cyan
menusel=white;black
menuhotsel=yellow;black

[help]
_default_=black;lightgray
helpitalic=red;lightgray
helpbold=blue;lightgray
helplink=black;cyan
helpslink=yellow;blue

[editor]
_default_=lightgray;blue
editbold=yellow;blue
editmarked=black;cyan
editwhitespace=brightblue;blue
linestate=white;cyan

[viewer]
viewunderline=brightred;blue

it remains only to change the color pairs to the ones you need and restart mc.

Brief information about skin sections


Conclusion


Well, that's all, now you can easily and naturally change the look of your favorite file manager :)

In small letters: All of the above refers to the latest version of mc taken from the git repository.

Source: https://habr.com/ru/post/70403/


All Articles