Skip to content

Commit

Permalink
Converting mc-solarized-skin from submodule #2.
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-spiridonov committed Mar 28, 2016
1 parent 8f792eb commit 40921b4
Show file tree
Hide file tree
Showing 21 changed files with 350 additions and 0 deletions.
61 changes: 61 additions & 0 deletions dotfiles/.mc/lib/mc-solarized-skin/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
Solarized skin for Midnight Commander
-------------------------------------

This is a skin for Midnight Commander [1] using the Solarized palette [2]. It
is designed to be used with terminal emulators that use Solarized palette as
their ANSI colors [3].

It is a fork from nkulikov/mc-solarized-skin however it was rewriten from
scratch based on GoTaR [4] MC skin. The file highliting was adjusted to be as
close as possible to the Solarized dircolors.ansi-universal [5].

Some info on skin writing is available on MC wiki [6],
yet it's usually takes a PHD to understand what's going on.
And since I'm senile and lazy, I don't want to keep going to external references.
Also, it seems it's bloody scattered all over the place, and one has to collect tiny, and I do mean TINY, and sometimes outdated, pieces of information to form something complete.
That's why I took the libery to comment EVERYTHING, just in case.

Note you might need mc > 4.7.5 for this scheme to work (otherwise this file will not be read)
Hint: compile from the git repository

Usage
-----

Put the solarized.ini file into the $HOME/.mc directory. Then define MC_SKIN
env variable:
$ export MC_SKIN=$HOME/.mc/solarized.ini

Color reference:
----------------
Syntax is: Text color;Background color

SOLARIZED HEX TERMCOL
-------- ------- -------
base03 #002b36 brightblack
base02 #073642 black
base01 #586e75 brightgreen
base00 #657b83 brightyellow
base0 #839496 brightblue
base1 #93a1a1 brightcyan
base2 #eee8d5 white
base3 #fdf6e3 brightwhite
yellow #b58900 brown
orange #cb4b16 brightred
red #dc322f red
magenta #d33682 magenta
violet #6c71c4 brightmageta
blue #268bd2 blue
cyan #2aa198 cyan
green #859900 green

lightgray

Links
-----
[1] - https://www.midnight-commander.org/
[2] - http://ethanschoonover.com/solarized
[3] - For gnome-terminal look here:
https://github.com/sigurdga/gnome-terminal-colors-solarized
[4] - http://www.midnight-commander.org/nopaste/skin_parser/outdir/
[5] - https://github.com/seebi/dircolors-solarized
[6] - https://www.midnight-commander.org/wiki/doc/common/skins
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dupa
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test-dir
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
text.txt
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
135 changes: 135 additions & 0 deletions dotfiles/.mc/lib/mc-solarized-skin/ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
[Midnight-Commander]
verbose=1
pause_after_run=1
shell_patterns=1
auto_save_setup=1
preallocate_space=0
auto_menu=0
use_internal_view=1
use_internal_edit=1
clear_before_exec=1
confirm_delete=1
confirm_overwrite=1
confirm_execute=0
confirm_history_cleanup=1
confirm_exit=1
confirm_directory_hotlist_delete=1
safe_delete=0
mouse_repeat_rate=100
double_click_speed=250
use_8th_bit_as_meta=0
confirm_view_dir=0
mouse_move_pages_viewer=1
mouse_close_dialog=0
fast_refresh=0
drop_menus=0
wrap_mode=1
old_esc_mode=0
old_esc_mode_timeout=1000000
cd_symlinks=1
show_all_if_ambiguous=0
max_dirt_limit=10
use_file_to_guess_type=1
alternate_plus_minus=0
only_leading_plus_minus=1
show_output_starts_shell=0
xtree_mode=0
num_history_items_recorded=60
file_op_compute_totals=1
classic_progressbar=1
vfs_timeout=60
ftpfs_directory_timeout=900
use_netrc=1
ftpfs_retry_seconds=30
ftpfs_always_use_proxy=0
ftpfs_use_passive_connections=1
ftpfs_use_passive_connections_over_proxy=0
ftpfs_use_unix_list_options=1
ftpfs_first_cd_then_ls=1
fish_directory_timeout=900
editor_tab_spacing=8
editor_word_wrap_line_length=72
editor_fill_tabs_with_spaces=0
editor_return_does_auto_indent=1
editor_backspace_through_tabs=0
editor_fake_half_tabs=1
editor_option_save_mode=0
editor_option_save_position=1
editor_option_auto_para_formatting=0
editor_option_typewriter_wrap=0
editor_edit_confirm_save=1
editor_syntax_highlighting=1
editor_persistent_selections=1
editor_cursor_beyond_eol=0
editor_visible_tabs=1
editor_visible_spaces=1
editor_line_state=0
editor_simple_statusbar=0
editor_check_new_line=0
editor_show_right_margin=0
editor_group_undo=0
nice_rotating_dash=1
mcview_remember_file_position=0
auto_fill_mkdir_name=1
copymove_persistent_attr=1
select_flags=6
editor_backup_extension=~
mcview_eof=
ignore_ftp_chattr_errors=true
keymap=
skin=default

