From 07e8704d38fe792c285c8c23c837b6e1872a7015 Mon Sep 17 00:00:00 2001 From: DeadNews Date: Sun, 14 May 2023 02:06:05 +0200 Subject: [PATCH] feat: dev pr (#6) * chore: sort lines * ci(pre-commit): update schedule * feat: add `dotbot` config --- .pre-commit-config.yaml | 2 +- README.md | 16 ++- config/ini | 229 ++++++++++++++++++++-------------------- config/panels.ini | 34 +++--- install.conf.yaml | 8 ++ 5 files changed, 153 insertions(+), 136 deletions(-) create mode 100644 install.conf.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 72ad945..71e8d1e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ ci: autofix_commit_msg: "chore: auto fixes from `pre-commit` hooks" autoupdate_commit_msg: "chore(pre-commit): autoupdate" - autoupdate_schedule: monthly + autoupdate_schedule: quarterly repos: - repo: https://github.com/pre-commit/pre-commit-hooks diff --git a/README.md b/README.md index 7914697..0b7dcdd 100644 --- a/README.md +++ b/README.md @@ -15,27 +15,35 @@ The 16M color version can be used independently of any terminal color scheme, bu - Copy files from `./skins` to `~/.local/share/mc/skins` - Copy files from `./config` to `~/.config/mc/` (optional) +or + +- Link configs with [dotbot](https://github.com/anishathalye/dotbot): + +```sh +dotbot -c install.conf.yaml +``` + ## Activating ways -- Choose the skin through the mc UI with: +1. Choose the skin through the mc UI with: ```sh # F9 > Options > Appearance ``` -- Edit `~/.config/mc/ini` and add `skin=onedark`: +2. Edit `~/.config/mc/ini` and add `skin=onedark`: ```sh sed -i 's|\(^skin=\).*$|\1onedark|' ~/.config/mc/ini ``` -- Run mc with specific skin: +3. Run mc with specific skin: ```sh mc -S onedark ``` -- Add `export MC_SKIN=onedark` to the initialization file of your shell (e.g., `~/.bashrc` or `~/.zshrc`): +4. Add `export MC_SKIN=onedark` to the initialization file of your shell (e.g., `~/.bashrc` or `~/.zshrc`): ```sh echo "export MC_SKIN=onedark" >> ~/.zshrc diff --git a/config/ini b/config/ini index 7e87200..9bcb26a 100644 --- a/config/ini +++ b/config/ini @@ -1,156 +1,155 @@ [Midnight-Commander] -verbose=true -shell_patterns=true -auto_save_setup=true -preallocate_space=false +alternate_plus_minus=false +auto_fill_mkdir_name=true auto_menu=false -use_internal_view=false -use_internal_edit=false +auto_save_setup=true +cd_symlinks=true +classic_progressbar=true clear_before_exec=true confirm_delete=true -confirm_overwrite=true -confirm_execute=true -confirm_history_cleanup=true -confirm_exit=false confirm_directory_hotlist_delete=false +confirm_execute=true +confirm_exit=false +confirm_history_cleanup=true +confirm_overwrite=true confirm_view_dir=false +copymove_persistent_attr=true +double_click_speed=250 +drop_menus=false +editor_ask_filename_before_edit=false +editor_backspace_through_tabs=false +editor_backup_extension=~ +editor_check_new_line=false +editor_cursor_after_inserted_block=false +editor_cursor_beyond_eol=false +editor_drop_selection_on_copy=true +editor_edit_confirm_save=true +editor_fake_half_tabs=true +editor_filesize_threshold=64M +editor_fill_tabs_with_spaces=true +editor_group_undo=false +editor_line_state=false +editor_option_auto_para_formatting=false +editor_option_save_mode=0 +editor_option_save_position=true +editor_option_typewriter_wrap=false +editor_persistent_selections=true +editor_return_does_auto_indent=true +editor_show_right_margin=false +editor_simple_statusbar=false +editor_state_full_filename=false +editor_stop_format_chars=-+*\\,.;:&> +editor_syntax_highlighting=true +editor_tab_spacing=4 +editor_visible_spaces=true +editor_visible_tabs=true +editor_word_wrap_line_length=72 +fast_refresh=false +file_op_compute_totals=true +filepos_max_saved_entries=1024 +fish_directory_timeout=900 +ftpfs_always_use_proxy=false +ftpfs_directory_timeout=900 +ftpfs_first_cd_then_ls=true +ftpfs_retry_seconds=30 +ftpfs_use_passive_connections_over_proxy=false +ftpfs_use_passive_connections=true +ftpfs_use_unix_list_options=true +ignore_ftp_chattr_errors=true +max_dirt_limit=10 +mcview_eof= +mcview_remember_file_position=false +mouse_close_dialog=false +mouse_move_pages_viewer=true +mouse_repeat_rate=100 +nice_rotating_dash=true +num_history_items_recorded=60 +old_esc_mode_timeout=1000000 +old_esc_mode=true +only_leading_plus_minus=true +pause_after_run=1 +preallocate_space=false safe_delete=false safe_overwrite=false -use_8th_bit_as_meta=false -mouse_move_pages_viewer=true -mouse_close_dialog=false -fast_refresh=false -drop_menus=false -wrap_mode=true -old_esc_mode=true -cd_symlinks=true +shadows=false +shell_patterns=true show_all_if_ambiguous=false -use_file_to_guess_type=true -alternate_plus_minus=false -only_leading_plus_minus=true show_output_starts_shell=false -xtree_mode=false -file_op_compute_totals=true -classic_progressbar=true -use_netrc=true -ftpfs_always_use_proxy=false -ftpfs_use_passive_connections=true -ftpfs_use_passive_connections_over_proxy=false -ftpfs_use_unix_list_options=true -ftpfs_first_cd_then_ls=true -filepos_max_saved_entries=1024 -ignore_ftp_chattr_errors=true -editor_fill_tabs_with_spaces=true -editor_return_does_auto_indent=true -editor_backspace_through_tabs=false -editor_fake_half_tabs=true -editor_option_save_position=true -editor_option_auto_para_formatting=false -editor_option_typewriter_wrap=false -editor_edit_confirm_save=true -editor_syntax_highlighting=true -editor_persistent_selections=true -editor_drop_selection_on_copy=true -editor_cursor_beyond_eol=false -editor_cursor_after_inserted_block=false -editor_visible_tabs=true -editor_visible_spaces=true -editor_line_state=false -editor_simple_statusbar=false -editor_check_new_line=false -editor_show_right_margin=false -editor_group_undo=false -editor_state_full_filename=false -editor_ask_filename_before_edit=false -nice_rotating_dash=true -mcview_remember_file_position=false -auto_fill_mkdir_name=true -copymove_persistent_attr=true -pause_after_run=1 -mouse_repeat_rate=100 -double_click_speed=250 -old_esc_mode_timeout=1000000 -max_dirt_limit=10 -num_history_items_recorded=60 -vfs_timeout=60 -ftpfs_directory_timeout=900 -ftpfs_retry_seconds=30 -fish_directory_timeout=900 -editor_tab_spacing=4 -editor_word_wrap_line_length=72 -editor_option_save_mode=0 -editor_backup_extension=~ -editor_filesize_threshold=64M -editor_stop_format_chars=-+*\\,.;:&> -mcview_eof= skin=onedark +use_8th_bit_as_meta=false +use_file_to_guess_type=true +use_internal_edit=false +use_internal_view=false +use_netrc=true +verbose=true +vfs_timeout=60 +wrap_mode=true +xtree_mode=false [Colors] base_color= -xterm-256color= color_terminals= screen= +xterm-256color= [Layout] -output_lines=0 -left_panel_size=49 -top_panel_size=24 -message_visible=false -keybar_visible=true -xterm_title=true command_prompt=true -menubar_visible=true free_space=true -horizontal_split=false -vertical_equal=true horizontal_equal=true +horizontal_split=false +keybar_visible=true +left_panel_size=49 +menubar_visible=true +message_visible=false +output_lines=0 +top_panel_size=24 +vertical_equal=true +xterm_title=true [Misc] -timeformat_recent=•%b %e %H:%M -timeformat_old=%b %e %Y -# timeformat_recent=•%F %T -# timeformat_old=%F %T +autodetect_codeset= +clipboard_paste= +clipboard_store= +display_codepage=UTF-8 ftp_proxy_host=gate ftpfs_password=anonymous@ -display_codepage=UTF-8 source_codepage=Other_8_bit -autodetect_codeset= -clipboard_store= -clipboard_paste= spell_language=en +timeformat_old=%b %e %Y +timeformat_recent=•%b %e %H:%M [Panels] -show_mini_info=true +auto_save_setup_panels=true +fast_reload_msg_shown=true +fast_reload=false +filetype_mode=true kilobyte_si=false +mark_moves_down=true mix_all_files=false +mouse_move_pages=true +navigate_with_arrows=true +panel_scroll_center=false +panel_scroll_pages=true +permission_mode=true +quick_search_mode=2 +reverse_files_only=true +select_flags=6 show_backups=true show_dot_files=true -fast_reload=false -fast_reload_msg_shown=true -mark_moves_down=true -reverse_files_only=true -auto_save_setup_panels=true -navigate_with_arrows=true -panel_scroll_pages=true -panel_scroll_center=false -mouse_move_pages=true -filetype_mode=true -permission_mode=true -torben_fj_mode=false -quick_search_mode=2 -select_flags=6 +show_mini_info=true simple_swap=false +torben_fj_mode=false [DiffView] -show_symbols=false -show_numbers=false -tab_size=8 -diff_quality=0 -diff_ignore_tws=false diff_ignore_all_space=false -diff_ignore_space_change=false -diff_tab_expansion=false diff_ignore_case=false +diff_ignore_space_change=false +diff_ignore_tws=false +diff_quality=0 +diff_tab_expansion=false +show_numbers=false +show_symbols=false +tab_size=8 [Panelize] Find *.orig after patching=find . -name \\*.orig -print diff --git a/config/panels.ini b/config/panels.ini index 56f4a66..2d54c0b 100644 --- a/config/panels.ini +++ b/config/panels.ini @@ -1,34 +1,36 @@ [New Left Panel] -display=listing -reverse=false -case_sensitive=true -exec_first=false -sort_order=name -list_mode=full brief_cols=2 +case_sensitive=true +display=listing +exec_first=false +filter_flags=7 +list_format=user +list_mode=full +reverse=false +sort_order=name user_format=half type name | size:4 | mtime +user_mini_status=true user_status0=half type name | size | perm user_status1=half type name | size | perm user_status2=half type name | size | perm user_status3=half type name | size | perm | owner | group -user_mini_status=true -list_format=user [New Right Panel] -display=listing -reverse=false -case_sensitive=true -exec_first=false -sort_order=name -list_mode=full brief_cols=2 +case_sensitive=true +display=listing +exec_first=false +filter_flags=7 +list_format=user +list_mode=full +reverse=false +sort_order=name user_format=half type name | size:4 | mtime +user_mini_status=true user_status0=half type name | size | perm user_status1=half type name | size | perm user_status2=half type name | size | perm user_status3=half type name | size | perm | owner | group -user_mini_status=true -list_format=user [Dirs] current_is_left=false diff --git a/install.conf.yaml b/install.conf.yaml new file mode 100644 index 0000000..9f6ab6b --- /dev/null +++ b/install.conf.yaml @@ -0,0 +1,8 @@ +- defaults: + link: + create: true + glob: true + +- link: + ~/.local/share/mc/skins: skins/** + ~/.config/mc/: config/**