diff options
| author | 2026-02-25 15:02:41 +0000 | |
|---|---|---|
| committer | 2026-02-25 15:11:58 +0000 | |
| commit | a3879aaae0926a925e652c0719de879ce4211a64 (patch) | |
| tree | c0badce4ecfc33c8b0728b557e885df4bc4e8060 | |
| parent | 7cc29cf50f8d84a430ec5b44f2b22282c54083dc (diff) | |
tudo muda!
| -rw-r--r-- | alacritty/alacritty.yml | 836 | ||||
| -rw-r--r-- | emacs/early-init.el | 40 | ||||
| -rw-r--r-- | emacs/init.el | 656 | ||||
| -rw-r--r-- | foot/foot.ini | 182 | ||||
| -rw-r--r-- | helix/config.toml | 35 | ||||
| -rw-r--r-- | kanata/akira.kbd | 71 | ||||
| -rw-r--r-- | kanata/akko.kbd | 176 | ||||
| -rw-r--r-- | kanata/ideapad.kbd | 152 | ||||
| -rw-r--r-- | keyd/akko.conf | 228 | ||||
| -rwxr-xr-x | river/init | 166 | ||||
| -rw-r--r-- | tmux/tmux.conf | 136 |
11 files changed, 100 insertions, 2578 deletions
diff --git a/alacritty/alacritty.yml b/alacritty/alacritty.yml deleted file mode 100644 index 75b0bcd..0000000 --- a/alacritty/alacritty.yml +++ /dev/null @@ -1,836 +0,0 @@ -# Configuration for Alacritty, the GPU enhanced terminal emulator. - -# Import additional configuration files -# -# Imports are loaded in order, skipping all missing files, with the importing -# file being loaded last. If a field is already present in a previous import, it -# will be replaced. -# -# All imports must either be absolute paths starting with `/`, or paths relative -# to the user's home directory starting with `~/`. -#import: -# - /path/to/alacritty.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: xterm-256color - -window: - # Window dimensions (changes require restart) - # - # Number of lines/columns (not pixels) in the terminal. The number of columns - # must be at least `2`, while using a value of `0` for columns and lines will - # fall back to the window manager's recommended size. - dimensions: - columns: 80 - lines: 24 - - # Window position (changes require restart) - # - # Specified in number of pixels. - # If the position is not set, the window manager will handle the placement. - #position: - # x: 0 - # y: 0 - - # Window padding (changes require restart) - # - # Blank space added around the window in pixels. This padding is scaled - # by DPI and the specified value is always added at both opposing sides. - padding: - x: 8 - y: 0 - - # Spread additional padding evenly around the terminal content. - #dynamic_padding: false - - # Window decorations - # - # Values for `decorations`: - # - full: Borders and title bar - # - none: Neither borders nor title bar - # - # Values for `decorations` (macOS only): - # - transparent: Title bar, transparent background and title bar buttons - # - buttonless: Title bar, transparent background and no title bar buttons - decorations: none - - # Startup Mode (changes require restart) - # - # Values for `startup_mode`: - # - Windowed - # - Maximized - # - Fullscreen - # - # Values for `startup_mode` (macOS only): - # - SimpleFullscreen - #startup_mode: Windowed - - # Window title - #title: Alacritty - - # Allow terminal applications to change Alacritty's window title. - dynamic_title: true - - # Window class (Linux/BSD only): - #class: - # 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: None - -scrolling: - # Maximum number of lines in the scrollback buffer. - # Specifying '0' will disable scrolling. - history: 10000 - - # Scrolling distance multiplier. - #multiplier: 3 - -# Font configuration -font: - # Normal (roman) font face - normal: - # Font family - # - # Default: - # - (macOS) Menlo - # - (Linux/BSD) monospace - # - (Windows) Consolas - family: Iosevka - - # 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 - - # 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 - - # 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 - - # Point size - size: 16.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 - -# If `true`, bold text is drawn using the bright color variants. -draw_bold_text_with_bright_colors: false - -# colorschemes -schemes: - # default - default_theme: &def - # Default colors - primary: - background: '#101112' - foreground: '#ffffff' - - # 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 and CellBackground, which reference the - # affected cell, or hexadecimal colors like #ff00ff. - cursor: - text: CellBackground - cursor: CellForeground - - # Vi mode cursor colors - # - # Colors for the cursor when the vi mode is active. - # - # Allowed values are CellForeground and 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 and CellBackground, which reference the - # affected cell, or hexadecimal colors like #ff00ff. - matches: - foreground: '#000000' - background: '#ffffff' - focused_match: - foreground: CellBackground - background: CellForeground - - bar: - background: '#c5c8c6' - foreground: '#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 and CellBackground, which reference the - # affected cell, or hexadecimal colors like #ff00ff. - selection: - text: CellBackground - background: CellForeground - - # Normal colors - normal: - black: '#101112' - red: '#ff0000' - green: '#6ef38b' - yellow: '#fbdd91' - blue: '#799df6' - magenta: '#ff00ff' - cyan: '#00ffff' - white: '#dfdfdf' - - # Bright colors - 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' - - # Space Duck - space_duck: &duck - # Default colors - primary: - background: '#0f111b' - foreground: '#ecf0c1' - # Normal colors - normal: - black: '#101112' - red: '#e33400' - green: '#5ccc96' - yellow: '#b3a1e6' - blue: '#00a3cc' - magenta: '#f2ce00' - cyan: '#7a5ccc' - white: '#686f9a' - - # Bright colors - bright: - black: '#686f9a' - red: '#e33400' - green: '#5ccc96' - yellow: '#b3a1e6' - blue: '#00a3cc' - magenta: '#f2ce00' - cyan: '#7a5ccc' - white: '#f0f1ce' - -colors: *def - -# 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: 4 - - # 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 - -# Background opacity -# -# Window opacity as a floating point number from `0.0` to `1.0`. -# The value `0.0` is completely transparent and `1.0` is opaque. -background_opacity: 0.80 - -#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 - -cursor: - # Cursor style - style: - # Cursor shape - # - # Values for `shape`: - # - ▇ Block - # - _ Underline - # - | Beam - shape: Block - - # Cursor blinking state - # - # Values for `blinking`: - # - Never: Prevent the cursor from ever blinking - # - Off: Disable blinking by default - # - 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 - # the style of the active value of the normal cursor. - # - # See `cursor.style` for available options. - #vi_mode_style: None - - # Cursor blinking interval in milliseconds. - blink_interval: 550 - - # 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 - -# Shell -# -# You can set `shell.program` to the path of your favorite shell, e.g. -# `/bin/fish`. Entries in `shell.args` are passed unmodified as arguments to the -# shell. -# -# Default: -# - (macOS) /bin/bash --login -# - (Linux/BSD) user login shell -# - (Windows) powershell -#shell: -# 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 - - #url: - # URL launcher - # - # This program is executed when clicking on a text which is recognized as a - # URL. The URL is always added to the command as the last parameter. - # - # When set to `launcher: None`, URL launching will be disabled completely. - # - # Default: - # - (macOS) open - # - (Linux/BSD) xdg-open - # - (Windows) explorer - #launcher: - # program: xdg-open - # args: [] - - # URL modifiers - # - # These are the modifiers that need to be held down for opening URLs when - # clicking on them. The available modifiers are documented in the key - # binding section. - #modifiers: None - -# Mouse bindings -# -# Mouse bindings are specified as a list of objects, much like the key -# bindings further below. -# -# To trigger mouse bindings when an application running within Alacritty -# captures the mouse, the `Shift` modifier is automatically added as a -# requirement. -# -# Each mouse binding will specify a: -# -# - `mouse`: -# -# - Middle -# - Left -# - Right -# - Numeric identifier such as `5` -# -# - `action` (see key bindings) -# -# And optionally: -# -# - `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 -# default paste binding: -# -# `- { key: V, mods: Control|Shift, action: Paste }` -# -# Each key binding will specify a: -# -# - `key`: Identifier of the key pressed -# -# - A-Z -# - F1-F24 -# - Key0-Key9 -# -# A full list with available key codes can be found here: -# https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants -# -# Instead of using the name of the keys, the `key` field also supports using -# the scancode of the desired key. Scancodes have to be specified as a -# decimal number. This command will allow you to display the hex scancodes -# for certain keys: -# -# `showkey --scancodes`. -# -# Then exactly one of: -# -# - `chars`: Send a byte sequence to the running application -# -# The `chars` field writes the specified string to the terminal. This makes -# it possible to pass escape sequences. To find escape codes for bindings -# like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside -# of tmux. Note that applications use terminfo to map escape sequences back -# to keys. It is therefore required to update the terminfo when changing an -# escape sequence. -# -# - `action`: Execute a predefined action -# -# - ToggleViMode -# - SearchForward -# Start searching toward the right of the search origin. -# - SearchBackward -# Start searching toward the left of the search origin. -# - Copy -# - Paste -# - IncreaseFontSize -# - DecreaseFontSize -# - ResetFontSize -# - ScrollPageUp -# - ScrollPageDown -# - ScrollHalfPageUp -# - ScrollHalfPageDown -# - ScrollLineUp -# - ScrollLineDown -# - ScrollToTop -# - ScrollToBottom -# - ClearHistory -# Remove the terminal's scrollback history. -# - Hide -# Hide the Alacritty window. -# - Minimize -# Minimize the Alacritty window. -# - Quit -# Quit Alacritty. -# - ToggleFullscreen -# - SpawnNewInstance -# Spawn a new instance of Alacritty. -# - ClearLogNotice -# Clear Alacritty's UI warning and error notice. -# - ClearSelection -# Remove the active selection. -# - ReceiveChar -# - None -# -# - Vi mode exclusive actions: -# -# - Open -# Open URLs at the cursor location with the launcher configured in -# `url.launcher`. -# - ToggleNormalSelection -# - ToggleLineSelection -# - ToggleBlockSelection -# - ToggleSemanticSelection -# Toggle semantic selection based on `selection.semantic_escape_chars`. -# -# - Vi mode exclusive cursor motion actions: -# -# - Up -# One line up. -# - Down -# One line down. -# - Left -# One character left. -# - Right -# One character right. -# - First -# First column, or beginning of the line when already at the first column. -# - Last -# Last column, or beginning of the line when already at the last column. -# - FirstOccupied -# First non-empty cell in this terminal row, or first non-empty cell of -# the line when already at the first cell of the row. -# - High -# Top of the screen. -# - Middle -# Center of the screen. -# - Low -# Bottom of the screen. -# - SemanticLeft -# Start of the previous semantically separated word. -# - SemanticRight -# Start of the next semantically separated word. -# - SemanticLeftEnd -# End of the previous semantically separated word. -# - SemanticRightEnd -# End of the next semantically separated word. -# - WordLeft -# Start of the previous whitespace separated word. -# - WordRight -# Start of the next whitespace separated word. -# - WordLeftEnd -# End of the previous whitespace separated word. -# - WordRightEnd -# End of the next whitespace separated word. -# - Bracket -# Character matching the bracket at the cursor's location. -# - SearchNext -# Beginning of the next match. -# - SearchPrevious -# Beginning of the previous match. -# - SearchStart -# Start of the match to the left of the vi mode cursor. -# - SearchEnd -# End of the match to the right of the vi mode cursor. -# -# - Search mode exclusive actions: -# - SearchFocusNext -# Move the focus to the next search match. -# - SearchFocusPrevious -# Move the focus to the previous search match. -# - SearchConfirm -# - SearchCancel -# - SearchClear -# Reset the search regex. -# - SearchDeleteWord -# Delete the last word in the search regex. -# - SearchHistoryPrevious -# Go to the previous regex in the search history. -# - SearchHistoryNext -# Go to the next regex in the search history. -# -# - macOS exclusive actions: -# - ToggleSimpleFullscreen -# Enter fullscreen without occupying another space. -# -# - Linux/BSD exclusive actions: -# -# - CopySelection -# Copy from the selection buffer. -# - PasteSelection -# Paste from the selection buffer. -# -# - `command`: Fork and execute a specified command plus arguments -# -# The `command` field must be a map containing a `program` string and an -# `args` array of command line parameter strings. For example: -# `{ program: "alacritty", args: ["-e", "vttest"] }` -# -# And optionally: -# -# - `mods`: Key modifiers to filter binding actions -# -# - Command -# - Control -# - Option -# - Super -# - Shift -# - Alt -# -# Multiple `mods` can be combined using `|` like this: -# `mods: Control|Shift`. -# Whitespace and capitalization are relevant and must match the example. -# -# - `mode`: Indicate a binding for only specific terminal reported modes -# -# This is mainly used to send applications the correct escape sequences -# when in different modes. -# -# - AppCursor -# - AppKeypad -# - Search -# - Alt -# - Vi -# -# A `~` operator can be used before a mode to apply the binding whenever -# the mode is *not* active, e.g. `~Alt`. -# -# Bindings are always filled by default, but will be replaced when a new -# binding with the same triggers is defined. To unset a default binding, it can -# be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for -# a no-op if you do not wish to receive input characters for that binding. -# -# If the same trigger is assigned to multiple actions, all of them are executed -# in the order they were defined in. -key_bindings: - - { key: V, mods: Alt, action: Paste } - - { key: C, mods: Alt, 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: Vi|~Search, action: ScrollToBottom } - - { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode } - - { key: Escape, mode: Vi|~Search, action: ClearSelection } - #- { key: I, mode: Vi|~Search, action: ScrollToBottom } - #- { key: I, mode: Vi|~Search, action: ToggleViMode } - #- { 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: ResetFontSize } - - { key: Plus, mods: Control, action: IncreaseFontSize } - - { key: NumpadAdd, mods: Control, action: IncreaseFontSize } - - { key: Minus, mods: Control, action: DecreaseFontSize } - - { key: NumpadSubtract, mods: Control, action: DecreaseFontSize } - - { key: Return, mods: Shift|Control, action: SpawnNewInstance } - - # (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: 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 } - -#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`: - # - Off - # - Error - # - Warn - # - Info - # - Debug - # - Trace - #log_level: Warn - - # Print all received window events. - #print_events: false diff --git a/emacs/early-init.el b/emacs/early-init.el deleted file mode 100644 index 08bf438..0000000 --- a/emacs/early-init.el +++ /dev/null @@ -1,40 +0,0 @@ -;;; ________ _______ __ __ -;;; / | / \ / | / | -;;; $$$$$$$$/ _____ ____ ______ _______ _______ $$$$$$$ | ______ ____$$ | ______ ______ _______$$ | __ -;;; $$ |__ / \/ \ / \ / |/ | $$ |__$$ |/ \ / $$ |/ \ / \ / $$ | / | -;;; $$ | $$$$$$ $$$$ |$$$$$$ /$$$$$$$//$$$$$$$/ $$ $$</$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$$/$$ |_/$$/ -;;; $$$$$/ $$ | $$ | $$ |/ $$ $$ | $$ \ $$$$$$$ $$ $$ $$ | $$ $$ | $$/$$ | $$ $$ | $$ $$< -;;; $$ |_____$$ | $$ | $$ /$$$$$$$ $$ \_____ $$$$$$ | $$ |__$$ $$$$$$$$/$$ \__$$ $$ | $$ \__$$ $$ \_____$$$$$$ \ -;;; $$ $$ | $$ | $$ $$ $$ $$ / $$/ $$ $$/$$ $$ $$ $$ | $$ $$/$$ $$ | $$ | -;;; $$$$$$$$/$$/ $$/ $$/ $$$$$$$/ $$$$$$$/$$$$$$$/ $$$$$$$/ $$$$$$$/ $$$$$$$/$$/ $$$$$$/ $$$$$$$/$$/ $$/ - - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;; -;;; Basic settings for quick startup and convenience -;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -;; Startup speed, annoyance suppression -(setq gc-cons-threshold 10000000) -(setq byte-compile-warnings '(not obsolete)) -(setq warning-suppress-log-types '((comp) (bytecomp))) -(setq native-comp-async-report-warnings-errors 'silent) - -;; Silence stupid startup message -(setq inhibit-startup-echo-area-message (user-login-name)) - -;; Default frame configuration: full screen, good-looking title bar on macOS -(setq frame-resize-pixelwise t) -(tool-bar-mode -1) ; All these tools are in the menu-bar anyway -(setq default-frame-alist '((fullscreen . maximized) - - ;; You can turn off scroll bars by uncommenting these lines: - ;; (vertical-scroll-bars . nil) - ;; (horizontal-scroll-bars . nil) - - ;; Setting the face in here prevents flashes of - ;; color as the theme gets activated - (background-color . "#000000") - (ns-appearance . dark) - (ns-transparent-titlebar . t))) diff --git a/emacs/init.el b/emacs/init.el deleted file mode 100644 index 4fb0ef3..0000000 --- a/emacs/init.el +++ /dev/null @@ -1,656 +0,0 @@ -;;; ________ _______ __ __ -;;; / | / \ / | / | -;;; $$$$$$$$/ _____ ____ ______ _______ _______ $$$$$$$ | ______ ____$$ | ______ ______ _______$$ | __ -;;; $$ |__ / \/ \ / \ / |/ | $$ |__$$ |/ \ / $$ |/ \ / \ / $$ | / | -;;; $$ | $$$$$$ $$$$ |$$$$$$ /$$$$$$$//$$$$$$$/ $$ $$</$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$$/$$ |_/$$/ -;;; $$$$$/ $$ | $$ | $$ |/ $$ $$ | $$ \ $$$$$$$ $$ $$ $$ | $$ $$ | $$/$$ | $$ $$ | $$ $$< -;;; $$ |_____$$ | $$ | $$ /$$$$$$$ $$ \_____ $$$$$$ | $$ |__$$ $$$$$$$$/$$ \__$$ $$ | $$ \__$$ $$ \_____$$$$$$ \ -;;; $$ $$ | $$ | $$ $$ $$ $$ / $$/ $$ $$/$$ $$ $$ $$ | $$ $$/$$ $$ | $$ | -;;; $$$$$$$$/$$/ $$/ $$/ $$$$$$$/ $$$$$$$/$$$$$$$/ $$$$$$$/ $$$$$$$/ $$$$$$$/$$/ $$$$$$/ $$$$$$$/$$/ $$/ - -;;; Minimal init.el - -;;; Contents: -;;; -;;; - Basic settings -;;; - Discovery aids -;;; - Minibuffer/completion settings -;;; - Interface enhancements/defaults -;;; - Tab-bar configuration -;;; - Theme -;;; - Optional extras -;;; - Built-in customization framework - -(when (< emacs-major-version 29) - (error (format "Emacs Bedrock only works with Emacs 29 and newer; you have version ~a" emacs-major-version))) - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;; -;;; Basic settings -;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -;; Package initialization -;; -;; We'll stick to the built-in GNU and non-GNU ELPAs (Emacs Lisp Package -;; Archive) for the base install, but there are some other ELPAs you could look -;; at if you want more packages. MELPA in particular is very popular. See -;; instructions at: -;; -;; https://melpa.org/#/getting-started -;; -;; You can simply uncomment the following if you'd like to get started with -;; MELPA packages quickly: -;; -(with-eval-after-load 'package - (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)) - -;; If you want to turn off the welcome screen, uncomment this -(setopt inhibit-splash-screen t) - -(setopt initial-major-mode 'fundamental-mode) ; default mode for the *scratch* buffer -(setopt display-time-default-load-average nil) ; this information is useless for most - -;; Automatically reread from disk if the underlying file changes -(setopt auto-revert-avoid-polling t) -;; Some systems don't do file notifications well; see -;; https://todo.sr.ht/~ashton314/emacs-bedrock/11 -(setopt auto-revert-interval 5) -(setopt auto-revert-check-vc-info t) -(global-auto-revert-mode) - -;; Save history of minibuffer -(savehist-mode) - -;; Move through windows with Ctrl-<arrow keys> -(windmove-default-keybindings 'control) ; You can use other modifiers here - -;; Fix archaic defaults -(setopt sentence-end-double-space nil) - -;; Make right-click do something sensible -(when (display-graphic-p) - (context-menu-mode)) - -;; Don't litter file system with *~ backup files; put them all inside -;; ~/.emacs.d/backup or wherever -(defun bedrock--backup-file-name (fpath) - "Return a new file path of a given file path. -If the new path's directories does not exist, create them." - (let* ((backupRootDir "~/.emacs.d/emacs-backup/") - (filePath (replace-regexp-in-string "[A-Za-z]:" "" fpath )) ; remove Windows driver letter in path - (backupFilePath (replace-regexp-in-string "//" "/" (concat backupRootDir filePath "~") ))) - (make-directory (file-name-directory backupFilePath) (file-name-directory backupFilePath)) - backupFilePath)) -(setopt make-backup-file-name-function 'bedrock--backup-file-name) - -(setq epg-pinentry-mode 'loopback) - -(setopt use-short-answers t) - -(add-to-list 'load-path "~/.emacs.d/elisp/") - -;; straight.el bootstrap -(defvar bootstrap-version) -(let ((bootstrap-file - (expand-file-name - "straight/repos/straight.el/bootstrap.el" - (or (bound-and-true-p straight-base-dir) - user-emacs-directory))) - (bootstrap-version 7)) - (unless (file-exists-p bootstrap-file) - (with-current-buffer - (url-retrieve-synchronously - "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el" - 'silent 'inhibit-cookies) - (goto-char (point-max)) - (eval-print-last-sexp))) - (load bootstrap-file nil 'nomessage)) -(straight-use-package 'use-package) -(setopt straight-use-package-by-default t) - -(use-package asdf - :straight (asdf - :type git - :host github - :repo "tabfugnic/asdf.el") - :config - (setopt asdf-path (concat (getenv "HOME") "/.local/share/asdf/shims")) - (setopt asdf-binary "/opt/asdf-vm/bin/asdf") - (asdf-enable)) - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;; -;;; Discovery aids -;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -;; Show the help buffer after startup -(add-hook 'after-init-hook 'help-quick) - -;; which-key: shows a popup of available keybindings when typing a long key -;; sequence (e.g. C-x ...) -(use-package which-key - :config - (which-key-mode)) - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;; -;;; Minibuffer/completion settings -;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -;; For help, see: https://www.masteringemacs.org/article/understanding-minibuffer-completion - -(setopt enable-recursive-minibuffers t) ; Use the minibuffer whilst in the minibuffer -(setopt completion-cycle-threshold 1) ; TAB cycles candidates -(setopt completions-detailed t) ; Show annotations -(setopt tab-always-indent 'complete) ; When I hit TAB, try to complete, otherwise, indent -(setopt completion-styles '(basic initials substring)) ; Different styles to match input to candidates - -(setopt completion-auto-help 'always) ; Open completion always; `lazy' another option -(setopt completions-max-height 20) ; This is arbitrary -(setopt completions-detailed t) -(setopt completions-format 'one-column) -(setopt completions-group t) -(setopt completion-auto-select 'second-tab) - -(keymap-set minibuffer-mode-map "TAB" 'minibuffer-complete) ; TAB acts more like how it does in the shell - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;; -;;; Interface enhancements/defaults -;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -;; Mode line information -(setopt line-number-mode t) ; Show current line in modeline -(setopt column-number-mode t) ; Show column as well - -(setopt x-underline-at-descent-line nil) ; Prettier underlines -(setopt switch-to-buffer-obey-display-actions t) ; Make switching buffers more consistent - -(setopt show-trailing-whitespace nil) ; By default, don't underline trailing spaces -(setopt indicate-buffer-boundaries 'left) ; Show buffer top and bottom in the margin - -;; Enable horizontal scrolling -(setopt mouse-wheel-tilt-scroll t) -(setopt mouse-wheel-flip-direction t) - -(setopt indent-tabs-mode nil) - -(blink-cursor-mode -1) -(tool-bar-mode -1) -(menu-bar-mode -1) -(scroll-bar-mode -1) -(setopt cursor-type 'bar) -(pixel-scroll-precision-mode) - -(add-hook 'prog-mode-hook 'display-line-numbers-mode) -(setopt display-line-numbers-width 3) - -(add-hook 'text-mode-hook 'visual-line-mode) - -(let ((hl-line-hooks '(text-mode-hook prog-mode-hook))) - (mapc (lambda (hook) (add-hook hook 'hl-line-mode)) hl-line-hooks)) - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;; -;;; Tab-bar configuration -;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -;; Show the tab-bar as soon as tab-bar functions are invoked -(setopt tab-bar-show 1) - -;; Add the time to the tab-bar, if visible -(add-to-list 'tab-bar-format 'tab-bar-format-align-right 'append) -(add-to-list 'tab-bar-format 'tab-bar-format-global 'append) - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;; -;;; Face -;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -(use-package dracula-theme) - -(defun pinoinha/set-face () - (set-face-attribute 'default nil :font (font-spec :family "Iosevka Nerd Font" :weight 'normal :size 18)) - (load-theme 'dracula t)) - -(if (daemonp) - (add-hook 'server-after-make-frame-hook - 'pinoinha/set-face) - (pinoinha/set-face)) - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;; -;;; Built-in customization framework -;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(require 'package) -(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) -(package-initialize) - -(use-package emacs - :config - (setq major-mode-remap-alist - '((yaml-mode . yaml-ts-mode) - (bash-mode . bash-ts-mode) - (js2-mode . js-ts-mode) - (typescript-mode . typescript-ts-mode) - (json-mode . json-ts-mode) - (css-mode . css-ts-mode) - (python-mode . python-ts-mode) - (rust-mode . rust-ts-mode) - (go-mode . go-ts-mode) - (c-mode . c-ts-mode)))) - -(use-package recentf - :bind (("C-x C-r" . recentf-open)) - :config - (setopt recentf-max-menu-items 25) - (setopt recentf-max-saved-items 25) - :hook - (after-init . recentf-mode)) - -(use-package org - :straight nil - :hook ((org-mode . visual-line-mode)) - :bind (:map global-map - ("C-c l s" . org-store-link) - ("C-c l i" . org-insert-link-global)) - :config - (require 'oc-csl) ; citation support - (add-to-list 'org-export-backends 'md) - - ;; Make org-open-at-point follow file links in the same window - (setf (cdr (assoc 'file org-link-frame-setup)) 'find-file) - - ;; Make exporting quotes better - (setq org-export-with-smart-quotes t)) - -(use-package org-bullets - :hook - (org-mode . org-bullets-mode)) - -(use-package org-contrib) - -(setq org-directory "~/notas") -(setq org-agenda-files '("agenda.org")) -(setopt org-agenda-include-diary t) - -;; Org-refile: where should org-refile look? -(setq org-refile-targets 'FIXME) - -;; Consult: Misc. enhanced commands -(use-package consult - :bind ( - ;; Drop-in replacements - ("C-c M-x" . consult-mode-command) - ("C-x b" . consult-buffer) - ("M-y" . consult-yank-pop) - ;; Searching - ("M-s r" . consult-ripgrep) - ("C-s" . consult-line) - ("M-s L" . consult-line-multi) - ("M-s o" . consult-outline) - :map isearch-mode-map - ("M-e" . consult-isearch-history) - ("M-s e" . consult-isearch-history) - ("M-s l" . consult-line) - ("M-s L" . consult-line-multi)) - :config - ;; Narrowing lets you restrict results to certain groups of candidates - (setq consult-narrow-key "<")) - -(use-package embark - :demand t - :after avy - :bind (("C-c a" . embark-act)) ; bind this to an easy key to hit - :init - (defun bedrock/avy-action-embark (pt) - (unwind-protect - (save-excursion - (goto-char pt) - (embark-act)) - (select-window - (cdr (ring-ref avy-ring 0)))) - t) - - ;; After invoking avy-goto-char-timer, hit "." to run embark at the next - ;; candidate you select - (setf (alist-get ?. avy-dispatch-alist) 'bedrock/avy-action-embark)) - -(use-package embark-consult) - -;; Vertico: better vertical completion for minibuffer commands -(use-package vertico - :straight (:files (:defaults "extensions/*")) - :init - (vertico-mode)) - -(use-package vertico-directory - :straight nil - :after vertico - :bind (:map vertico-map - ("M-DEL" . vertico-directory-delete-word))) - -;; Marginalia: annotations for minibuffer -(use-package marginalia - :config - (marginalia-mode)) - -;; Popup completion-at-point -(use-package corfu - :straight (:files (:defaults "extensions/*")) - :init - (global-corfu-mode) - :bind - (:map corfu-map - ("SPC" . corfu-insert-separator) - ("C-n" . corfu-next) - ("C-p" . corfu-previous))) - -;; Part of corfu -(use-package corfu-popupinfo - :straight nil - :after corfu - :hook (corfu-mode . corfu-popupinfo-mode) - :custom - (corfu-popupinfo-delay '(0.25 . 0.1)) - (corfu-popupinfo-hide nil) - :config - (corfu-popupinfo-mode)) - -;; Make corfu popup come up in terminal overlay -(use-package corfu-terminal - :if (not (display-graphic-p)) - :config - (corfu-terminal-mode)) - -;; Fancy completion-at-point functions; there's too much in the cape package to -;; configure here; dive in when you're comfortable! -(use-package cape - :init - (add-to-list 'completion-at-point-functions #'cape-dabbrev) - (add-to-list 'completion-at-point-functions #'cape-file)) - -;; Pretty icons for corfu -(use-package kind-icon - :if (display-graphic-p) - :after corfu - :config - (add-to-list 'corfu-margin-formatters #'kind-icon-margin-formatter)) - -;; Orderless: powerful completion style -(use-package orderless - :config - (setq completion-styles '(orderless))) - -;; Modify search results en masse -(use-package wgrep - :config - (setq wgrep-auto-save-buffer t)) - -(use-package eglot - :straight nil - ;; Configure hooks to automatically turn-on eglot for selected modes - :hook - (rust-ts-mode . eglot-ensure) - - :custom - (eglot-send-changes-idle-time 0.5) - (eglot-extend-to-xref t) - - :config - (fset #'jsonrpc--log-event #'ignore) - ;; Sometimes you need to tell Eglot where to find the language server - ; (add-to-list 'eglot-server-programs - ; '(haskell-mode . ("haskell-language-server-wrapper" "--lsp"))) - ) - -(use-package treesit-auto - :straight - '(treesit-auto - :type git - :host github - :repo "renzmann/treesit-auto" - :build (:not autoloads) - :build (:not compile)) - :custom - (treesit-auto-install 'prompt) - :config - (treesit-auto-add-to-auto-mode-alist 'all) - (global-treesit-auto-mode)) - -;; Magit: best Git client to ever exist -(use-package magit - :bind (("C-x g" . magit-status))) - -(use-package git-gutter - :hook (prog-mode . git-gutter-mode) - :config - (setopt git-gutter:update-interval 1)) - -(use-package markdown-mode - :hook ((markdown-mode . visual-line-mode))) - -(use-package yaml-mode) - -(use-package json-mode) - -(defun set-exec-path-from-shell-PATH () - "Set up Emacs' `exec-path' and PATH environment variable to match -that used by the user's shell. - -This is particularly useful under Mac OS X and macOS, where GUI -apps are not started from a shell." - (interactive) - (let ((path-from-shell (replace-regexp-in-string - "[ \t\n]*$" "" (shell-command-to-string - (if (string= (getenv "SHELL") "/bin/fish") - "$SHELL --login -c 'string join : $PATH'" - "$SHELL --login -c 'echo $PATH'"))))) - (setenv "PATH" path-from-shell) - (setq exec-path (split-string path-from-shell path-separator)))) -(set-exec-path-from-shell-PATH) - -(defun sudo-find-file (filename) - (interactive "Find file as sudo: ") - (find-file (concat "/sudo::" filename))) - -(use-package avy - :demand t - :init - (setq avy-timeout-seconds 1.0) - :bind (("C-;" . avy-goto-char-timer))) - -(use-package vterm - :load-path "~/.emacs.d/straight/repos/emacs-libvterm" - :commands vterm - :config - (setq term-prompt-regexp "^[^#$%>\n]*[#$%>] *") - (setq vterm-shell "/bin/fish") - (setq vterm-max-scrollback 10000)) - -(use-package vterm-toggle - :after vterm) - -(use-package smartparens-mode - :straight nil - :ensure smartparens - :hook (prog-mode text-mode markdown-mode org-mode) - :config - (require 'smartparens-config)) - -(use-package meow - :init - (defun meow-setup () - (setopt meow-use-clipboard t) - (define-key meow-normal-state-keymap (kbd "i") nil) - (define-key meow-normal-state-keymap (kbd "a") nil) - ;; -------------------- ;; - ;; THING TABLE ;; - ;; -------------------- ;; - (meow-thing-register 'angle - '(pair ("<") (">")) - '(pair ("<") (">"))) - - (setq meow-char-thing-table - '((?f . round) - (?d . square) - (?s . curly) - (?a . angle) - (?r . string) - (?v . paragraph) - (?c . line) - (?x . buffer))) - - ;; -------------------- ;; - ;; MAPPINGS ;; - ;; -------------------- ;; - (meow-define-keys 'normal - '("0" . meow-expand-0) - '("1" . meow-expand-1) - '("2" . meow-expand-2) - '("3" . meow-expand-3) - '("4" . meow-expand-4) - '("5" . meow-expand-5) - '("6" . meow-expand-6) - '("7" . meow-expand-7) - '("8" . meow-expand-8) - '("9" . meow-expand-9) - '("/" . meow-reverse) - - '("o" . meow-prev) - '("e" . meow-next) - '("h" . meow-left) - '("i" . meow-right) - - '("j" . meow-search) - '("/" . meow-visit) - - '("O" . meow-prev-expand) - '("E" . meow-next-expand) - '("H" . meow-left-expand) - '("I" . meow-right-expand) - - '("f" . meow-back-word) - '("F" . meow-back-symbol) - '("u" . meow-next-word) - '("U" . meow-next-symbol) - - '("n" . meow-mark-word) - '("N" . meow-mark-symbol) - '("r" . meow-line) - '("R" . meow-goto-line) - '("l" . meow-block) - '("b" . meow-join) - '("g" . meow-grab) - '("G" . meow-pop-grab) - '("k" . meow-swap-grab) - '("K" . meow-sync-grab) - '("'" . meow-cancel-selection) - '("\"" . meow-pop-selection) - '("ç" . meow-cancel-selection) - '("Ç" . meow-pop-selection) - - '("m" . meow-till) - '("M" . meow-find) - - '("-" . meow-beginning-of-thing) - '("." . meow-end-of-thing) - '("_" . meow-inner-of-thing) - '(">" . meow-bounds-of-thing) - - '("t" . meow-kill) - '("s" . meow-change) - '("z" . meow-delete) - '("v" . meow-save) - '("c" . meow-yank) - '("C" . meow-yank-pop) - - '("d" . meow-insert) - '("D" . meow-open-above) - '("w" . meow-append) - '("W" . meow-open-below) - - '("y" . undo-only) - '("Y" . undo-redo) - - '("q" . open-line) - '("Q" . split-line) - - '(";" . indent-rigidly-left-to-tab-stop) - '("=" . indent-rigidly-right-to-tab-stop) - - '("pt" . meow-comment) - '("pk" . meow-start-kmacro-or-insert-counter) - '("pp" . meow-start-kmacro) - '("py" . meow-end-or-call-kmacro) - - '("as" . save-buffer) - '("aS" . save-some-buffers) - '("at" . meow-query-replace-regexp) - - '("<escape>" . ignore) - - (meow-leader-define-key - '("t" . vterm-toggle-cd) - - '("bs" . consult-buffer) - '("bk" . kill-buffer) - - '("vs" . magit-status) - - '("pb" . project-list-buffers) - '("pp" . project-switch-project) - '("pd" . project-find-dir) - '("pf" . project-find-file) - - '("ff" . find-file) - '("fs" . sudo-find-file) - '("fr" . recentf-open) - - '("dd" . dired)))) - - :config - (meow-setup) - (meow-global-mode 1)) - -(use-package fish-mode) - -(use-package powerline - :config - (powerline-default-theme)) - -(use-package yasnippet - :bind - (:map yas-minor-mode-map - ("TAB" . yas-expand)) - :config - (setopt yas-maybe-expand t)) - -(use-package yasnippet-snippets - :straight - (yasnippet-snippets :type git :host github :repo "AndreaCrotti/yasnippet-snippets" :files ("*.el" "snippets")) - :after yasnippet) - -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(auth-source-save-behavior nil) - '(custom-safe-themes - '("603a831e0f2e466480cdc633ba37a0b1ae3c3e9a4e90183833bc4def3421a961" default)) - '(package-selected-packages - '(asdf powerline git-gutter vterm-toggle fish-completion fish-mode org-bullets smartparens meow vterm dracula-theme treesit-auto org-roam-ui json-mode yaml-mode magit wgrep orderless kind-icon cape corfu-terminal corfu marginalia vertico embark-consult embark consult avy which-key))) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - ) diff --git a/foot/foot.ini b/foot/foot.ini deleted file mode 100644 index a7028cb..0000000 --- a/foot/foot.ini +++ /dev/null @@ -1,182 +0,0 @@ -# -*- conf -*- - -# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd) -# term=foot (or xterm-256color if built with -Dterminfo=disabled) -# login-shell=no - -# app-id=foot # globally set wayland app-id. Default values are "foot" and "footclient" for desktop and server mode -# title=foot -# locked-title=no - -font=Iosevka NFM:style=Regular:size=16 -# font-bold=<bold variant of regular font> -# font-italic=<italic variant of regular font> -# font-bold-italic=<bold+italic variant of regular font> -# font-size-adjustment=0.5 -# line-height=<font metrics> -# letter-spacing=0 -# horizontal-letter-offset=0 -# vertical-letter-offset=0 -# underline-offset=<font metrics> -# underline-thickness=<font underline thickness> -# box-drawings-uses-font-glyphs=no -# dpi-aware=no - -# initial-window-size-pixels=700x500 # Or, -# initial-window-size-chars=<COLSxROWS> -# initial-window-mode=windowed -pad=3x3 # optionally append 'center' -# resize-delay-ms=100 - -notify=notify-send -a ${app-id} -i ${app-id} ${title} ${body} - -# bold-text-in-bright=no -# word-delimiters=,│`|:"'()[]{}<> -selection-target=clipboard -# workers=<number of logical CPUs> -# utmp-helper=/usr/lib/utempter/utempter # When utmp backend is ‘libutempter’ (Linux) -# utmp-helper=/usr/libexec/ulog-helper # When utmp backend is ‘ulog’ (FreeBSD) - -[environment] -# name=value - -[bell] -# urgent=no -# notify=no -# command= -# command-focused=no - -[scrollback] -# lines=1000 -# multiplier=3.0 -# indicator-position=relative -# indicator-format="" - -[url] -launch=xdg-open ${url} -label-letters=sadfjklewcmpgh -# osc8-underline=url-mode -protocols=http, https, ftp, ftps, file, gemini, gopher -# uri-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[] - -[cursor] -color=232136 e0def4 -style=beam -# color=<inverse foreground/background> -blink=yes -# beam-thickness=1.5 -# underline-thickness=<font underline thickness> - -[mouse] -# hide-when-typing=no -# alternate-scroll-mode=yes - -[touch] -# long-press-delay=400 - -[colors] -alpha=0.80 -background=232136 -foreground=e0def4 -regular0=393552 # black (Overlay) -regular1=eb6f92 # red (Love) -regular2=3e8fb0 # green (Pine) -regular3=f6c177 # yellow (Gold) -regular4=9ccfd8 # blue (Foam) -regular5=c4a7e7 # magenta (Iris) -regular6=ea9a97 # cyan (Rose) -regular7=e0def4 # white (Text) - -bright0=393552 # bright black (Overlay) -bright1=eb6f92 # bright red (Love) -bright2=3e8fb0 # bright green (Pine) -bright3=f6c177 # bright yellow (Gold) -bright4=9ccfd8 # bright blue (Foam) -bright5=c4a7e7 # bright magenta (Iris) -bright6=ea9a97 # bright cyan (Rose) -bright7=e0def4 # bright white (Text) - -[csd] -# preferred=server -# size=26 -# font=<primary font> -# color=<foreground color> -# hide-when-maximized=no -# double-click-to-maximize=yes -# border-width=0 -# border-color=<csd.color> -# button-width=26 -# button-color=<background color> -# button-minimize-color=<regular4> -# button-maximize-color=<regular2> -# button-close-color=<regular1> - -[key-bindings] -# scrollback-up-page=Shift+Page_Up -# scrollback-up-half-page=none -# scrollback-up-line=none -# scrollback-down-page=Shift+Page_Down -# scrollback-down-half-page=none -# scrollback-down-line=none -# clipboard-copy=Control+Shift+c XF86Copy -# clipboard-paste=Control+Shift+v XF86Paste -# primary-paste=Shift+Insert -# search-start=Control+Shift+r -# font-increase=Control+plus Control+equal Control+KP_Add -# font-decrease=Control+minus Control+KP_Subtract -# font-reset=Control+0 Control+KP_0 -# spawn-terminal=Control+Shift+n -# minimize=none -# maximize=none -# fullscreen=none -# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none -# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none -# pipe-selected=[xargs -r firefox] none -show-urls-launch=Control+Shift+o -# show-urls-copy=none -# show-urls-persistent=none -# prompt-prev=Control+Shift+z -# prompt-next=Control+Shift+x -# unicode-input=Control+Shift+u -# noop=none - -[search-bindings] -# cancel=Control+g Control+c Escape -# commit=Return -# find-prev=Control+r -# find-next=Control+s -# cursor-left=Left Control+b -# cursor-left-word=Control+Left Mod1+b -# cursor-right=Right Control+f -# cursor-right-word=Control+Right Mod1+f -# cursor-home=Home Control+a -# cursor-end=End Control+e -# delete-prev=BackSpace -# delete-prev-word=Mod1+BackSpace Control+BackSpace -# delete-next=Delete -# delete-next-word=Mod1+d Control+Delete -# extend-to-word-boundary=Control+w -# extend-to-next-whitespace=Control+Shift+w -# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste -# primary-paste=Shift+Insert -# unicode-input=none - -[url-bindings] -# cancel=Control+g Control+c Control+d Escape -# toggle-url-visible=t - -[text-bindings] -# \x03=Mod4+c # Map Super+c -> Ctrl+c - -[mouse-bindings] -# selection-override-modifiers=Shift -# primary-paste=BTN_MIDDLE -# select-begin=BTN_LEFT -# select-begin-block=Control+BTN_LEFT -# select-extend=BTN_RIGHT -# select-extend-character-wise=Control+BTN_RIGHT -# select-word=BTN_LEFT-2 -# select-word-whitespace=Control+BTN_LEFT-2 -# select-row=BTN_LEFT-3 - -# vim: ft=dosini diff --git a/helix/config.toml b/helix/config.toml deleted file mode 100644 index e7ccdb0..0000000 --- a/helix/config.toml +++ /dev/null @@ -1,35 +0,0 @@ -theme = "dracula" - -[editor] -line-number = "relative" -mouse = false -true-color = true -shell = ["/bin/sh", "-c"] -auto-completion = true -auto-format = true -completion-trigger-len = 1 -idle-timeout = 250 -bufferline = "multiple" -color-modes = true -cursorline = true - -[editor.statusline] -mode.normal = "" -mode.insert = "" -mode.select = "" -right = ["diagnostics", "selections", "position", "file-encoding", "file-type"] - -[editor.cursor-shape] -insert = "bar" -normal = "block" -select = "underline" - -[editor.lsp] -display-messages = true -auto-signature-help = false - -[editor.file-picker] -hidden = false - -[editor.indent-guides] -render = true diff --git a/kanata/akira.kbd b/kanata/akira.kbd new file mode 100644 index 0000000..50498ce --- /dev/null +++ b/kanata/akira.kbd @@ -0,0 +1,71 @@ +(defcfg + process-unmapped-keys yes + linux-dev /dev/input/by-id/usb-BY_Tech_Gaming_Keyboard-event-kbd + linux-unicode-u-code v +) + +(defsrc + esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 + grv 1 2 3 4 5 6 7 8 9 0 - = bspc + tab q w e r t y u i o p [ ] \ + caps a s d f g h j k l ; ' ret + lsft z x c v b n m , . / rsft + lctl lmet lalt spc ralt rctl +) + +(defalias + c (macro RA-c ,) + + nav (layer-while-held nav) + sym (layer-while-held sym) + + lmet (one-shot-release 1000 lmet) + lalt (one-shot-release 1000 lalt) + lsft (one-shot-release 1000 lsft) + lctl (one-shot-release 1000 lctl) + + rsft (one-shot-release 1000 rsft) + rctl (one-shot-release 1000 rctl) + ralt (one-shot-release 1000 ralt) + + ex S-1 + at S-2 + hs S-3 + dl S-4 + pr S-5 + cr S-6 + am S-7 + ml S-8 + lp S-9 + rp S-0 + lb S-[ + rb S-] +) + +(deflayer smrt1 + esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 + grv 1 2 3 4 5 6 7 8 9 0 - = bspc + tab h n l g q . f e k ' [ ] \ + @lctl s m r t d , u o a i / ret + @lsft x j c b z v p w ; y @rsft + @nav @lmet @lsft spc @ralt @sym +) + +(deflayer nav + _ _ _ _ _ _ _ _ _ _ _ _ _ + _ _ _ _ _ _ _ _ _ _ _ _ _ _ + _ _ _ _ _ _ _ pgup up pgdn _ _ _ _ + _ _ @lalt @lctl @lsft _ _ lft down rght _ _ _ + _ _ _ _ @lmet _ _ home _ end _ _ + _ _ _ _ _ _ +) + +(deflayer sym + _ _ _ _ _ _ _ _ _ _ _ _ _ + _ _ _ _ _ _ _ _ _ _ _ _ _ _ + _ @lb [ @lp @cr _ _ @rb @rp ] @rb _ _ _ + _ / @hs @at @ex grv _ @lsft @lctl @lalt _ _ _ + _ @am @pr @ml @dl \ _ @lmet _ _ _ _ + _ _ _ _ _ _ +) + diff --git a/kanata/akko.kbd b/kanata/akko.kbd deleted file mode 100644 index 60f0622..0000000 --- a/kanata/akko.kbd +++ /dev/null @@ -1,176 +0,0 @@ -(defcfg - process-unmapped-keys yes - linux-dev /dev/input/by-id/usb-ROYUAN_AKKO_Multi-modes_Keyboard-B-event-kbd - linux-unicode-u-code v -) - -(defsrc - esc 1 2 3 4 5 6 7 8 9 0 - = bspc grv - tab q w e r t y u i o p [ ] \ - caps a s d f g h j k l ; ' ret - lsft z x c v b n m , . / rsft - lctl lmet lalt spc ralt rctl -) - -(defalias - l (chord chords l) - c (chord chords c) - p (chord chords p) - b (chord chords b) - k (chord chords k) - f (chord chords f) - o (chord chords o) - u (chord chords u) - - r (chord chords r) - t (chord chords t) - n (chord chords n) - , (chord chords ,) - ç (chord chords @ccedilha) - d (chord chords d) - e (chord chords e) - i (chord chords i) - - g (chord chords g) - v (chord chords v) - q (chord chords q) - . (chord chords .) - m (chord chords m) - h (chord chords h) - y (chord chords y) - w (chord chords w) - - ccedilha (macro RA-c ,) - á (macro RA-a ') - ã (macro RA-a S-grv) - à (macro RA-a grv) - â (macro RA-a S-6) - é (macro RA-e ') - ê (macro RA-e S-6) - í (macro RA-i ') - ú (macro RA-u ') - ó (macro RA-o ') - ô (macro RA-o S-6) - õ (macro RA-o S-grv) - - nav (layer-while-held nav) - num (layer-while-held num) - acc (layer-while-held acentos) - - lmet (one-shot-release 1000 lmet) - lalt (one-shot-release 1000 lalt) - lsft (one-shot-release 1000 lsft) - lctl (one-shot-release 1000 lctl) - - ralt (tap-hold-press 150 150 ralt @num) - spc (tap-hold-press 150 150 spc @nav) -) - -(defchords chords 150 - ;; fileira de cima - (l ) l - (c ) c - (p ) p - (b ) b - (k ) k - (f ) f - (o ) o - (u ) u - - ;; fileira do meio - (r ) r - (t ) t - (n ) n - (, ) , - (@ccedilha ) @ccedilha - (d ) d - (e ) e - (i ) i - - ;; fileira de baixo - (g ) g - (v ) v - (q ) q - (. ) . - (h ) h - (m ) m - (y ) y - (w ) w - - ;; combos laterais - lado esquerdo - (l c) esc - (c p) ret - (l p) caps - (r t) tab - (t n) , - (g v) C-c - (v q) C-v - - ;; combos verticais - lado esquerdo - (l r) S-2 - (c t) S-3 - (p n) S-4 - (b ,) S-5 - (r g) grv - (t v) S-1 - (n q) = - (, .) S-grv - - ;; combos laterais - lado direito - (f o) bspc - (o u) del - (d e) S-9 - (e i) S-0 - (m y) [ - (y w) ] - - ;; combos verticais - lado direito - (k @ccedilha) S-6 - (f d) + - (o e) S-8 - (u i) S-7 - (@ccedilha h) S-- - (d m) - - (e y) / - (i w) S-\ -) - -(deflayer sertania - esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 bspc grv - tab x @l @c @p @b - @k @f @o @u ' = \ - caps s @r @t @n @, / @ç @d @e @i a ret - z j @g @v @q @. \ @h @m @y @w ; - @acc lmet lalt @spc @ralt rctl -) - -(deflayer empty - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - _ _ _ _ _ _ _ _ _ _ _ _ _ _ - _ _ _ _ _ _ _ _ _ _ _ _ _ - _ _ _ _ _ _ _ _ _ _ _ _ - _ _ _ _ _ _ -) - -(deflayer nav - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - _ _ _ _ _ _ _ _ pgup up pgdn _ _ _ - _ _ @lalt @lctl @lsft _ _ _ lft down rght _ _ - _ _ _ _ @lmet _ _ _ home _ end _ - _ _ _ _ _ _ -) - -(deflayer num - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - _ _ 9 8 7 _ _ _ _ _ _ _ _ _ - _ _ 6 5 4 _ _ _ _ @lsft @lctl @lalt _ - _ 3 2 1 0 _ _ _ _ @lmet _ _ - _ _ _ _ _ _ -) - -(deflayer acentos - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - _ _ _ _ _ _ _ _ @í @é @ê @ú _ _ - _ _ @lalt @lctl @lsft _ _ _ @á @ã @à @â _ - _ _ _ _ @lmet _ _ _ @ó @ô @õ _ - _ _ _ _ _ _ -) diff --git a/kanata/ideapad.kbd b/kanata/ideapad.kbd index 43b6e8f..95a6bbe 100644 --- a/kanata/ideapad.kbd +++ b/kanata/ideapad.kbd @@ -26,129 +26,35 @@ ) (defalias - l (chord chords l) - c (chord chords c) - p (chord chords p) - b (chord chords b) - k (chord chords k) - f (chord chords f) - o (chord chords o) - u (chord chords u) - - r (chord chords r) - t (chord chords t) - n (chord chords n) - , (chord chords ,) - ç (chord chords ç) - d (chord chords d) - e (chord chords e) - i (chord chords i) - - g (chord chords g) - v (chord chords v) - q (chord chords q) - . (chord chords .) - h (chord chords h) - m (chord chords m) - y (chord chords y) - w (chord chords w) - - nav (layer-while-held nav) - num (layer-while-held num) - lmet (one-shot-release 1000 lmet) lalt (one-shot-release 1000 lalt) lsft (one-shot-release 1000 lsft) lctl (one-shot-release 1000 lctl) - spc (tap-hold-press 150 150 spc @nav) - ralt (tap-hold-press 150 150 ralt @num) -) - -(defchords chords 150 - ;; fileira de cima - (l ) l - (c ) c - (p ) p - (b ) b - (k ) k - (f ) f - (o ) o - (u ) u - - ;; fileira do meio - (r ) r - (t ) t - (n ) n - (, ) , - (ç ) ç - (d ) d - (e ) e - (i ) i - - ;; fileira de baixo - (g ) g - (v ) v - (q ) q - (. ) . - (h ) h - (m ) m - (y ) y - (w ) w - - ;; combos laterais - lado esquerdo - (l c) esc - (c p) ret - (r t) tab - (t n) rpt - (g v) C-c - (v q) C-v - - ;; combos verticais - lado esquerdo - (l r) S-2 - (c t) S-3 - (p n) S-4 - (b ,) S-5 - (r g) grv - (t v) S-1 - (n q) = - (, .) S-grv - - ;; combos laterais - lado direito - (f o) bspc - (o u) del - (d e) S-9 - (e i) S-0 - (h m) [ - (m y) ] - - ;; combos verticais - lado direito - (k ç) S-6 - (f d) + - (o e) S-8 - (u i) S-7 - (ç h) S-- - (d m) - - (e y) / - (i w) S-\ + nav (layer-while-held nav) + sym (layer-while-held sym) + + ex S-1 + at S-2 + hs S-3 + dl S-4 + pr S-5 + cr S-6 + am S-7 + ml S-8 + lp S-9 + rp S-0 + lb S-[ + rb S-] ) -(deflayer sertania - esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 - \ 1 2 3 4 5 6 7 8 9 0 - = bspc - tab x @l @c @p @b @k @f @o @u ' ´ [ ret - caps s @r @t @n @, @ç @d @e @i a ~ ] - lsft z j @g @v @q @. @h @m @y @w ; rsft - lctl lmet lalt @spc @ralt / -) - -(deflayer qwerty - esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 - ' 1 2 3 4 5 6 7 8 9 0 - = bspc - tab q w e r t y u i o p ´ [ ret - caps a s d f g h j k l ç ~ ] - lsft \ z x c v b n m , . ; rsft - lctl lmet lalt spc ralt / +(deflayer smrt1 + esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 + \ 1 2 3 4 5 6 7 8 9 0 - = bspc + tab h n l g q . f e k ' ´ [ ret + @lctl s m r t d , u o a i ~ ] + @lsft z x j c b / v p w ; y @lsft + @lctl @lmet @nav spc @sym / ) (deflayer empty @@ -169,11 +75,11 @@ _ _ _ _ _ _ ) -(deflayer num - _ _ _ _ _ _ _ _ _ _ _ _ _ - _ _ _ _ _ _ _ _ _ _ _ _ _ _ - _ _ 9 8 7 _ _ _ _ _ _ _ _ _ - _ _ 6 5 4 _ _ _ _ @lsft @lctl @lalt _ - _ _ 3 2 1 0 _ _ _ _ @lmet _ _ - _ _ _ _ _ _ +(deflayer sym + _ _ _ _ _ _ _ _ _ _ _ _ _ + _ _ _ _ _ _ _ _ _ _ _ _ _ _ + _ @lb [ @lp { @cr _ _ @rp ] @rb _ _ _ + _ / @hs @at @ex _ _ @lsft @lctl @lalt _ _ _ + _ \ @am @pr @ml @dl _ _ @lmet _ _ _ _ + _ _ _ _ _ _ ) diff --git a/keyd/akko.conf b/keyd/akko.conf deleted file mode 100644 index c808255..0000000 --- a/keyd/akko.conf +++ /dev/null @@ -1,228 +0,0 @@ -[ids] -0461:4002 -25a7:fa14 - -[global] -oneshot_timeout = 1000 - -[qwerty] -rightcontrol = toggle(qwerty) -leftcontrol = leftcontrol - -1 = 1 -2 = 2 -3 = 3 -4 = 4 -5 = 5 -6 = 6 -7 = 7 -8 = 8 -9 = 9 -0 = 0 -- = - -= = = -q = q -w = w -e = e -r = r -t = t -y = y -u = u -i = i -o = o -p = p -[ = [ -] = ] -\ = \ -a = a -s = s -d = d -f = f -g = g -h = h -j = j -k = k -l = l -; = ; -' = ' -z = z -x = x -c = c -v = v -b = b -n = n -m = m -, = , -. = . -/ = / -space = space - -[main] -1 = f1 -2 = f2 -3 = f3 -4 = f4 -5 = f5 -6 = f6 -7 = f7 -8 = f8 -9 = f9 -0 = f10 -- = f11 -= = f12 - -rightcontrol = toggle(qwerty) - -# graphite layout (angle mod + vc + kp swap) -# https://github.com/rdavison/graphite-layout -q = b -w = l -e = d -r = w -t = z -y = ' -u = f -i = o -o = u -p = j -[ = ; -] = = -\ = \ -a = n -s = r -d = t -f = s -g = g -h = y -j = h -k = a -l = e -; = i -' = , -z = x -x = m -c = v -v = c -b = q -n = k -m = p -, = . -. = - -/ = oneshot(symbols) - -leftcontrol = layer(numbers) -leftalt = oneshot(acentos) - -righsthift = rightshift - -c+v = oneshot(meta) -a+f = oneshot(alt) -s+f = oneshot(control) -d+f = oneshot(shift) - -j+k = oneshot(shift) -j+l = oneshot(control) -j+; = oneshot(alt) -m+, = oneshot(meta) - -w+e = esc -e+r = enter - -u+i = backspace -i+o = delete - -s+d = tab - -z+x = macro(C-c) -x+c = macro(C-v) - -w+s = [ -e+d = { -r+f = ( -u+j = ) -i+k = } -o+l = ] - -space = overloadt(nav, space, 150) - -[shift] -/ = ? - -[nav] -a = layer(meta) -s = layer(alt) -d = layer(shift) -f = layer(control) - -j = left -k = down -l = right -i = up - -u = pageup -o = pagedown -m = home -. = end - -[numbers] -y = / -u = 7 -i = 8 -o = 9 -p = - - -h = * -j = 4 -k = 5 -l = 6 -; = + - -n = 0 -m = 1 -, = 2 -. = 3 -/ = = - -[symbols] -/ = / -q = } -w = ] -e = ) -r = ` -a = $ -s = # -d = @ -f = ! -g = ~ -z = { -x = [ -c = ( -v = ^ - -[acentos] -y = macro(G-' u) -u = macro(G-' o) -i = macro(G-^ o) - -h = macro(G-^ a) -j = macro(G-, c) -k = macro(G-~ a o) -l = macro(G-' a) -; = macro(G-` a) - -m = macro(G-' e) -, = macro(G-^ e) - -[shift+acentos] -y = macro(G-' S-u) -u = macro(G-' S-o) -i = macro(G-^ S-o) - S- -h = macro(G-^ S-a) -j = macro(G-, S-c) -k = macro(G-~ S-a o) -l = macro(G-' S-a) -; = macro(G-` S-a) - S- -m = macro(G-' S-e) -, = macro(G-^ S-e) diff --git a/river/init b/river/init deleted file mode 100755 index 1c36d3c..0000000 --- a/river/init +++ /dev/null @@ -1,166 +0,0 @@ -#!/bin/sh - -# daemons & etc -riverctl spawn "kanshi" -riverctl spawn "waybar" -riverctl spawn "mako" -riverctl spawn "$HOME/.local/bin/,wallpaper" -riverctl spawn "wl-paste --type text --watch cliphist store" -riverctl spawn "wl-paste --type image --watch cliphist store" -riverctl spawn "swayidle -w \ - timeout 600 'swaylock -f -i ~/imagens/wallpapers/wall.png' \ - timeout 900 'wlopm --off \*;swaylock -F -i ~/imagens/wallpapers/wall.png' \ - timeout 1200 'loginctl suspend' \ - resume 'wlopm --on \*' \ - before-sleep 'swaylock -f -i ~/imagens/wallpapers/wall.png'" - -# básico -riverctl map normal Super+Alt Q exit - -riverctl background-color 0x101112 -riverctl border-color-focused 0x799df6 -riverctl border-color-unfocused 0xdfdfdf - -# riverctl default-layout rivertile -# rivertile -view-padding 10 -outer-padding 20 -main-ratio 0.5 & - -riverctl default-layout rivercarro -rivercarro -no-smart-gaps -outer-gaps 20 -main-location monocle -main-ratio 0.5 & -riverctl map normal Super Space send-layout-cmd rivercarro "main-location left" - -riverctl rule-add -app-id float_term float -riverctl rule-add -app-id firefox tags $((1 << 3)) -riverctl rule-add -app-id io.github.celluloid_player.Celluloid tags $((1 << 1)) - -riverctl set-repeat 40 250 - -riverctl set-cursor-warp on-output-change -riverctl xcursor-theme capitaine-cursors-light - -riverctl input pointer-1267-228-Elan_Touchpad natural-scroll enabled -riverctl input pointer-1267-228-Elan_Touchpad tap enabled -riverctl input pointer-1267-228-Elan_Touchpad tap-button-map left-right-middle -riverctl input pointer-1267-228-Elan_Touchpad scroll-method two-finger -riverctl input pointer-1267-228-Elan_Touchpad drag enabled -riverctl input pointer-1267-228-Elan_Touchpad pointer-accel 0.5 - -# janelas -riverctl map normal Super BackSpace close - -riverctl map normal Super Up focus-view previous -riverctl map normal Super Down focus-view next - -riverctl map normal Super+Shift Up swap next -riverctl map normal Super+Shift Down swap previous - -riverctl map normal Super m zoom - -riverctl map normal Super F toggle-fullscreen - -# monitores -riverctl map normal Super Period focus-output next -riverctl map normal Super Comma focus-output previous - -riverctl map normal Super+Shift Period send-to-output next -riverctl map normal Super+Shift Comma send-to-output previous - -# pilha -riverctl map normal Super H send-layout-cmd rivertile "main-ratio -0.05" -riverctl map normal Super L send-layout-cmd rivertile "main-ratio +0.05" - -# janelas flutuantes -riverctl map normal Super+Shift Space toggle-float - -riverctl map-pointer normal Super BTN_LEFT move-view -riverctl map-pointer normal Super BTN_RIGHT resize-view -riverctl map-pointer normal Super BTN_MIDDLE toggle-float - -# tags -for i in $(seq 1 4) -do - tags=$((1 << ($i - 1))) - - # Super+[1-9] to focus tag [0-8] - riverctl map normal Super $i set-focused-tags $tags - - # Super+Shift+[1-9] to tag focused view with tag [0-8] - riverctl map normal Super+Shift $i set-view-tags $tags - - # Super+Ctrl+[1-9] to toggle focus of tag [0-8] - riverctl map normal Super+Control $i toggle-focused-tags $tags - - # Super+Shift+Ctrl+[1-9] to toggle tag [0-8] of focused view - riverctl map normal Super+Shift+Control $i toggle-view-tags $tags -done - -riverctl map normal Super Tab focus-previous-tags - -all_tags=$(((1 << 32) - 1)) -riverctl map normal Super 0 set-focused-tags $all_tags -riverctl map normal Super+Shift 0 set-view-tags $all_tags - -# Declare a passthrough mode. This mode has only a single mapping to return to -# normal mode. This makes it useful for testing a nested wayland compositor -riverctl declare-mode passthrough - -# Super+F11 to enter passthrough mode -riverctl map normal Super F11 enter-mode passthrough - -# Super+F11 to return to normal mode -riverctl map passthrough Super F11 enter-mode normal - -# Various media key mapping examples for both normal and locked mode which do -# not have a modifier -for mode in normal locked -do - # Control pipewire volume - riverctl map $mode None XF86AudioMute spawn 'wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle' - riverctl map $mode None XF86AudioRaiseVolume spawn 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+' - riverctl map $mode None XF86AudioLowerVolume spawn 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-' - riverctl map $mode None XF86AudioMicMute spawn 'wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle' - - riverctl map $mode Shift F1 spawn 'wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle' - riverctl map $mode Shift F2 spawn 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+' - riverctl map $mode Shift F3 spawn 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-' - riverctl map $mode Shift F4 spawn 'wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle' - - # Control MPRIS aware media players with playerctl (https://github.com/altdesktop/playerctl) - riverctl map $mode None XF86AudioStop spawn 'playerctl stop' - riverctl map $mode None XF86AudioPlay spawn 'playerctl play-pause' - riverctl map $mode None XF86AudioPrev spawn 'playerctl previous' - riverctl map $mode None XF86AudioNext spawn 'playerctl next' - - riverctl map $mode Shift F5 spawn 'playerctl stop' - riverctl map $mode Shift F6 spawn 'playerctl previous' - riverctl map $mode Shift F7 spawn 'playerctl play-pause' - riverctl map $mode Shift F8 spawn 'playerctl next' - - riverctl map $mode None XF86MonBrightnessUp spawn 'xbacklight -inc 10' - riverctl map $mode None XF86MonBrightnessDown spawn 'xbacklight -dec 10' - - riverctl map $mode Shift F11 spawn 'xbacklight -dec 10' - riverctl map $mode Shift F12 spawn 'xbacklight -inc 10' -done - -# aplicativos -riverctl map normal Super Return spawn 'foot tmux new -A -s padrao' -riverctl map normal Super+Shift Return spawn 'foot -a float_term' - -riverctl map normal Super D spawn 'fuzzel' -riverctl map normal Super P spawn ',passmenu -t' - -riverctl map normal Super V spawn 'cliphist list | fuzzel -d | cliphist decode | wl-copy' -riverctl map normal Super C spawn 'cliphist wipe' - -riverctl map normal Super E spawn 'emacsclient -nc' -riverctl map normal Super+Shift E spawn 'emacs' - -riverctl map normal Super Y spawn 'ytfzf -sD' - -riverctl map normal Super+Alt G spawn 'swaylock -f -i ~/imagens/wallpapers/wall.png' - -riverctl map normal None Print spawn 'slurp | grim -g -' -riverctl map normal Shift Print spawn 'slurp | grim -g -' -riverctl map normal Alt Print spawn 'slurp | grim -g -' - -exec dbus-update-activation-environment DISPLAY I3SOCK SWAYSOCK WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river diff --git a/tmux/tmux.conf b/tmux/tmux.conf deleted file mode 100644 index 387738e..0000000 --- a/tmux/tmux.conf +++ /dev/null @@ -1,136 +0,0 @@ -# --- Bindings --- # - -unbind -a -T prefix -unbind -a -T root -unbind -a -T copy-mode -unbind -a -T copy-mode-vi - -# C-space prefix -set -g prefix C-space -bind C-space send-prefix - -bind ":" command-prompt - -bind "?" list-key - -# set bind key to reload configuration file -bind R source-file ~/.config/tmux/tmux.conf \; display "Reloaded!" - -bind Space copy-mode -bind -T copy-mode Escape send-keys -X cancel -bind -T copy-mode C-g send-keys -X cancel - -bind -T copy-mode n send-keys -X search-again -bind -T copy-mode N send-keys -X search-reverse - -bind -T copy-mode Up send-keys -X cursor-up -bind -T copy-mode C-p send-keys -X cursor-up -bind -T copy-mode Down send-keys -X cursor-down -bind -T copy-mode C-n send-keys -X cursor-down -bind -T copy-mode Left send-keys -X cursor-left -bind -T copy-mode Right send-keys -X cursor-right - -bind -T copy-mode Space if -F "#{selection_present}" { send -X clear-selection } { send -X begin-selection } -bind -T copy-mode y send-keys -X copy-pipe-no-clear -bind -T copy-mode Enter send-keys -X copy-pipe-and-cancel - -bind -n WheelUpPane copy-mode -e -bind -T copy-mode WheelUpPane send -X -N 5 scroll-up -bind -T copy-mode WheelDownPane send -X -N 5 scroll-down - -bind k kill-pane -bind Tab last-pane -bind v split-pane -h -c "#{pane_current_path}" -bind h split-pane -v -c "#{pane_current_path}" -bind o select-pane -t :.+ -bind z resize-pane -Z - -bind d detach-client - -bind [ switch-client -p -bind ] switch-client -n - -bind C-k unlink-window -k -bind C-Tab last-window -bind n new-window -bind C-p previous-window -bind C-n next-window -bind M-p swap-window -t -1 -bind M-n swap-window -t +1 - -# --- Config --- # - -set -s copy-command "wl-copy" - -# fixes ESC key delay -set -s escape-time 0 - -set -g mode-keys emacs -set -g mouse on - -# status line -set -g status-fg 'yellow' -set -g status-bg 'colour235' - -# active/current window colors -set -g window-status-current-style fg=colour236 -set -g window-status-current-style bg=colour160 - -set -g status-justify centre -set -g status-interval 5 - -# session name, window index, pane index on the left -set -g status-left-length 40 -set -g status-left "#[fg=blue]#S: #[fg=green]#P" - -# hostname and time on the right side -set -g status-right "#[fg=cyan]| #[fg=green]#h #[fg=blue]%H:%M #{tmux_mode_indicator}" - -# tmux starts on non-login shells -set -g default-command "${SHELL}" - -# automatically renames windows in numerical order when one is closed -set -g renumber-window on - -# fixes pinentry not launching -set -g update-environment 'DBUS_SESSION_BUS_ADDRESS' - -# truecolor -set -sa terminal-features ",foot*:RGB" - -new -s 'padrao' -n mus cmus -new-window -n rss newsboat -new-window -n mail meli - -new -s 'shell' - -# plugins - -set -g @plugin 'tmux-plugins/tpm' - -set -g @plugin 'wfxr/tmux-fzf-url' -set -g @fzf-url-history-limit '5000' -set -g @fzf-url-fzf-options '-w 50% -h 50% --multi -0 --no-preview --no-border' - -set -g @plugin 'MunifTanjim/tmux-mode-indicator' - -set -g @plugin 'tmux-plugins/tmux-copycat' - -set -g @plugin 'tmux-plugins/tmux-yank' - -set -g @plugin 'sainnhe/tmux-fzf' - -set -g @plugin 'noscript/tmux-mighty-scroll' - -# Other examples: -# set -g @plugin 'github_username/plugin_name' -# set -g @plugin 'github_username/plugin_name#branch' -# set -g @plugin 'git@github.com:user/plugin' -# set -g @plugin 'git@bitbucket.com:user/plugin' - -# ensures tpm is installed (for portability) -if "test ! -d ~/.config/tmux/plugins/tpm" \ - "run 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm && ~/.config/tmux/plugins/tpm/bin/install_plugins'" - -# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) -run '~/.config/tmux/plugins/tpm/tpm' |