[Layout]
message_visible=1
keybar_visible=1
xterm_title=1
output_lines=0
command_prompt=1
menubar_visible=1
free_space=1
horizontal_split=0
vertical_equal=1
left_panel_size=100
horizontal_equal=1
top_panel_size=1

[Misc]
timeformat_recent=%e.%m %H:%M
timeformat_old=%e.%m.%Y
ftp_proxy_host=gate
ftpfs_password=anonymous@
display_codepage=UTF-8
source_codepage=Other_8_bit
autodetect_codeset=
clipboard_store=
clipboard_paste=

[Colors]
base_color=
screen-256color=
color_terminals=

[Panels]
show_mini_info=true
kilobyte_si=false
mix_all_files=false
show_backups=true
show_dot_files=true
fast_reload=false
fast_reload_msg_shown=false
mark_moves_down=true
reverse_files_only=true
auto_save_setup_panels=false
navigate_with_arrows=false
panel_scroll_pages=true
mouse_move_pages=true
filetype_mode=true
permission_mode=false
torben_fj_mode=false
quick_search_mode=2

[Panelize]
Zmodyfikowane pliki git=git ls-files --modified
Znajdź odrzuty po łataniu=find . -name \\*.rej -print
Znajdź pliki *.orig po łataniu=find . -name \\*.orig -print
Znajdź programy SUID i SGID=find . \\( \\( -perm -04000 -a -perm +011 \\) -o \\( -perm -02000 -a -perm +01 \\) \\) -print
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
151 changes: 151 additions & 0 deletions dotfiles/.mc/lib/mc-solarized-skin/solarized.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
[skin]
description = Solarized (mostly) dark skin for Midnight Commander.

[Lines]
# TODO: Description.
horiz = ─
vert = │
lefttop = ┌
righttop = ┐
leftbottom = └
rightbottom = ┘
topmiddle = ─
bottommiddle = ─
leftmiddle = ├
rightmiddle = ┤
cross = ┼
dhoriz = ═
dvert = ║
dlefttop = ╔
drighttop = ╗
dleftbottom = ╚
drightbottom = ╝
dtopmiddle = ╤
dbottommiddle = ╧
dleftmiddle = ╟
drightmiddle = ╢

[core]
# Panes.
_default_ = lightgray;black ;; Default file colors/background.
selected = white;cyan ;; Color while hovering above a file/directory.
marked = white;brightmagenta ;; Marked line (using select - insert, ctrl-t, etc...)
markselect = red;cyan ;; Marked and selected.
header = white ;; Pane header (name,size,date titles).
reverse = white;brightmagenta ;; The direcotry PWD above the header, in focused pane.

# Input fields.
inputunchanged = lightgray;black ;; Input fields colors.
input = white;black ;; Input fields, modified.
inputhistory = red;lightgray ;; Input history controller.
inputmark = black;brightred ;; Input field marked text, if any.
disabled = brightcyan;lightgray ;; Disabled input fields in dialog boxes.
gauge = magenta;blue ;; Progress bars (while copying etc). TODO: What the text stands for?!

