add ranger config
parent
911b8f8fd4
commit
54d0da7c3d
|
@ -0,0 +1,72 @@
|
||||||
|
# vim: ft=cfg
|
||||||
|
set viewmode miller
|
||||||
|
set column_ratios 1,2,2
|
||||||
|
set hidden_filter ^\.
|
||||||
|
set show_hidden false
|
||||||
|
set confirm_on_delete multiple
|
||||||
|
set preview_script ~/.config/ranger/scope.sh
|
||||||
|
set use_preview_script true
|
||||||
|
set automatically_count_files false
|
||||||
|
set open_all_images true
|
||||||
|
set vcs_aware false
|
||||||
|
set vcs_backend_git disabled
|
||||||
|
set vcs_backend_hg disabled
|
||||||
|
set vcs_backend_bzr disabled
|
||||||
|
set vcs_backend_svn disabled
|
||||||
|
set preview_images true
|
||||||
|
set preview_images_method w3m
|
||||||
|
set w3m_delay 0.2
|
||||||
|
set unicode_ellipsis true
|
||||||
|
set bidi_support false
|
||||||
|
set show_hidden_bookmarks true
|
||||||
|
set colorscheme hgtk
|
||||||
|
set preview_files true
|
||||||
|
set preview_directories true
|
||||||
|
set collapse_preview true
|
||||||
|
set save_console_history true
|
||||||
|
set status_bar_on_top false
|
||||||
|
set draw_progress_bar_in_status_bar true
|
||||||
|
set draw_borders both
|
||||||
|
set dirname_in_tabs true
|
||||||
|
set mouse_enabled false
|
||||||
|
set display_size_in_main_column false
|
||||||
|
set display_size_in_status_bar true
|
||||||
|
set display_free_space_in_status_bar true
|
||||||
|
set display_tags_in_all_columns true
|
||||||
|
set update_title false
|
||||||
|
set update_tmux_title true
|
||||||
|
set shorten_title 1
|
||||||
|
set hostname_in_titlebar false
|
||||||
|
set tilde_in_titlebar true
|
||||||
|
set max_history_size 20
|
||||||
|
set max_console_history_size 50
|
||||||
|
set scroll_offset 8
|
||||||
|
set flushinput true
|
||||||
|
set padding_right false
|
||||||
|
set autosave_bookmarks true
|
||||||
|
set save_backtick_bookmark true
|
||||||
|
set autoupdate_cumulative_size false
|
||||||
|
set show_cursor true
|
||||||
|
set sort natural
|
||||||
|
set sort_reverse false
|
||||||
|
set sort_case_insensitive true
|
||||||
|
set sort_directories_first true
|
||||||
|
set sort_unicode true
|
||||||
|
set xterm_alt_key false
|
||||||
|
set cd_bookmarks true
|
||||||
|
set cd_tab_case sensitive
|
||||||
|
set cd_tab_fuzzy true
|
||||||
|
set preview_max_size 0
|
||||||
|
set hint_collapse_threshold 10
|
||||||
|
set show_selection_in_titlebar true
|
||||||
|
set idle_delay 100
|
||||||
|
set metadata_deep_search false
|
||||||
|
set clear_filters_on_dir_change false
|
||||||
|
set line_numbers absolute
|
||||||
|
set relative_current_zero false
|
||||||
|
set one_indexed false
|
||||||
|
set save_tabs_on_exit false
|
||||||
|
set wrap_scroll true
|
||||||
|
set global_inode_type_filter
|
||||||
|
set freeze_files false
|
||||||
|
map ZZ quitall!
|
2
links
2
links
|
@ -9,6 +9,7 @@ applications/ncmpcpp-bind ~/.ncmpcpp/bindings
|
||||||
applications/ncmpcpp-conf ~/.ncmpcpp/config
|
applications/ncmpcpp-conf ~/.ncmpcpp/config
|
||||||
applications/projectM ~/.projectM/config.inp
|
applications/projectM ~/.projectM/config.inp
|
||||||
applications/pulseaudio ~/.config/pulse/default.pa
|
applications/pulseaudio ~/.config/pulse/default.pa
|
||||||
|
applications/ranger.conf ~/.config/ranger/rc.conf
|
||||||
applications/ripgrep ~/.config/ripgreprc
|
applications/ripgrep ~/.config/ripgreprc
|
||||||
applications/rpcs3.yml ~/.config/rpcs3/config.yml
|
applications/rpcs3.yml ~/.config/rpcs3/config.yml
|
||||||
applications/sharenix.json ~/.sharenix.json
|
applications/sharenix.json ~/.sharenix.json
|
||||||
|
@ -24,6 +25,7 @@ system/fcitx/data ~/.config/fcitx/data
|
||||||
system/fcitx/profile ~/.config/fcitx/profile
|
system/fcitx/profile ~/.config/fcitx/profile
|
||||||
system/services/marrub.service ~/.config/systemd/user/marrub.service
|
system/services/marrub.service ~/.config/systemd/user/marrub.service
|
||||||
system/services/marrub.timer ~/.config/systemd/user/marrub.timer
|
system/services/marrub.timer ~/.config/systemd/user/marrub.timer
|
||||||
|
themes/hgtk.py ~/.config/ranger/colorschemes/hgtk.py
|
||||||
themes/ripcord.json ~/.local/share/Ripcord/custom_theme.json
|
themes/ripcord.json ~/.local/share/Ripcord/custom_theme.json
|
||||||
vim/vconf ~/.vim/vconf
|
vim/vconf ~/.vim/vconf
|
||||||
vim/vimrc ~/.vim/vimrc
|
vim/vimrc ~/.vim/vimrc
|
||||||
|
|
|
@ -0,0 +1,155 @@
|
||||||
|
from ranger.gui.colorscheme import ColorScheme
|
||||||
|
from ranger.gui.color import *
|
||||||
|
|
||||||
|
class Hirogaritakaku(ColorScheme):
|
||||||
|
progress_bar_color = blue
|
||||||
|
|
||||||
|
def use(self, ctx):
|
||||||
|
fg, bg, attr = default_colors
|
||||||
|
|
||||||
|
if ctx.reset:
|
||||||
|
pass
|
||||||
|
|
||||||
|
elif ctx.in_browser:
|
||||||
|
if ctx.selected:
|
||||||
|
attr = reverse
|
||||||
|
else:
|
||||||
|
attr = normal
|
||||||
|
if ctx.empty or ctx.error:
|
||||||
|
bg = red
|
||||||
|
if ctx.border:
|
||||||
|
fg = 141
|
||||||
|
if ctx.media:
|
||||||
|
if ctx.image:
|
||||||
|
fg = 170
|
||||||
|
else:
|
||||||
|
fg = 129
|
||||||
|
if ctx.container:
|
||||||
|
fg = 160
|
||||||
|
if ctx.directory:
|
||||||
|
attr |= bold
|
||||||
|
fg = 69
|
||||||
|
elif ctx.executable and not \
|
||||||
|
any((ctx.media, ctx.container,
|
||||||
|
ctx.fifo, ctx.socket)):
|
||||||
|
attr |= bold
|
||||||
|
fg = 46
|
||||||
|
if ctx.socket:
|
||||||
|
attr |= bold
|
||||||
|
fg = 154
|
||||||
|
if ctx.fifo:
|
||||||
|
fg = 190
|
||||||
|
if ctx.device:
|
||||||
|
attr |= bold
|
||||||
|
fg = 226
|
||||||
|
if ctx.link:
|
||||||
|
fg = 111 if ctx.good else 196
|
||||||
|
if ctx.tag_marker and not ctx.selected:
|
||||||
|
attr |= bold
|
||||||
|
fg = white
|
||||||
|
if not ctx.selected and (ctx.cut or ctx.copied):
|
||||||
|
attr |= bold
|
||||||
|
fg = black
|
||||||
|
if ctx.main_column:
|
||||||
|
if ctx.selected:
|
||||||
|
attr |= bold
|
||||||
|
if ctx.marked:
|
||||||
|
attr |= bold
|
||||||
|
fg = yellow
|
||||||
|
if ctx.badinfo:
|
||||||
|
if attr & reverse:
|
||||||
|
bg = magenta
|
||||||
|
else:
|
||||||
|
fg = magenta
|
||||||
|
|
||||||
|
if ctx.inactive_pane:
|
||||||
|
fg = cyan
|
||||||
|
|
||||||
|
elif ctx.in_titlebar:
|
||||||
|
if ctx.hostname:
|
||||||
|
fg = red if ctx.bad else green
|
||||||
|
elif ctx.directory:
|
||||||
|
fg = blue
|
||||||
|
elif ctx.tab:
|
||||||
|
if ctx.good:
|
||||||
|
bg = green
|
||||||
|
elif ctx.link:
|
||||||
|
fg = cyan
|
||||||
|
attr |= bold
|
||||||
|
|
||||||
|
elif ctx.in_statusbar:
|
||||||
|
if ctx.permissions:
|
||||||
|
if ctx.good:
|
||||||
|
fg = cyan
|
||||||
|
elif ctx.bad:
|
||||||
|
fg = magenta
|
||||||
|
if ctx.marked:
|
||||||
|
attr |= bold | reverse
|
||||||
|
fg = yellow
|
||||||
|
if ctx.frozen:
|
||||||
|
attr |= bold | reverse
|
||||||
|
fg = cyan
|
||||||
|
if ctx.message:
|
||||||
|
if ctx.bad:
|
||||||
|
attr |= bold
|
||||||
|
fg = red
|
||||||
|
if ctx.loaded:
|
||||||
|
bg = self.progress_bar_color
|
||||||
|
if ctx.vcsinfo:
|
||||||
|
fg = blue
|
||||||
|
attr &= ~bold
|
||||||
|
if ctx.vcscommit:
|
||||||
|
fg = yellow
|
||||||
|
attr &= ~bold
|
||||||
|
if ctx.vcsdate:
|
||||||
|
fg = cyan
|
||||||
|
attr &= ~bold
|
||||||
|
|
||||||
|
if ctx.text:
|
||||||
|
if ctx.highlight:
|
||||||
|
attr |= reverse
|
||||||
|
|
||||||
|
if ctx.in_taskview:
|
||||||
|
if ctx.title:
|
||||||
|
fg = blue
|
||||||
|
|
||||||
|
if ctx.selected:
|
||||||
|
attr |= reverse
|
||||||
|
|
||||||
|
if ctx.loaded:
|
||||||
|
if ctx.selected:
|
||||||
|
fg = self.progress_bar_color
|
||||||
|
else:
|
||||||
|
bg = self.progress_bar_color
|
||||||
|
|
||||||
|
if ctx.vcsfile and not ctx.selected:
|
||||||
|
attr &= ~bold
|
||||||
|
if ctx.vcsconflict:
|
||||||
|
fg = magenta
|
||||||
|
elif ctx.vcsuntracked:
|
||||||
|
fg = cyan
|
||||||
|
elif ctx.vcschanged:
|
||||||
|
fg = red
|
||||||
|
elif ctx.vcsunknown:
|
||||||
|
fg = red
|
||||||
|
elif ctx.vcsstaged:
|
||||||
|
fg = green
|
||||||
|
elif ctx.vcssync:
|
||||||
|
fg = green
|
||||||
|
elif ctx.vcsignored:
|
||||||
|
fg = default
|
||||||
|
|
||||||
|
elif ctx.vcsremote and not ctx.selected:
|
||||||
|
attr &= ~bold
|
||||||
|
if ctx.vcssync or ctx.vcsnone:
|
||||||
|
fg = green
|
||||||
|
elif ctx.vcsbehind:
|
||||||
|
fg = red
|
||||||
|
elif ctx.vcsahead:
|
||||||
|
fg = blue
|
||||||
|
elif ctx.vcsdiverged:
|
||||||
|
fg = magenta
|
||||||
|
elif ctx.vcsunknown:
|
||||||
|
fg = red
|
||||||
|
|
||||||
|
return fg, bg, attr
|
Loading…
Reference in New Issue