From de31ee2c5689148125a9ad52427e436651949c42 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Mon, 18 Jul 2022 17:36:58 +0200 Subject: [PATCH] Update --- conf.d/alacritty/alacritty.yml | 671 +++++++++-------------- conf.d/mpd/mpd.conf | 5 +- conf.d/ncmpcpp/config | 6 +- conf.d/nvim/coc-settings.json | 8 + conf.d/nvim/coc.vim | 153 ++++++ conf.d/nvim/dashboard.lua | 55 ++ conf.d/nvim/ddc.vim | 44 ++ conf.d/nvim/ddu.vim | 56 ++ conf.d/nvim/devicons.lua | 5 + conf.d/nvim/init.vim | 75 +-- conf.d/nvim/keybindings.vim | 92 +--- conf.d/nvim/plug.vim | 41 +- conf.d/qutebrowser/autoconfig.yml | 4 + conf.d/qutebrowser/config.py | 4 +- conf.d/texstudio/macro/Macro_13.txsMacro | 17 + conf.d/texstudio/macro/Macro_14.txsMacro | 29 +- conf.d/texstudio/macro/Macro_15.txsMacro | 13 - conf.d/zim/zshenv | 2 +- conf/lgogdownloader.cfg | 6 +- conf/msmtprc | 2 +- conf/tmux.conf | 1 - conf/tmux.conf.local | 15 +- 22 files changed, 674 insertions(+), 630 deletions(-) create mode 100644 conf.d/nvim/coc-settings.json create mode 100644 conf.d/nvim/coc.vim create mode 100644 conf.d/nvim/dashboard.lua create mode 100644 conf.d/nvim/ddc.vim create mode 100644 conf.d/nvim/ddu.vim create mode 100644 conf.d/nvim/devicons.lua create mode 100644 conf.d/texstudio/macro/Macro_13.txsMacro delete mode 100644 conf.d/texstudio/macro/Macro_15.txsMacro diff --git a/conf.d/alacritty/alacritty.yml b/conf.d/alacritty/alacritty.yml index 3a996b6..2b3e4e7 100644 --- a/conf.d/alacritty/alacritty.yml +++ b/conf.d/alacritty/alacritty.yml @@ -10,19 +10,18 @@ # to the user's home directory starting with `~/`. # import: # - ~/.config/alacritty/panda.yml - # Any items in the `env` entry below will be added as # environment variables. Some entries may override variables # set by alacritty itself. #env: - # TERM variable - # - # This value is used to set the `$TERM` environment variable for - # each instance of Alacritty. If it is not present, alacritty will - # check the local terminfo database and use `alacritty` if it is - # available, otherwise `xterm-256color` is used. - #TERM: alacritty - +# TERM variable +# +# This value is used to set the `$TERM` environment variable for +# each instance of Alacritty. If it is not present, alacritty will +# check the local terminfo database and use `alacritty` if it is +# available, otherwise `xterm-256color` is used. +#TERM: alacritty +TERM: xterm-256color window: # Window dimensions (changes require restart) # @@ -32,7 +31,6 @@ window: #dimensions: # columns: 0 # lines: 0 - # Window position (changes require restart) # # Specified in number of pixels. @@ -40,7 +38,6 @@ window: #position: # x: 0 # y: 0 - # Window padding (changes require restart) # # Blank space added around the window in pixels. This padding is scaled @@ -48,10 +45,8 @@ window: #padding: # x: 0 # y: 0 - # Spread additional padding evenly around the terminal content. #dynamic_padding: false - # Window decorations # # Values for `decorations`: @@ -74,7 +69,6 @@ window: # Values for `startup_mode` (macOS only): # - SimpleFullscreen #startup_mode: Windowed - # Window title title: Alacritty @@ -83,96 +77,81 @@ window: # Window class (Linux/BSD only): #class: - # Application instance name - #instance: Alacritty - # General application class - #general: Alacritty - + # Application instance name + #instance: Alacritty + # General application class + #general: Alacritty # GTK theme variant (Linux/BSD only) # # Override the variant of the GTK theme. Commonly supported values are `dark` # and `light`. Set this to `None` to use the default theme variant. gtk_theme_variant: dark -#scrolling: + #scrolling: # Maximum number of lines in the scrollback buffer. # Specifying '0' will disable scrolling. #history: 10000 - # Scrolling distance multiplier. #multiplier: 3 - -# Font configuration -#font: + # Font configuration + #font: # Normal (roman) font face #normal: - # Font family - # - # Default: - # - (macOS) Menlo - # - (Linux/BSD) monospace - # - (Windows) Consolas - #family: monospace - - # The `style` can be specified to pick a specific face. - #style: Regular - + # Font family + # + # Default: + # - (macOS) Menlo + # - (Linux/BSD) monospace + # - (Windows) Consolas + #family: monospace + # The `style` can be specified to pick a specific face. + #style: Regular # Bold font face #bold: - # Font family - # - # If the bold family is not specified, it will fall back to the - # value specified for the normal font. - #family: monospace - - # The `style` can be specified to pick a specific face. - #style: Bold - + # Font family + # + # If the bold family is not specified, it will fall back to the + # value specified for the normal font. + #family: monospace + # The `style` can be specified to pick a specific face. + #style: Bold # Italic font face #italic: - # Font family - # - # If the italic family is not specified, it will fall back to the - # value specified for the normal font. - #family: monospace - - # The `style` can be specified to pick a specific face. - #style: Italic - + # Font family + # + # If the italic family is not specified, it will fall back to the + # value specified for the normal font. + #family: monospace + # The `style` can be specified to pick a specific face. + #style: Italic # Bold italic font face #bold_italic: - # Font family - # - # If the bold italic family is not specified, it will fall back to the - # value specified for the normal font. - #family: monospace - - # The `style` can be specified to pick a specific face. - #style: Bold Italic - + # Font family + # + # If the bold italic family is not specified, it will fall back to the + # value specified for the normal font. + #family: monospace + # The `style` can be specified to pick a specific face. + #style: Bold Italic # Point size #size: 11.0 - # Offset is the extra space around each character. `offset.y` can be thought # of as modifying the line spacing, and `offset.x` as modifying the letter # spacing. #offset: # x: 0 # y: 0 - # Glyph offset determines the locations of the glyphs within their cells with # the default being at the bottom. Increasing `x` moves the glyph to the # right, increasing `y` moves the glyph upward. #glyph_offset: # x: 0 # y: 0 - # Thin stroke font rendering (macOS only) # # Thin strokes are suitable for retina displays, but for non-retina screens # it is recommended to set `use_thin_strokes` to `false`. #use_thin_strokes: true - # Background opacity # # Window opacity as a floating point number from `0.0` to `1.0`. @@ -181,193 +160,79 @@ window: # If `true`, bold text is drawn using the bright color variants. #draw_bold_text_with_bright_colors: false - # Colors (Tomorrow Night) colors: - # Default colors + name: astromouse + author: "" primary: - background: '#000000' - foreground: '#c5c8c6' - - # Bright and dim foreground colors - # - # The dimmed foreground color is calculated automatically if it is not - # present. If the bright foreground color is not set, or - # `draw_bold_text_with_bright_colors` is `false`, the normal foreground - # color will be used. - dim_foreground: '#828482' - bright_foreground: '#eaeaea' - - # Cursor colors - # - # Colors which should be used to draw the terminal cursor. - # - # Allowed values are CellForeground/CellBackground, which reference the - # affected cell, or hexadecimal colors like #ff00ff. + background: "#000000" + foreground: "#ffffff" cursor: - text: CellBackground - cursor: CellForeground - - # Vi mode cursor colors - # - # Colors for the cursor when the vi mode is active. - # - # Allowed values are CellForeground/CellBackground, which reference the - # affected cell, or hexadecimal colors like #ff00ff. - vi_mode_cursor: - text: CellBackground - cursor: CellForeground - - # Search colors - # - # Colors used for the search bar and match highlighting. - search: - # Allowed values are CellForeground/CellBackground, which reference the - # affected cell, or hexadecimal colors like #ff00ff. - matches: - foreground: '#000000' - background: '#ffffff' - focused_match: - foreground: '#ffffff' - background: '#000000' - - bar: - background: '#c5c8c6' - foreground: '#1d1f21' - - # Keyboard regex hints - hints: - # First character in the hint label - # - # Allowed values are CellForeground/CellBackground, which reference the - # affected cell, or hexadecimal colors like #ff00ff. - start: - foreground: '#1d1f21' - background: '#e9ff5e' - - # All characters after the first one in the hint label - # - # Allowed values are CellForeground/CellBackground, which reference the - # affected cell, or hexadecimal colors like #ff00ff. - end: - foreground: '#e9ff5e' - background: '#1d1f21' - - # Line indicator - # - # Color used for the indicator displaying the position in history during - # search and vi mode. - # - # By default, these will use the opposing primary color. - line_indicator: - foreground: None - background: None - - # Selection colors - # - # Colors which should be used to draw the selection area. - # - # Allowed values are CellForeground/CellBackground, which reference the - # affected cell, or hexadecimal colors like #ff00ff. - selection: - text: CellBackground - background: CellForeground - - # Normal colors + text: "#000000" + cursor: "#ffffff" normal: - black: '#1d1f21' - red: '#cc6666' - green: '#b5bd68' - yellow: '#f0c674' - blue: '#81a2be' - magenta: '#b294bb' - cyan: '#8abeb7' - white: '#c5c8c6' - - # Bright colors + black: "#1c1c1c" + red: "#d770af" + green: "#9acc79" + yellow: "#d0d26b" + blue: "#77b6c5" + magenta: "#a488d9" + cyan: "#7fcab3" + white: "#8d8d8d" bright: - black: '#666666' - red: '#d54e53' - green: '#b9ca4a' - yellow: '#e7c547' - blue: '#7aa6da' - magenta: '#c397d8' - cyan: '#70c0b1' - white: '#eaeaea' - - # Dim colors - # - # If the dim colors are not set, they will be calculated automatically based - # on the `normal` colors. - dim: - black: '#131415' - red: '#864343' - green: '#777c44' - yellow: '#9e824c' - blue: '#556a7d' - magenta: '#75617b' - cyan: '#5b7d78' - white: '#828482' - - # Indexed Colors - # - # The indexed colors include all colors from 16 to 256. - # When these are not set, they're filled with sensible defaults. - # - # Example: - # `- { index: 16, color: '#ff00ff' }` - # + black: "#3d3a3a" + red: "#d28abf" + green: "#8fb676" + yellow: "#c8bc45" + blue: "#8fa7b9" + magenta: "#bd89de" + cyan: "#6ec2a8" + white: "#dad3d3" indexed_colors: [] # Bell # # The bell is rung every time the BEL control character is received. #bell: - # Visual Bell Animation - # - # Animation effect for flashing the screen when the visual bell is rung. - # - # Values for `animation`: - # - Ease - # - EaseOut - # - EaseOutSine - # - EaseOutQuad - # - EaseOutCubic - # - EaseOutQuart - # - EaseOutQuint - # - EaseOutExpo - # - EaseOutCirc - # - Linear - #animation: EaseOutExpo - - # Duration of the visual bell flash in milliseconds. A `duration` of `0` will - # disable the visual bell animation. - #duration: 0 - - # Visual bell animation color. - #color: '#ffffff' - - # Bell Command - # - # This program is executed whenever the bell is rung. - # - # When set to `command: None`, no command will be executed. - # - # Example: - # command: - # program: notify-send - # args: ["Hello, World!"] - # - #command: None - +# Visual Bell Animation +# +# Animation effect for flashing the screen when the visual bell is rung. +# +# Values for `animation`: +# - Ease +# - EaseOut +# - EaseOutSine +# - EaseOutQuad +# - EaseOutCubic +# - EaseOutQuart +# - EaseOutQuint +# - EaseOutExpo +# - EaseOutCirc +# - Linear +#animation: EaseOutExpo +# Duration of the visual bell flash in milliseconds. A `duration` of `0` will +# disable the visual bell animation. +#duration: 0 +# Visual bell animation color. +#color: '#ffffff' +# Bell Command +# +# This program is executed whenever the bell is rung. +# +# When set to `command: None`, no command will be executed. +# +# Example: +# command: +# program: notify-send +# args: ["Hello, World!"] +# +#command: None #selection: - # This string contains all characters that are used as separators for - # "semantic words" in Alacritty. - #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" - - # When set to `true`, selected text will be copied to the primary clipboard. - #save_to_clipboard: false - +# This string contains all characters that are used as separators for +# "semantic words" in Alacritty. +#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" +# When set to `true`, selected text will be copied to the primary clipboard. +#save_to_clipboard: false cursor: # Cursor style style: @@ -387,7 +252,6 @@ cursor: # - On: Enable blinking by default # - Always: Force the cursor to always blink blinking: On - # Vi mode cursor style # # If the vi mode cursor style is `None` or not specified, it will fall back to @@ -395,18 +259,14 @@ cursor: # # See `cursor.style` for available options. #vi_mode_style: None - # Cursor blinking interval in milliseconds. #blink_interval: 750 - # If this is `true`, the cursor will be rendered as a hollow box when the # window is not focused. #unfocused_hollow: true - # Thickness of the cursor relative to the cell width as floating point number # from `0.0` to `1.0`. #thickness: 0.15 - # Live config reload (changes require restart) live_config_reload: true @@ -424,72 +284,65 @@ live_config_reload: true # program: /bin/bash # args: # - --login - # Startup directory # # Directory the shell is started in. If this is unset, or `None`, the working # directory of the parent process will be used. #working_directory: None - # Send ESC (\x1b) before characters when alt is pressed. #alt_send_esc: true - #mouse: - # Click settings - # - # The `double_click` and `triple_click` settings control the time - # alacritty should wait for accepting multiple clicks as one double - # or triple click. - #double_click: { threshold: 300 } - #triple_click: { threshold: 300 } - - # If this is `true`, the cursor is temporarily hidden when typing. - #hide_when_typing: false - +# Click settings +# +# The `double_click` and `triple_click` settings control the time +# alacritty should wait for accepting multiple clicks as one double +# or triple click. +#double_click: { threshold: 300 } +#triple_click: { threshold: 300 } +# If this is `true`, the cursor is temporarily hidden when typing. +#hide_when_typing: false # Regex hints # # Terminal hints can be used to find text in the visible part of the terminal # and pipe it to other applications. #hints: - # Keys used for the hint labels. - #alphabet: "jfkdls;ahgurieowpq" - - # List with all available hints - # - # Each hint must have a `regex` and either an `action` or a `command` field. - # The fields `mouse`, `binding` and `post_processing` are optional. - # - # The fields `command`, `binding.key`, `binding.mods`, `binding.mode` and - # `mouse.mods` accept the same values as they do in the `key_bindings` section. - # - # The `mouse.enabled` field controls if the hint should be underlined while - # the mouse with all `mouse.mods` keys held or the vi mode cursor is above it. - # - # If the `post_processing` field is set to `true`, heuristics will be used to - # shorten the match if there are characters likely not to be part of the hint - # (e.g. a trailing `.`). This is most useful for URIs. - # - # Values for `action`: - # - Copy - # Copy the hint's text to the clipboard. - # - Paste - # Paste the hint's text to the terminal or search. - # - Select - # Select the hint's text. - # - MoveViModeCursor - # Move the vi mode cursor to the beginning of the hint. - #enabled: - # - regex: "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\ - # [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+" - # command: xdg-open - # post_processing: true - # mouse: - # enabled: true - # mods: None - # binding: - # key: U - # mods: Control|Shift - +# Keys used for the hint labels. +#alphabet: "jfkdls;ahgurieowpq" +# List with all available hints +# +# Each hint must have a `regex` and either an `action` or a `command` field. +# The fields `mouse`, `binding` and `post_processing` are optional. +# +# The fields `command`, `binding.key`, `binding.mods`, `binding.mode` and +# `mouse.mods` accept the same values as they do in the `key_bindings` section. +# +# The `mouse.enabled` field controls if the hint should be underlined while +# the mouse with all `mouse.mods` keys held or the vi mode cursor is above it. +# +# If the `post_processing` field is set to `true`, heuristics will be used to +# shorten the match if there are characters likely not to be part of the hint +# (e.g. a trailing `.`). This is most useful for URIs. +# +# Values for `action`: +# - Copy +# Copy the hint's text to the clipboard. +# - Paste +# Paste the hint's text to the terminal or search. +# - Select +# Select the hint's text. +# - MoveViModeCursor +# Move the vi mode cursor to the beginning of the hint. +#enabled: +# - regex: "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\ +# [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+" +# command: xdg-open +# post_processing: true +# mouse: +# enabled: true +# mods: None +# binding: +# key: U +# mods: Control|Shift # Mouse bindings # # Mouse bindings are specified as a list of objects, much like the key @@ -515,7 +368,6 @@ live_config_reload: true # - `mods` (see key bindings) #mouse_bindings: # - { mouse: Middle, action: PasteSelection } - # Key bindings # # Key bindings are specified as a list of objects. For example, this is the @@ -721,127 +573,118 @@ live_config_reload: true # If the same trigger is assigned to multiple actions, all of them are executed # in the order they were defined in. #key_bindings: - #- { key: Paste, action: Paste } - #- { key: Copy, action: Copy } - #- { key: L, mods: Control, action: ClearLogNotice } - #- { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" } - #- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, } - #- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown } - #- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, } - #- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom } - - # Vi Mode - #- { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode } - #- { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom } - #- { key: Escape, mode: Vi|~Search, action: ClearSelection } - #- { key: I, mode: Vi|~Search, action: ToggleViMode } - #- { key: I, mode: Vi|~Search, action: ScrollToBottom } - #- { key: C, mods: Control, mode: Vi|~Search, action: ToggleViMode } - #- { key: Y, mods: Control, mode: Vi|~Search, action: ScrollLineUp } - #- { key: E, mods: Control, mode: Vi|~Search, action: ScrollLineDown } - #- { key: G, mode: Vi|~Search, action: ScrollToTop } - #- { key: G, mods: Shift, mode: Vi|~Search, action: ScrollToBottom } - #- { key: B, mods: Control, mode: Vi|~Search, action: ScrollPageUp } - #- { key: F, mods: Control, mode: Vi|~Search, action: ScrollPageDown } - #- { key: U, mods: Control, mode: Vi|~Search, action: ScrollHalfPageUp } - #- { key: D, mods: Control, mode: Vi|~Search, action: ScrollHalfPageDown } - #- { key: Y, mode: Vi|~Search, action: Copy } - #- { key: Y, mode: Vi|~Search, action: ClearSelection } - #- { key: Copy, mode: Vi|~Search, action: ClearSelection } - #- { key: V, mode: Vi|~Search, action: ToggleNormalSelection } - #- { key: V, mods: Shift, mode: Vi|~Search, action: ToggleLineSelection } - #- { key: V, mods: Control, mode: Vi|~Search, action: ToggleBlockSelection } - #- { key: V, mods: Alt, mode: Vi|~Search, action: ToggleSemanticSelection } - #- { key: Return, mode: Vi|~Search, action: Open } - #- { key: K, mode: Vi|~Search, action: Up } - #- { key: J, mode: Vi|~Search, action: Down } - #- { key: H, mode: Vi|~Search, action: Left } - #- { key: L, mode: Vi|~Search, action: Right } - #- { key: Up, mode: Vi|~Search, action: Up } - #- { key: Down, mode: Vi|~Search, action: Down } - #- { key: Left, mode: Vi|~Search, action: Left } - #- { key: Right, mode: Vi|~Search, action: Right } - #- { key: Key0, mode: Vi|~Search, action: First } - #- { key: Key4, mods: Shift, mode: Vi|~Search, action: Last } - #- { key: Key6, mods: Shift, mode: Vi|~Search, action: FirstOccupied } - #- { key: H, mods: Shift, mode: Vi|~Search, action: High } - #- { key: M, mods: Shift, mode: Vi|~Search, action: Middle } - #- { key: L, mods: Shift, mode: Vi|~Search, action: Low } - #- { key: B, mode: Vi|~Search, action: SemanticLeft } - #- { key: W, mode: Vi|~Search, action: SemanticRight } - #- { key: E, mode: Vi|~Search, action: SemanticRightEnd } - #- { key: B, mods: Shift, mode: Vi|~Search, action: WordLeft } - #- { key: W, mods: Shift, mode: Vi|~Search, action: WordRight } - #- { key: E, mods: Shift, mode: Vi|~Search, action: WordRightEnd } - #- { key: Key5, mods: Shift, mode: Vi|~Search, action: Bracket } - #- { key: Slash, mode: Vi|~Search, action: SearchForward } - #- { key: Slash, mods: Shift, mode: Vi|~Search, action: SearchBackward } - #- { key: N, mode: Vi|~Search, action: SearchNext } - #- { key: N, mods: Shift, mode: Vi|~Search, action: SearchPrevious } - - # Search Mode - #- { key: Return, mode: Search|Vi, action: SearchConfirm } - #- { key: Escape, mode: Search, action: SearchCancel } - #- { key: C, mods: Control, mode: Search, action: SearchCancel } - #- { key: U, mods: Control, mode: Search, action: SearchClear } - #- { key: W, mods: Control, mode: Search, action: SearchDeleteWord } - #- { key: P, mods: Control, mode: Search, action: SearchHistoryPrevious } - #- { key: N, mods: Control, mode: Search, action: SearchHistoryNext } - #- { key: Up, mode: Search, action: SearchHistoryPrevious } - #- { key: Down, mode: Search, action: SearchHistoryNext } - #- { key: Return, mode: Search|~Vi, action: SearchFocusNext } - #- { key: Return, mods: Shift, mode: Search|~Vi, action: SearchFocusPrevious } - - # (Windows, Linux, and BSD only) - #- { key: V, mods: Control|Shift, mode: ~Vi, action: Paste } - #- { key: C, mods: Control|Shift, action: Copy } - #- { key: F, mods: Control|Shift, mode: ~Search, action: SearchForward } - #- { key: B, mods: Control|Shift, mode: ~Search, action: SearchBackward } - #- { key: C, mods: Control|Shift, mode: Vi|~Search, action: ClearSelection } - #- { key: Insert, mods: Shift, action: PasteSelection } - #- { key: Key0, mods: Control, action: ResetFontSize } - #- { key: Equals, mods: Control, action: IncreaseFontSize } - #- { key: Plus, mods: Control, action: IncreaseFontSize } - #- { key: NumpadAdd, mods: Control, action: IncreaseFontSize } - #- { key: Minus, mods: Control, action: DecreaseFontSize } - #- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize } - - # (Windows only) - #- { key: Return, mods: Alt, action: ToggleFullscreen } - - # (macOS only) - #- { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" } - #- { key: K, mods: Command, mode: ~Vi|~Search, action: ClearHistory } - #- { key: Key0, mods: Command, action: ResetFontSize } - #- { key: Equals, mods: Command, action: IncreaseFontSize } - #- { key: Plus, mods: Command, action: IncreaseFontSize } - #- { key: NumpadAdd, mods: Command, action: IncreaseFontSize } - #- { key: Minus, mods: Command, action: DecreaseFontSize } - #- { key: NumpadSubtract, mods: Command, action: DecreaseFontSize } - #- { key: V, mods: Command, action: Paste } - #- { key: C, mods: Command, action: Copy } - #- { key: C, mods: Command, mode: Vi|~Search, action: ClearSelection } - #- { key: H, mods: Command, action: Hide } - #- { key: H, mods: Command|Alt, action: HideOtherApplications } - #- { key: M, mods: Command, action: Minimize } - #- { key: Q, mods: Command, action: Quit } - #- { key: W, mods: Command, action: Quit } - #- { key: N, mods: Command, action: SpawnNewInstance } - #- { key: F, mods: Command|Control, action: ToggleFullscreen } - #- { key: F, mods: Command, mode: ~Search, action: SearchForward } - #- { key: B, mods: Command, mode: ~Search, action: SearchBackward } - +#- { key: Paste, action: Paste } +#- { key: Copy, action: Copy } +#- { key: L, mods: Control, action: ClearLogNotice } +#- { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" } +#- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, } +#- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown } +#- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, } +#- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom } +# Vi Mode +#- { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode } +#- { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom } +#- { key: Escape, mode: Vi|~Search, action: ClearSelection } +#- { key: I, mode: Vi|~Search, action: ToggleViMode } +#- { key: I, mode: Vi|~Search, action: ScrollToBottom } +#- { key: C, mods: Control, mode: Vi|~Search, action: ToggleViMode } +#- { key: Y, mods: Control, mode: Vi|~Search, action: ScrollLineUp } +#- { key: E, mods: Control, mode: Vi|~Search, action: ScrollLineDown } +#- { key: G, mode: Vi|~Search, action: ScrollToTop } +#- { key: G, mods: Shift, mode: Vi|~Search, action: ScrollToBottom } +#- { key: B, mods: Control, mode: Vi|~Search, action: ScrollPageUp } +#- { key: F, mods: Control, mode: Vi|~Search, action: ScrollPageDown } +#- { key: U, mods: Control, mode: Vi|~Search, action: ScrollHalfPageUp } +#- { key: D, mods: Control, mode: Vi|~Search, action: ScrollHalfPageDown } +#- { key: Y, mode: Vi|~Search, action: Copy } +#- { key: Y, mode: Vi|~Search, action: ClearSelection } +#- { key: Copy, mode: Vi|~Search, action: ClearSelection } +#- { key: V, mode: Vi|~Search, action: ToggleNormalSelection } +#- { key: V, mods: Shift, mode: Vi|~Search, action: ToggleLineSelection } +#- { key: V, mods: Control, mode: Vi|~Search, action: ToggleBlockSelection } +#- { key: V, mods: Alt, mode: Vi|~Search, action: ToggleSemanticSelection } +#- { key: Return, mode: Vi|~Search, action: Open } +#- { key: K, mode: Vi|~Search, action: Up } +#- { key: J, mode: Vi|~Search, action: Down } +#- { key: H, mode: Vi|~Search, action: Left } +#- { key: L, mode: Vi|~Search, action: Right } +#- { key: Up, mode: Vi|~Search, action: Up } +#- { key: Down, mode: Vi|~Search, action: Down } +#- { key: Left, mode: Vi|~Search, action: Left } +#- { key: Right, mode: Vi|~Search, action: Right } +#- { key: Key0, mode: Vi|~Search, action: First } +#- { key: Key4, mods: Shift, mode: Vi|~Search, action: Last } +#- { key: Key6, mods: Shift, mode: Vi|~Search, action: FirstOccupied } +#- { key: H, mods: Shift, mode: Vi|~Search, action: High } +#- { key: M, mods: Shift, mode: Vi|~Search, action: Middle } +#- { key: L, mods: Shift, mode: Vi|~Search, action: Low } +#- { key: B, mode: Vi|~Search, action: SemanticLeft } +#- { key: W, mode: Vi|~Search, action: SemanticRight } +#- { key: E, mode: Vi|~Search, action: SemanticRightEnd } +#- { key: B, mods: Shift, mode: Vi|~Search, action: WordLeft } +#- { key: W, mods: Shift, mode: Vi|~Search, action: WordRight } +#- { key: E, mods: Shift, mode: Vi|~Search, action: WordRightEnd } +#- { key: Key5, mods: Shift, mode: Vi|~Search, action: Bracket } +#- { key: Slash, mode: Vi|~Search, action: SearchForward } +#- { key: Slash, mods: Shift, mode: Vi|~Search, action: SearchBackward } +#- { key: N, mode: Vi|~Search, action: SearchNext } +#- { key: N, mods: Shift, mode: Vi|~Search, action: SearchPrevious } +# Search Mode +#- { key: Return, mode: Search|Vi, action: SearchConfirm } +#- { key: Escape, mode: Search, action: SearchCancel } +#- { key: C, mods: Control, mode: Search, action: SearchCancel } +#- { key: U, mods: Control, mode: Search, action: SearchClear } +#- { key: W, mods: Control, mode: Search, action: SearchDeleteWord } +#- { key: P, mods: Control, mode: Search, action: SearchHistoryPrevious } +#- { key: N, mods: Control, mode: Search, action: SearchHistoryNext } +#- { key: Up, mode: Search, action: SearchHistoryPrevious } +#- { key: Down, mode: Search, action: SearchHistoryNext } +#- { key: Return, mode: Search|~Vi, action: SearchFocusNext } +#- { key: Return, mods: Shift, mode: Search|~Vi, action: SearchFocusPrevious } +# (Windows, Linux, and BSD only) +#- { key: V, mods: Control|Shift, mode: ~Vi, action: Paste } +#- { key: C, mods: Control|Shift, action: Copy } +#- { key: F, mods: Control|Shift, mode: ~Search, action: SearchForward } +#- { key: B, mods: Control|Shift, mode: ~Search, action: SearchBackward } +#- { key: C, mods: Control|Shift, mode: Vi|~Search, action: ClearSelection } +#- { key: Insert, mods: Shift, action: PasteSelection } +#- { key: Key0, mods: Control, action: ResetFontSize } +#- { key: Equals, mods: Control, action: IncreaseFontSize } +#- { key: Plus, mods: Control, action: IncreaseFontSize } +#- { key: NumpadAdd, mods: Control, action: IncreaseFontSize } +#- { key: Minus, mods: Control, action: DecreaseFontSize } +#- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize } +# (Windows only) +#- { key: Return, mods: Alt, action: ToggleFullscreen } +# (macOS only) +#- { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" } +#- { key: K, mods: Command, mode: ~Vi|~Search, action: ClearHistory } +#- { key: Key0, mods: Command, action: ResetFontSize } +#- { key: Equals, mods: Command, action: IncreaseFontSize } +#- { key: Plus, mods: Command, action: IncreaseFontSize } +#- { key: NumpadAdd, mods: Command, action: IncreaseFontSize } +#- { key: Minus, mods: Command, action: DecreaseFontSize } +#- { key: NumpadSubtract, mods: Command, action: DecreaseFontSize } +#- { key: V, mods: Command, action: Paste } +#- { key: C, mods: Command, action: Copy } +#- { key: C, mods: Command, mode: Vi|~Search, action: ClearSelection } +#- { key: H, mods: Command, action: Hide } +#- { key: H, mods: Command|Alt, action: HideOtherApplications } +#- { key: M, mods: Command, action: Minimize } +#- { key: Q, mods: Command, action: Quit } +#- { key: W, mods: Command, action: Quit } +#- { key: N, mods: Command, action: SpawnNewInstance } +#- { key: F, mods: Command|Control, action: ToggleFullscreen } +#- { key: F, mods: Command, mode: ~Search, action: SearchForward } +#- { key: B, mods: Command, mode: ~Search, action: SearchBackward } # Colorscheme import: - ~/.config/alacritty/panda.yml - -#debug: + #debug: # Display the time it takes to redraw each frame. #render_timer: false - # Keep the log file after quitting Alacritty. #persistent_logging: false - # Log level # # Values for `log_level`: @@ -852,6 +695,6 @@ import: # - Debug # - Trace #log_level: Warn - # Print all received window events. #print_events: false +theme: Astromouse diff --git a/conf.d/mpd/mpd.conf b/conf.d/mpd/mpd.conf index ab38a86..9b2cb27 100644 --- a/conf.d/mpd/mpd.conf +++ b/conf.d/mpd/mpd.conf @@ -81,8 +81,9 @@ sticker_file "/home/jeff/.config/mpd/sticker.sql" # activation is in use. # # For network -bind_to_address "localhost" -# bind_to_address "127.0.0.1" +#bind_to_address "localhost" +bind_to_address "127.0.0.1" +bind_to_address "192.168.0.1" # # And for Unix Socket # bind_to_address "/home/jeff/.config/mpd/socket" diff --git a/conf.d/ncmpcpp/config b/conf.d/ncmpcpp/config index ca3e4a7..729370a 100644 --- a/conf.d/ncmpcpp/config +++ b/conf.d/ncmpcpp/config @@ -214,8 +214,8 @@ song_library_format "{%n > }{%t}|{%f}" # #alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D} # -#now_playing_prefix = $b -now_playing_prefix = " $2♫$9$2" +now_playing_prefix = "$2$9$2" +# now_playing_prefix = " $2♫$9$2" # #now_playing_suffix = $/b now_playing_suffix = "$9" @@ -283,7 +283,7 @@ browser_playlist_prefix = "$2playlist »$9 " ## # #song_columns_list_format = (20)[]{a} (6f)[green]{NE} (50)[white]{t|f:Title} (20)[cyan]{b} (7f)[magenta]{l} -song_columns_list_format = (4)[]{: } (20)[]{a:Artiste} (6f)[white]{nE:Piste} (50)[white]{t|f:Titre} (20)[white]{b} (7f)[red]{l:Durée} +song_columns_list_format = (4)[]{: } (20)[]{a:Artiste} (50)[white]{t|f:Titre} (6f)[white]{nE:Piste} (20)[white]{b} (7f)[red]{l:Durée} # ##### various settings ##### # diff --git a/conf.d/nvim/coc-settings.json b/conf.d/nvim/coc-settings.json new file mode 100644 index 0000000..05a9d88 --- /dev/null +++ b/conf.d/nvim/coc-settings.json @@ -0,0 +1,8 @@ +{ + "languageserver": { + "digestif": { + "command": "~/bin/digestif", + "filetypes": ["tex", "plaintex", "context"] + } + } +} diff --git a/conf.d/nvim/coc.vim b/conf.d/nvim/coc.vim new file mode 100644 index 0000000..fdc86ff --- /dev/null +++ b/conf.d/nvim/coc.vim @@ -0,0 +1,153 @@ +" File : coc.vim +" Author : Jeff LANCE +" Date : 03.03.2021 +" Last Modified Date: 03.03.2021 +" Last Modified By : Jeff LANCE + +""""""""""""""""""""" +" ____ ___ ____ +" / ___/ _ \ / ___| +" | | | | | | | +" | |__| |_| | |___ +" \____\___/ \____| +" +""""""""""""""""""""" + +" Use tab for trigger completion with characters ahead and navigate. +" NOTE: Use command ':verbose imap ' to make sure tab is not mapped by +" other plugin before putting this into your config. +inoremap + \ pumvisible() ? "\" : + \ check_back_space() ? "\" : + \ coc#refresh() +inoremap pumvisible() ? "\" : "\" + +function! s:check_back_space() abort + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~# '\s' +endfunction + +" Use to trigger completion. +if has('nvim') + inoremap coc#refresh() +else + inoremap coc#refresh() +endif + +" Make auto-select the first completion item and notify coc.nvim to +" format on enter, could be remapped by other vim plugin +inoremap pumvisible() ? coc#_select_confirm() + \: "\u\\=coc#on_enter()\" + +" Use `[g` and `]g` to navigate diagnostics +" Use `:CocDiagnostics` to get all diagnostics of current buffer in location list. +nmap [g (coc-diagnostic-prev) +nmap ]g (coc-diagnostic-next) + +" GoTo code navigation. +nmap gd (coc-definition) +nmap gy (coc-type-definition) +nmap gi (coc-implementation) +nmap gr (coc-references) + +" Use K to show documentation in preview window. +nnoremap K :call show_documentation() + +function! s:show_documentation() + if (index(['vim','help'], &filetype) >= 0) + execute 'h '.expand('') + elseif (coc#rpc#ready()) + call CocActionAsync('doHover') + else + execute '!' . &keywordprg . " " . expand('') + endif +endfunction + +" Highlight the symbol and its references when holding the cursor. +autocmd CursorHold * silent call CocActionAsync('highlight') + +" Symbol renaming. +nmap rn (coc-rename) + +" Formatting selected code. +xmap f (coc-format-selected) +nmap f (coc-format-selected) + +augroup mygroup + autocmd! + " Setup formatexpr specified filetype(s). + autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected') + " Update signature help on jump placeholder. + autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') +augroup end + +" Applying codeAction to the selected region. +" Example: `aap` for current paragraph +xmap a (coc-codeaction-selected) +nmap a (coc-codeaction-selected) + +" Remap keys for applying codeAction to the current buffer. +nmap ac (coc-codeaction) +" Apply AutoFix to problem on the current line. +nmap qf (coc-fix-current) + +" Map function and class text objects +" NOTE: Requires 'textDocument.documentSymbol' support from the language server. +xmap if (coc-funcobj-i) +omap if (coc-funcobj-i) +xmap af (coc-funcobj-a) +omap af (coc-funcobj-a) +xmap ic (coc-classobj-i) +omap ic (coc-classobj-i) +xmap ac (coc-classobj-a) +omap ac (coc-classobj-a) + +" Remap and for scroll float windows/popups. +if has('nvim-0.4.0') || has('patch-8.2.0750') + nnoremap coc#float#has_scroll() ? coc#float#scroll(1) : "\" + nnoremap coc#float#has_scroll() ? coc#float#scroll(0) : "\" + inoremap coc#float#has_scroll() ? "\=coc#float#scroll(1)\" : "\" + inoremap coc#float#has_scroll() ? "\=coc#float#scroll(0)\" : "\" + vnoremap coc#float#has_scroll() ? coc#float#scroll(1) : "\" + vnoremap coc#float#has_scroll() ? coc#float#scroll(0) : "\" +endif + +" Use CTRL-S for selections ranges. +" Requires 'textDocument/selectionRange' support of language server. +nmap (coc-range-select) +xmap (coc-range-select) + +" Add `:Format` command to format current buffer. +command! -nargs=0 Format :call CocAction('format') + +" Add `:Fold` command to fold current buffer. +command! -nargs=? Fold :call CocAction('fold', ) + +" Add `:OR` command for organize imports of the current buffer. +command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport') + +" Add (Neo)Vim's native statusline support. +" NOTE: Please see `:h coc-status` for integrations with external plugins that +" provide custom statusline: lightline.vim, vim-airline. +set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} + +" Mappings for CoCList +" Show all diagnostics. +nnoremap a :CocList diagnostics +" Manage extensions. +nnoremap e :CocList extensions +" Show commands. +nnoremap c :CocList commands +" Find symbol of current document. +nnoremap o :CocList outline +" Search workspace symbols. +nnoremap s :CocList -I symbols +" Do default action for next item. +nnoremap j :CocNext +" Do default action for previous item. +nnoremap k :CocPrev +" Resume latest coc list. +nnoremap p :CocListResume + + +" vim:ft=vim diff --git a/conf.d/nvim/dashboard.lua b/conf.d/nvim/dashboard.lua new file mode 100644 index 0000000..a5df7d0 --- /dev/null +++ b/conf.d/nvim/dashboard.lua @@ -0,0 +1,55 @@ +local home = os.getenv('HOME') +local db = require('dashboard') +-- db.custom_header -- type can be nil,table or function(must be return table in function) + -- if not config will use default banner +-- db.custom_center -- table type and in this table you can set icon,desc,shortcut,action keywords. desc must be exist and type is string + -- icon type is nil or string + -- shortcut type is nil or string also like icon + -- action type can be string or function or nil. + -- if you don't need any one of icon shortcut action ,you can ignore it. +-- db.custom_footer -- type can be nil,table or function(must be return table in function) +-- db.preview_file_Path -- string or function type that mean in function you can dynamic generate height width +-- db.preview_file_height -- number type +-- db.preview_file_width -- number type +-- db.preview_command -- string type +-- db.hide_statusline -- boolean default is true.it will hide statusline in dashboard buffer and auto open in other buffer +-- db.hide_tabline -- boolean default is true.it will hide tabline in dashboard buffer and auto open in other buffer +-- db.session_directory -- string type the directory to store the session file +-- db.header_pad -- number type default is 1 +-- db.center_pad -- number type default is 1 +-- db.footer_pad -- number type default is 1 + +local dotfiles = home .. '/dotfiles' + +db.custom_center = { + { + icon = nil, + desc = 'Nouveau fichier ', + action = 'DashboardNewFile', + shortcut = 'SPC f n' + }, + { + desc = 'Trouver un fichier ', + action = "lua require('telescope.builtin').find_files()", + shortcut = 'SPC f f' + }, + { + desc = 'Fichiers récemment ouverts ', + action = 'DashboardFindHistory', + shortcut = 'SPC f h' + }, + { + desc = 'Parcourir les dotfiles ', + action = "lua require('telescope.builtin').find_files({" .. dotfiles .. "})", + -- action = 'Telescope dotfiles path=' .. home .. '/dotfiles', + shortcut = 'SPC f d' + } +} + +-- Highlight Group +-- DashboardHeader DashboardCenter DashboardCenterIcon DashboardShortCut DashboardFooter + +-- Command +-- DashboardNewFile -- if you like use `enew` to create file,Please use this command,it's wrap enew and restore the statsuline and tabline +-- SessionSave,SessionLoad + diff --git a/conf.d/nvim/ddc.vim b/conf.d/nvim/ddc.vim new file mode 100644 index 0000000..6a161a9 --- /dev/null +++ b/conf.d/nvim/ddc.vim @@ -0,0 +1,44 @@ +" Customize global settings +" Use around source. +" https://github.com/Shougo/ddc-around +call ddc#custom#patch_global('sources', ['around']) + +" Use matcher_head and sorter_rank. +" https://github.com/Shougo/ddc-matcher_head +" https://github.com/Shougo/ddc-sorter_rank +call ddc#custom#patch_global('sourceOptions', { + \ '_': { + \ 'matchers': ['matcher_head'], + \ 'sorters': ['sorter_rank']}, + \ }) + +" Change source options +call ddc#custom#patch_global('sourceOptions', { + \ 'around': {'mark': 'A'}, + \ }) +call ddc#custom#patch_global('sourceParams', { + \ 'around': {'maxSize': 500}, + \ }) + +" Customize settings on a filetype +call ddc#custom#patch_filetype(['c', 'cpp'], 'sources', ['around', 'clangd']) +call ddc#custom#patch_filetype(['c', 'cpp'], 'sourceOptions', { + \ 'clangd': {'mark': 'C'}, + \ }) +call ddc#custom#patch_filetype('markdown', 'sourceParams', { + \ 'around': {'maxSize': 100}, + \ }) + +" Mappings + +" : completion. +inoremap +\ ddc#map#pum_visible() ? '' : +\ (col('.') <= 1 getline('.')[col('.') - 2] =~# '\s') ? +\ '' : ddc#map#manual_complete() + +" : completion back. +inoremap ddc#map#pum_visible() ? '' : '' + +" Use ddc. +call ddc#enable() diff --git a/conf.d/nvim/ddu.vim b/conf.d/nvim/ddu.vim new file mode 100644 index 0000000..a1c7cd8 --- /dev/null +++ b/conf.d/nvim/ddu.vim @@ -0,0 +1,56 @@ +" You must set the default ui. +" Note: ff ui +" https://github.com/Shougo/ddu-ui-ff +call ddu#custom#patch_global({ + \ 'ui': 'ff', + \ }) + +" You must set the default action. +" Note: file kind +" https://github.com/Shougo/ddu-kind-file +call ddu#custom#patch_global({ + \ 'kindOptions': { + \ 'file': { + \ 'defaultAction': 'open', + \ }, + \ } + \ }) + +" Specify matcher. +" Note: matcher_substring filter +" https://github.com/Shougo/ddu-filter-matcher_substring +call ddu#custom#patch_global({ + \ 'sourceOptions': { + \ '_': { + \ 'matchers': ['matcher_substring'], + \ }, + \ } + \ }) + +" Set default sources +" Note: file source +" https://github.com/Shougo/ddu-source-file +"call ddu#custom#patch_global({ +" \ 'sources': [{'name': 'file', 'params': {}}], +" \ }) + +" Call default sources +"call ddu#start({}) + +" Set name specific configuration +"call ddu#custom#patch_local('files', { +" \ 'sources': [ +" \ {'name': 'file', 'params': {}}, +" \ {'name': 'file_old', 'params': {}}, +" \ ], +" \ }) + +" Specify name +"call ddu#start({'name': 'files'}) + +" Specify source with params +" Note: file_rec source +" https://github.com/Shougo/ddu-source-file_rec +"call ddu#start({'sources': [ +" \ {'name': 'file_rec', 'params': {'path': expand('~')}} +" \ ]}) diff --git a/conf.d/nvim/devicons.lua b/conf.d/nvim/devicons.lua new file mode 100644 index 0000000..fd3b6dd --- /dev/null +++ b/conf.d/nvim/devicons.lua @@ -0,0 +1,5 @@ +require'nvim-web-devicons'.setup { + -- globally enable default icons (default to false) + -- will get overriden by `get_icons` option + default = true; +} diff --git a/conf.d/nvim/init.vim b/conf.d/nvim/init.vim index ed1602a..dfa5ab4 100644 --- a/conf.d/nvim/init.vim +++ b/conf.d/nvim/init.vim @@ -302,7 +302,7 @@ source ${HOME}/.config/nvim/plug.vim autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * \ if (argc() == 0 && !exists("s:std_in") && !has('gui')) - \ | Dashboard + " \ | Dashboard \ | endif " " needed so deoplete can auto select the first suggestion @@ -401,9 +401,9 @@ function! g:BuffetSetCustomColors() " ----- lua < set laststatus=2 showmode ruler -endif - -" ----- -" }}} - - " Header {{{ " ----- diff --git a/conf.d/nvim/keybindings.vim b/conf.d/nvim/keybindings.vim index 6093ed3..f8530ea 100644 --- a/conf.d/nvim/keybindings.vim +++ b/conf.d/nvim/keybindings.vim @@ -90,7 +90,7 @@ map :call WinMove('l') nmap ss :SessionSave nmap sl :SessionLoad nnoremap fh :DashboardFindHistory -nnoremap ff :DashboardFindFile +nnoremap ff lua require('telescope.builtin').find_files() nnoremap tc :DashboardChangeColorscheme nnoremap fa :DashboardFindWord nnoremap fb :DashboardJumpMark @@ -100,96 +100,10 @@ nnoremap cn :DashboardNewFile " }}} -" Defx {{{ +" Find file {{{ " ----- -map :Defx - -function! s:defx_toggle_tree() abort - " Open current file, or toggle directory expand/collapse - if defx#is_directory() - return defx#do_action('open_or_close_tree') - endif - return defx#do_action('drop') -endfunction - -autocmd FileType defx call s:defx_my_settings() -function! s:defx_my_settings() abort - " Define mappings - " nnoremap defx#do_action('drop') - nnoremap - \ defx#is_directory() ? - \ defx#do_action('open_directory') : - \ defx#do_action('multi', ['drop', 'quit']) - nnoremap c - \ defx#do_action('copy') - nnoremap m - \ defx#do_action('move') - nnoremap p - \ defx#do_action('paste') - nnoremap l - \ defx#do_action('open') - nnoremap E - \ defx#do_action('open', 'vsplit') - nnoremap P - \ defx#do_action('open', 'pedit') - nnoremap o - \ defx#do_action('open_or_close_tree') - nnoremap K - \ defx#do_action('new_directory') - nnoremap N - \ defx#do_action('new_file') - nnoremap M - \ defx#do_action('new_multiple_files') - nnoremap C - \ defx#do_action('toggle_columns', - \ 'mark:indent:icon:filename:type:size:time') - nnoremap S - \ defx#do_action('toggle_sort', 'time') - nnoremap d - \ defx#do_action('remove') - nnoremap r - \ defx#do_action('rename') - nnoremap ! - \ defx#do_action('execute_command') - nnoremap x - \ defx#do_action('execute_system') - nnoremap yy - \ defx#do_action('yank_path') - nnoremap . - \ defx#do_action('toggle_ignored_files') - nnoremap ; - \ defx#do_action('repeat') - nnoremap h - \ defx#do_action('cd', ['..']) - nnoremap ~ - \ defx#do_action('cd') - nnoremap q - \ defx#do_action('quit') - nnoremap - \ defx#do_action('toggle_select') . 'j' - nnoremap * - \ defx#do_action('toggle_select_all') - nnoremap j - \ line('.') == line('$') ? 'gg' : 'j' - nnoremap k - \ line('.') == 1 ? 'G' : 'k' - nnoremap - \ defx#do_action('redraw') - nnoremap - \ defx#do_action('print') - nnoremap cd - \ defx#do_action('change_vim_cwd') -endfunction - -" ----- -" }}} - - -" FZF {{{ -" ----- - -map :DashboardFindFile +map lua require('telescope.builtin').find_files() " ----- " }}} diff --git a/conf.d/nvim/plug.vim b/conf.d/nvim/plug.vim index 6515b18..a9307aa 100644 --- a/conf.d/nvim/plug.vim +++ b/conf.d/nvim/plug.vim @@ -38,25 +38,33 @@ call plug#begin('~/.local/share/nvim/plugged') " Plugins {{{ " ----- +" Dashboard +Plug 'glepnir/dashboard-nvim' + +" DDC/DDU +Plug 'vim-denops/denops.vim' +Plug 'Shougo/ddc.vim' +Plug 'Shougo/ddu.vim' +Plug 'Shougo/ddc-around' +Plug 'Shougo/ddc-matcher_head' +Plug 'Shougo/ddc-sorter_rank' + +" Buffer exploration +Plug 'bagrat/vim-buffet', { 'as': 'buffet' } + +" Telescope +Plug 'nvim-lua/plenary.nvim' +Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.0' } + +" Devicons +Plug 'kyazdani42/nvim-web-devicons' + " Ansible Plug 'pearofducks/ansible-vim' " Artify Plug 'delphinus/artify.nvim' -" Deoplete -Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } -Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' } -Plug 'kristijanhusak/defx-icons' -Plug 'roxma/nvim-yarp' -Plug 'roxma/vim-hug-neovim-rpc' - -" Buffer exploration -Plug 'bagrat/vim-buffet', { 'as': 'buffet' } - -" Dashboard -Plug 'glepnir/dashboard-nvim' - " Editorconfig Plug 'editorconfig/editorconfig-vim' @@ -110,10 +118,6 @@ Plug 'mhinz/vim-signify' " Golden resizing Plug 'roman/golden-ratio' -" Fuzzy finder -Plug 'junegunn/fzf' -Plug 'junegunn/fzf.vim' - " Distraction-free writing Plug 'junegunn/goyo.vim' Plug 'junegunn/limelight.vim' @@ -140,9 +144,6 @@ Plug 'connorholyday/vim-snazzy', { 'as': 'snazzy' } " Plug 'jacoborus/tender.vim', { 'as': 'tender' } " Plug 'dylanaraps/wal.vim' -" Customization -Plug 'ryanoasis/vim-devicons' - " Sudo workaround plugin Plug 'lambdalisue/suda.vim' diff --git a/conf.d/qutebrowser/autoconfig.yml b/conf.d/qutebrowser/autoconfig.yml index 98e7938..d416e8e 100644 --- a/conf.d/qutebrowser/autoconfig.yml +++ b/conf.d/qutebrowser/autoconfig.yml @@ -31,3 +31,7 @@ settings: https://www.youtube.com: false fonts.default_size: global: 12pt + scrolling.bar: + global: always + tabs.show: + global: never diff --git a/conf.d/qutebrowser/config.py b/conf.d/qutebrowser/config.py index 43bbb3d..ae5d8c5 100644 --- a/conf.d/qutebrowser/config.py +++ b/conf.d/qutebrowser/config.py @@ -1166,7 +1166,7 @@ c.qt.highdpi = True ## - always: Always use low-end device mode. ## - auto: Decide automatically (uses low-end mode with < 1 GB available RAM). ## - never: Never use low-end device mode. -c.qt.low_end_device_mode = 'auto' +c.qt.chromium.low_end_device_mode = 'auto' ## Which Chromium process model to use. Alternative process models use ## less resources, but decrease security and robustness. See the @@ -1178,7 +1178,7 @@ c.qt.low_end_device_mode = 'auto' ## - process-per-site-instance: Pages from separate sites are put into separate processes and separate visits to the same site are also isolated. ## - process-per-site: Pages from separate sites are put into separate processes. Unlike Process per Site Instance, all visits to the same site will share an OS process. The benefit of this model is reduced memory consumption, because more web pages will share processes. The drawbacks include reduced security, robustness, and responsiveness. ## - single-process: Run all tabs in a single process. This should be used for debugging purposes only, and it disables `:open --private`. -c.qt.process_model = 'process-per-site-instance' +c.qt.chromium.process_model = 'process-per-site-instance' ## When to show the scrollbar. ## Type: String diff --git a/conf.d/texstudio/macro/Macro_13.txsMacro b/conf.d/texstudio/macro/Macro_13.txsMacro new file mode 100644 index 0000000..c9df7d9 --- /dev/null +++ b/conf.d/texstudio/macro/Macro_13.txsMacro @@ -0,0 +1,17 @@ +{ + "abbrev": "", + "description": [ + "" + ], + "formatVersion": 1, + "menu": "", + "name": "Remarque", + "shortcut": "", + "tag": [ + "% remarque", + "\\begin{remarque}", + "\t", + "\\end{remarque}" + ], + "trigger": "" +} diff --git a/conf.d/texstudio/macro/Macro_14.txsMacro b/conf.d/texstudio/macro/Macro_14.txsMacro index f0544f8..5942cb4 100644 --- a/conf.d/texstudio/macro/Macro_14.txsMacro +++ b/conf.d/texstudio/macro/Macro_14.txsMacro @@ -1,16 +1,17 @@ { -"name" : "Python" , -"tag" : [ - "% code python", - "\begin{python}", - " %<•%>", - "\end{python}" - ], -"description" : [ - "" - ], -"abbrev" : "" , -"trigger" : "" , -"menu" : "" , -"shortcut" : "Ctrl+F11" + "abbrev": "", + "description": [ + "" + ], + "formatVersion": 1, + "menu": "", + "name": "Théorème", + "shortcut": "", + "tag": [ + "% théorème", + "\\begin{theoreme}[]", + "\t", + "\\end{theoreme}" + ], + "trigger": "" } diff --git a/conf.d/texstudio/macro/Macro_15.txsMacro b/conf.d/texstudio/macro/Macro_15.txsMacro deleted file mode 100644 index 7e28b67..0000000 --- a/conf.d/texstudio/macro/Macro_15.txsMacro +++ /dev/null @@ -1,13 +0,0 @@ -{ -"name" : "Maths en gras" , -"tag" : [ - "\boldsymbol{%<•%:id:1%>}" - ], -"description" : [ - "" - ], -"abbrev" : "" , -"trigger" : "" , -"menu" : "" , -"shortcut" : "Ctrl+Shift+B" -} diff --git a/conf.d/zim/zshenv b/conf.d/zim/zshenv index abc83c0..2dff66f 100644 --- a/conf.d/zim/zshenv +++ b/conf.d/zim/zshenv @@ -18,7 +18,7 @@ path=(~/bin ~/.local/bin $path[@]) # >>> active gnome-keyring >>> if [ -n "${DESKTOP_SESSION}" ];then - eval $(gnome-keyring-daemon --start) + # eval $(gnome-keyring-daemon --start) export SSH_AUTH_SOCK fi # <<< active gnome-keyring <<< diff --git a/conf/lgogdownloader.cfg b/conf/lgogdownloader.cfg index 1b484d3..641e0c5 100644 --- a/conf/lgogdownloader.cfg +++ b/conf/lgogdownloader.cfg @@ -6,6 +6,8 @@ directory = /home/jeff/Téléchargements/jeux/ dlc-list = https://raw.githubusercontent.com/Sude-/lgogdownloader-lists/master/game_has_dlc.txt exclude = covers include = all +include-hidden-products = false +info-threads = 4 insecure = false language = fr limit-rate = 0 @@ -21,7 +23,7 @@ progress-interval = 100 retries = 3 save-changelogs = false save-serials = false -secret = 7af9c1e88972ed65a9f7859616d9c0a837856140 +size-only = false subdir-dlc = dlc/%dlcname% subdir-extras = extras subdir-game = %gamename% @@ -30,7 +32,7 @@ subdir-language-packs = languagepacks subdir-patches = patches threads = 4 timeout = 10 -token = 8e643606d2b3747a5f7221e7f0b58f4a614c84e7 use-cache = false +use-dlc-list = false verbose = false wait = 0 diff --git a/conf/msmtprc b/conf/msmtprc index 3f1d330..10baca0 100644 --- a/conf/msmtprc +++ b/conf/msmtprc @@ -3,7 +3,7 @@ defaults auto_from on tls_trust_file /etc/ssl/certs/ca-certificates.crt syslog on -#logfile /var/log/msmtp.log +logfile /var/log/msmtp.log # MaLa account jeff.lance@mala.fr diff --git a/conf/tmux.conf b/conf/tmux.conf index f860ad6..01700c1 100644 --- a/conf/tmux.conf +++ b/conf/tmux.conf @@ -26,7 +26,6 @@ set -g status-keys emacs # emacs key bindings in tmux command p setw -g aggressive-resize on # super useful when using "grouped sessions" and multi-monitor setup -set -g update-environment -r # edit configuration bind e new-window -n "~/.tmux.conf" "EDITOR=\${EDITOR//mvim/vim} && EDITOR=\${EDITOR//gvim/vim} && \${EDITOR:-vim} ~/.tmux.conf && tmux source ~/.tmux.conf && tmux display \"~/.tmux.conf sourced\"" diff --git a/conf/tmux.conf.local b/conf/tmux.conf.local index 195f83c..5c2974d 100644 --- a/conf/tmux.conf.local +++ b/conf/tmux.conf.local @@ -55,7 +55,8 @@ set -g @tpm_plugins ' \ set -g @onedark_widgets "#(date +%s)" # set -g @dracula-refresh-rate 5 -# set -g @dracula-show-fahrenheit false +set -g @dracula-show-fahrenheit false +set -g @dracula-fixed-location "Livry-Gargan" # set -g @dracula-day-month true # set -g @dracula-show-powerline true # set -g @dracula-show-network false @@ -69,7 +70,17 @@ set -g @onedark_widgets "#(date +%s)" if "test ! -d ~/.tmux/plugins/tpm" \ "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" - run '~/.tmux/plugins/tpm/tpm' + +# -- start customizations ----------------------------------------------------- +# + +# make tmux works with ssh-agent +set -g update-environment "DISPLAY SSH_ASKPASS \ + SSH_AUTH_SOCK SSH_AGENT_PID \ + SSH_CONNECTION WINDOWID XAUTHORITY" +setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock + +# start with a new session new-session