diff options
author | arobase-che <girbenhed@gmail.com> | 2016-01-19 19:14:18 +0100 |
---|---|---|
committer | arobase-che <girbenhed@gmail.com> | 2016-01-19 19:14:18 +0100 |
commit | 960dc04fe94780d42a220e03daf5c8a0c9515256 (patch) | |
tree | 8fd90944b691c375180612309420300b7c871ce6 | |
parent | Init commit (diff) |
Color
-rw-r--r-- | bookmarks | 6 | ||||
-rw-r--r-- | colorschemes/__init__.py | 0 | ||||
-rw-r--r-- | colorschemes/__pycache__/__init__.cpython-35.opt-1.pyc | bin | 0 -> 133 bytes | |||
-rw-r--r-- | colorschemes/__pycache__/try.cpython-35.opt-1.pyc | bin | 0 -> 2547 bytes | |||
-rw-r--r-- | colorschemes/try.py | 148 | ||||
-rw-r--r-- | history | 22 | ||||
-rw-r--r-- | rc.conf | 6 |
7 files changed, 173 insertions, 9 deletions
@@ -1,4 +1,4 @@ -M:/home/ache -k:/home/ache/Téléchargements ':/home/ache -m:/home/ache +m:/media +k:/home/ache/Téléchargements +M:/home/ache diff --git a/colorschemes/__init__.py b/colorschemes/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/colorschemes/__init__.py diff --git a/colorschemes/__pycache__/__init__.cpython-35.opt-1.pyc b/colorschemes/__pycache__/__init__.cpython-35.opt-1.pyc Binary files differnew file mode 100644 index 0000000..5e1e5a2 --- /dev/null +++ b/colorschemes/__pycache__/__init__.cpython-35.opt-1.pyc diff --git a/colorschemes/__pycache__/try.cpython-35.opt-1.pyc b/colorschemes/__pycache__/try.cpython-35.opt-1.pyc Binary files differnew file mode 100644 index 0000000..fc589ad --- /dev/null +++ b/colorschemes/__pycache__/try.cpython-35.opt-1.pyc diff --git a/colorschemes/try.py b/colorschemes/try.py new file mode 100644 index 0000000..7197a33 --- /dev/null +++ b/colorschemes/try.py @@ -0,0 +1,148 @@ +from ranger.gui.colorscheme import ColorScheme +from ranger.gui.color import * + +class Default(ColorScheme): + progress_bar_color = blue + + def use(self, context): + fg, bg, attr = default_colors + + if context.reset: + return default_colors + + elif context.in_browser: + if context.selected: + attr = reverse + else: + attr = normal + if context.empty or context.error: + bg = red + if context.border: + fg = default + if context.media: + if context.image: + fg = yellow + else: + fg = magenta + if context.container: + fg = red + if context.directory: + attr |= bold + fg = black + elif context.executable and not \ + any((context.media, context.container, + context.fifo, context.socket)): + attr |= bold + fg = green + if context.socket: + fg = magenta + attr |= bold + if context.fifo or context.device: + fg = yellow + if context.device: + attr |= bold + if context.link: + fg = context.good and cyan or magenta + if context.tag_marker and not context.selected: + attr |= bold + if fg in (red, magenta): + fg = blue + else: + fg = red + if not context.selected and (context.cut or context.copied): + fg = black + attr |= bold + if context.main_column: + if context.selected: + attr |= bold + if context.marked: + attr |= bold + fg = yellow + if context.badinfo: + if attr & reverse: + bg = magenta + else: + fg = magenta + + elif context.in_titlebar: + attr |= bold + if context.hostname: + fg = context.bad and red or green + elif context.directory: + fg = blue + elif context.tab: + if context.good: + bg = green + elif context.link: + fg = cyan + + elif context.in_statusbar: + if context.permissions: + if context.good: + fg = cyan + elif context.bad: + fg = magenta + if context.marked: + attr |= bold | reverse + fg = yellow + if context.message: + if context.bad: + attr |= bold + fg = red + if context.loaded: + bg = self.progress_bar_color + if context.vcsinfo: + fg = blue + attr &= ~bold + if context.vcscommit: + fg = yellow + attr &= ~bold + + + if context.text: + if context.highlight: + attr |= reverse + + if context.in_taskview: + if context.title: + fg = blue + + if context.selected: + attr |= reverse + + if context.loaded: + if context.selected: + fg = self.progress_bar_color + else: + bg = self.progress_bar_color + + + if context.vcsfile and not context.selected: + attr &= ~bold + if context.vcsconflict: + fg = magenta + elif context.vcschanged: + fg = red + elif context.vcsunknown: + fg = red + elif context.vcsstaged: + fg = green + elif context.vcssync: + fg = green + elif context.vcsignored: + fg = default + + elif context.vcsremote and not context.selected: + attr &= ~bold + if context.vcssync: + fg = green + elif context.vcsbehind: + fg = red + elif context.vcsahead: + fg = blue + elif context.vcsdiverged: + fg = magenta + elif context.vcsunknown: + fg = red + + return fg, bg, attr @@ -6,10 +6,8 @@ open_with filter .webm open_with vlc -filter .mp4 find filter -open_with filter .swf open_with flash open_with flashplayer @@ -19,6 +17,24 @@ shell shell sudo mount /mnt/Archive search M search Mus - filter mp4 +find Dow +find Télé +filter pdf +filter png +open_with gthumb +find Im +find .conf + +open_with +open_with vim +search Hor +search eti +open_with gThumb +find Doc +find phon +filter .mp4 delete +filter +search Témoi +search DDB @@ -82,7 +82,7 @@ set show_hidden_bookmarks true # Which colorscheme to use? These colorschemes are available by default: # default, jungle, snow, solarized -set colorscheme default +set colorscheme try # Preview files on the rightmost column? # And collapse (shrink) the last column if there is nothing to preview? @@ -107,7 +107,7 @@ set draw_borders false set dirname_in_tabs false # Enable the mouse support? -set mouse_enabled true +#set mouse_enabled true # Display the file size in the main column or status bar? set display_size_in_main_column true @@ -435,7 +435,7 @@ map zd toggle_option sort_directories_first map zh toggle_option show_hidden map <C-h> toggle_option show_hidden map zi toggle_option flushinput -map zm toggle_option mouse_enabled +#map zm toggle_option mouse_enabled map zp toggle_option preview_files map zP toggle_option preview_directories map zs toggle_option sort_case_insensitive |