# Command line.
# TODO: Command prompt line colors. What are they?!
commandlinemark = black;brightred ;; Commandline marked text, if any.
commandhistory = red;brightblack ;; Command prompt history controller.

# TODO: What these stand for?
errors = black;green
statusbar = black;green

[popup]
# TODO: Probably user menu, screenlist, encoding, etc...
pmenunormal = black;green
pmenusel = black;green
pmenutitle = black;green

[dialog]
_default_ = black;lightgray ;; Default colors of dialogs (e.g. copy dialog).
dfocus = black;green ;; Controller colors (checkboxes, actions) in focus.
dhotnormal = red ;; Controllers hotkey color.
dhotfocus = red;green ;; Controllers hotkey color in focus.
dtitle = white;brightmagenta ;; Dialog title.

[error]
_default_ = black;lightgray ;; Default colors of error dialogs (e.g. overwrite permission).
errdfocus = black;green ;; Controller colors (checkboxes, actions) in focus.
errdhotnormal = red ;; Controllers hotkey color.
errdhotfocus = red;green ;; Controllers hotkey color in focus.
errdtitle = white;red ;; Error dialog title.

[filehighlight]
# View filehighlight.ini as reference.
directory = cyan;black ;; Directories.
executable = brightred;black ;; Executable files.
symlink = magenta;black ;; Symbolic links.
stalelink = lightgray;black ;; Broken links.
device = red;blueblack ;; An interface for a device driver.
special = black;blueblack ;; Pipes (FIFOs), sockets, block files, character files etc...
core = brightcyan;black ;; Core dump files, etc?...
temp = brightgreen;black ;; Bak, Temp, ~, etc...
archive = brightmagenta;black ;; Archives.
source = green;black ;; Source files.
media = brown;black ;; Interactive media.
graph = blue;black ;; Images, in other words.
database = brightgreen;black ;; DataBases, duh.
doc = red;black ;; Documents, duh.

[menu]
_default_ = black;lightgray ;; Default colors for menu while active.
menuinactive = black;lightgray ;; Colors for menu while inactive.
menuhot = red ;; Menu item hotkey.
menusel = black;green ;; Selected menu item.
menuhotsel = red;green ;; Selected menu item hotkey.

[help]
_default_ = black;lightgray ;; Default help tooltip text color/background.
helpitalic = brightmagenta ;; Help when italic.
helpbold = red ;; Help when bold.
helplink = cyan ;; Links insde help tooltip.
helpslink = green ;; Links insde help tooltip focused.
helptitle = white;brightmagenta ;; Help title.

[buttonbar]
#Bottom button bar (copy,move, etc...)
hotkey = red;brightblack ;; Hotkey colors (1-10).
button = white;brightblack ;; Button colors (text itself).

[editor]
# TODO: These.
_default_ = lightgray;black
editbold = green;blue
editmarked = lightgray;green
editwhitespace = brightblue;blue
editlinestate = brightmagenta
bookmark = white;red
bookmarkfound = black;green
editbg = lightgray;black
editframe = lightgray;black
editframeactive = lightgray;black
editframedrag = lightgray;black

[viewer]
# TODO: These.
viewunderline = brighmagenta;black
viewbold = brighmagenta;black
viewselected = brighmagenta;black

[widget-common]
# TODO: These.
sort-sign-up = ↓
sort-sign-down = ↑

[widget-panel]
# TODO: These.
hiddenfiles-sign-show = ⋅
hiddenfiles-sign-hide = •
history-prev-item-sign = «
history-next-item-sign = »
history-show-list-sign = ^

[widget-scollbar]
# TODO: These.
first-vert-char = ↑
last-vert-char = ↓
first-horiz-char = «
last-horiz-char = »
current-char = ■
background-char = ▒

0 comments on commit 40921b4

Please sign in to comment.