From 68623096f24d654b7754e0150d178863c7273692 Mon Sep 17 00:00:00 2001 From: Ethan Holz Date: Wed, 28 Aug 2024 18:41:06 -0500 Subject: [PATCH] remove old configs --- .gitmodules | 3 - alacritty/.config/alacritty/alacritty.yml | 857 ------------------ .../.config/alacritty/material_ocean.yml | 17 - awesome/.config/awesome/awesome-wm-widgets | 1 - .../.config/awesome/configuration/apps.lua | 15 - awesome/.config/awesome/configuration/awspawn | 31 - awesome/.config/awesome/custom/defaults.lua | 8 - awesome/.config/awesome/module/auto-start.lua | 18 - awesome/.config/awesome/rc.lua | 736 --------------- awesome/.config/awesome/theme.lua | 134 --- .../.config/awesome/theme/icons/discord.svg | 10 - awesome/.config/awesome/theme/init.lua | 5 - bootstrap.zsh | 53 -- font-setup.sh | 8 - rofi/.config/config.rasi | 7 - rofi/.config/slate.rasi | 43 - setup.sh | 51 -- starship/.config/starship/starship.toml | 18 - tmux/.config/tmux/tmux.conf | 19 - wezterm/.config/wezterm/wezterm.lua | 15 - zsh/.config/zsh/.zshrc | 56 -- zsh/.config/zsh/zsh-aliases | 18 - zsh/.config/zsh/zsh-functions | 94 -- zsh/.zshenv | 2 - 24 files changed, 2219 deletions(-) delete mode 100644 alacritty/.config/alacritty/alacritty.yml delete mode 100644 alacritty/.config/alacritty/material_ocean.yml delete mode 160000 awesome/.config/awesome/awesome-wm-widgets delete mode 100644 awesome/.config/awesome/configuration/apps.lua delete mode 100755 awesome/.config/awesome/configuration/awspawn delete mode 100644 awesome/.config/awesome/custom/defaults.lua delete mode 100644 awesome/.config/awesome/module/auto-start.lua delete mode 100644 awesome/.config/awesome/rc.lua delete mode 100644 awesome/.config/awesome/theme.lua delete mode 100644 awesome/.config/awesome/theme/icons/discord.svg delete mode 100644 awesome/.config/awesome/theme/init.lua delete mode 100644 bootstrap.zsh delete mode 100644 font-setup.sh delete mode 100644 rofi/.config/config.rasi delete mode 100644 rofi/.config/slate.rasi delete mode 100644 setup.sh delete mode 100644 starship/.config/starship/starship.toml delete mode 100644 tmux/.config/tmux/tmux.conf delete mode 100644 wezterm/.config/wezterm/wezterm.lua delete mode 100644 zsh/.config/zsh/.zshrc delete mode 100644 zsh/.config/zsh/zsh-aliases delete mode 100644 zsh/.config/zsh/zsh-functions delete mode 100644 zsh/.zshenv diff --git a/.gitmodules b/.gitmodules index ebbb31c..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "awesome/.config/awesome/awesome-wm-widgets"] - path = awesome/.config/awesome/awesome-wm-widgets - url = git@github.com:streetturtle/awesome-wm-widgets.git diff --git a/alacritty/.config/alacritty/alacritty.yml b/alacritty/.config/alacritty/alacritty.yml deleted file mode 100644 index ddbabfb..0000000 --- a/alacritty/.config/alacritty/alacritty.yml +++ /dev/null @@ -1,857 +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: - - ~/.config/alacritty/material_ocean.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 - -# window: -# opacity: 0 - # 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: 0 - # lines: 0 - - # 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: 0 - # 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: full - - # 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: JetBrains Mono NF - # family: JetBrains Mono Nerd Font - - # 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: 14.0 - # size: 12.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 - -# Colors (Tomorrow Night) -#colors: - # Default colors - #primary: - # background: '#1d1f21' - # 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. - #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: CellBackground - # background: CellForeground - - #bar: - # background: '#c5c8c6' - # foreground: '#1d1f21' - - # Keyboard hints - #hints: - # Fist 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 - #normal: - # black: '#1d1f21' - # red: '#cc6666' - # green: '#b5bd68' - # yellow: '#f0c674' - # blue: '#81a2be' - # magenta: '#b294bb' - # cyan: '#8abeb7' - # white: '#c5c8c6' - - # 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' - - # 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' }` - # - #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 - -# 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. - -#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: Beam - - # 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: Off - - # 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: 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 - -# 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/zsh -# 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 - -# 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` 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: "(mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\ - # [^\u0000-\u001F\u007F-\u009F<>\" {-}\\^⟨⟩`]+" - # 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 -# 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: T, mods: Control, chars: "\x02\x63"} - - {key: RBracket, mods: Control, chars: "\x02\x6e"} - - {key: LBracket, mods: Control, chars: "\x02\x70"} - #- { 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: 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: 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 } - -#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/alacritty/.config/alacritty/material_ocean.yml b/alacritty/.config/alacritty/material_ocean.yml deleted file mode 100644 index 0ab95ac..0000000 --- a/alacritty/.config/alacritty/material_ocean.yml +++ /dev/null @@ -1,17 +0,0 @@ -# material ocean color scheme -colors: - primary: - background: '0x0f111a' - foreground: '0xD8DEE9' - cursor: - cursor: '0xff4151' - normal: - black: '0x4C566A' - red: '0xBF616A' - green: '0xA3BE8C' - yellow: '0xEBCB8B' - blue: '0x81A1C1' - magenta: '0xB48EAD' - cyan: '0x88C0D0' - white: '0xE5E9F0' - diff --git a/awesome/.config/awesome/awesome-wm-widgets b/awesome/.config/awesome/awesome-wm-widgets deleted file mode 160000 index 5358c40..0000000 --- a/awesome/.config/awesome/awesome-wm-widgets +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5358c40a029252c1bfcabb4132e05621934a2cf6 diff --git a/awesome/.config/awesome/configuration/apps.lua b/awesome/.config/awesome/configuration/apps.lua deleted file mode 100644 index 08319de..0000000 --- a/awesome/.config/awesome/configuration/apps.lua +++ /dev/null @@ -1,15 +0,0 @@ -return { - -- List of apps to start once on start-up - run_on_start_up = { - [[nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"]], - "picom -b --dbus", - "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg)", -- credential manager - "flameshot", - "steam -silent", - "blueman-applet", - -- Add applications that need to be killed between reloads - -- to avoid multipled instances, inside the awspawn script - "~/.config/awesome/configuration/awspawn", -- Spawn "dirty" apps that can linger between sessions - "redshift-gtk", - }, -} diff --git a/awesome/.config/awesome/configuration/awspawn b/awesome/.config/awesome/configuration/awspawn deleted file mode 100755 index 8af17bc..0000000 --- a/awesome/.config/awesome/configuration/awspawn +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -## This configuration file is meant for applications that -# still run in the background when a reload is triggered -# for awesome, this script just kills the running instance -# and starts a new one. -# Only add applications/scripts without parameters here -# (if you want to apply parameters then use a script file!) - -# List of applications to run -APPS=( - ) - -# Some applications start child applications that need to be killed on reload -KILL=( - ) - -# First kill lingering apps -for app in "${APPS[@]}" -do - kill -9 $(pidof $app) -done -for app in "${KILL[@]}" -do - kill -9 $(pidof $app) -done - -# Start new instances -for app in "${APPS[@]}" -do - env $app ${@:2} & -done diff --git a/awesome/.config/awesome/custom/defaults.lua b/awesome/.config/awesome/custom/defaults.lua deleted file mode 100644 index 5cf9793..0000000 --- a/awesome/.config/awesome/custom/defaults.lua +++ /dev/null @@ -1,8 +0,0 @@ --- Hold default applications to handle more consistent mappings -local defaults = { - browser = "firefox", - suspend = "slock systemctl suspend -i", - work_apps = { slack = "flatpak run com.slack.Slack", thunderbird = "thunderbird" }, -} - -return defaults diff --git a/awesome/.config/awesome/module/auto-start.lua b/awesome/.config/awesome/module/auto-start.lua deleted file mode 100644 index dbb06dd..0000000 --- a/awesome/.config/awesome/module/auto-start.lua +++ /dev/null @@ -1,18 +0,0 @@ --- MODULE AUTO-START --- Run all the apps listed in configuration/apps.lua as run_on_start_up only once when awesome start - -local awful = require("awful") -local apps = require("configuration.apps") - -local function run_once(cmd) - local findme = cmd - local firstspace = cmd:find(" ") - if firstspace then - findme = cmd:sub(0, firstspace - 1) - end - awful.spawn.with_shell(string.format("pgrep -u $USER -x %s > /dev/null || (%s)", findme, cmd)) -end - -for _, app in ipairs(apps.run_on_start_up) do - run_once(app) -end diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua deleted file mode 100644 index ec9fbf9..0000000 --- a/awesome/.config/awesome/rc.lua +++ /dev/null @@ -1,736 +0,0 @@ --- If LuaRocks is installed, make sure that packages installed through it are --- found (e.g. lgi). If LuaRocks is not installed, do nothing. -pcall(require, "luarocks.loader") - -local volume_widget = require("awesome-wm-widgets.volume-widget.volume") -local logout_menu_widget = require("awesome-wm-widgets.logout-menu-widget.logout-menu") --- Standard awesome library -local gears = require("gears") -local awful = require("awful") -require("awful.autofocus") --- Widget and layout library -local wibox = require("wibox") --- Theme handling library -local beautiful = require("beautiful") --- Notification library -local naughty = require("naughty") -local menubar = require("menubar") -local hotkeys_popup = require("awful.hotkeys_popup") -require("module.auto-start") --- Enable hotkeys help widget for VIM and other apps --- when client with a matching name is opened: -require("awful.hotkeys_popup.keys") - --- Load Debian menu entries -local debian = require("debian.menu") -local has_fdo, freedesktop = pcall(require, "freedesktop") -awful.screen.set_auto_dpi_enabled(true) -local xresources = require("beautiful.xresources") -local dpi = xresources.apply_dpi --- {{{ Error handling --- Check if awesome encountered an error during startup and fell back to --- another config (This code will only ever execute for the fallback config) -if awesome.startup_errors then - naughty.notify({ - preset = naughty.config.presets.critical, - title = "Oops, there were errors during startup!", - text = awesome.startup_errors, - }) -end - -local has_defaults, defaults = pcall(require, "custom.defaults") - --- Handle runtime errors after startup -do - local in_error = false - awesome.connect_signal("debug::error", function(err) - -- Make sure we don't go into an endless error loop - if in_error then - return - end - in_error = true - - naughty.notify({ - preset = naughty.config.presets.critical, - title = "Oops, an error happened!", - text = tostring(err), - }) - in_error = false - end) -end --- }}} - --- {{{ Variable definitions --- Themes define colours, icons, font and wallpapers. -beautiful.init(gears.filesystem.get_configuration_dir() .. "theme.lua") - --- This is used later as the default terminal and editor to run. -terminal = "alacritty" -editor = os.getenv("EDITOR") or "editor" -editor_cmd = terminal .. " -e " .. editor - -if has_defaults then - browser = defaults["browser"] - suspend = defaults["supsend"] - work_apps = defaults["work_apps"] -end - --- Default modkey. --- Usually, Mod4 is the key with a logo between Control and Alt. --- If you do not like this or do not have such a key, --- I suggest you to remap Mod4 to another key using xmodmap or other tools. --- However, you can use another modifier like Mod1, but it may interact with others. -modkey = "Mod4" - --- Table of layouts to cover with awful.layout.inc, order matters. -awful.layout.layouts = { - awful.layout.suit.floating, - awful.layout.suit.tile, - awful.layout.suit.tile.left, - awful.layout.suit.tile.bottom, - awful.layout.suit.tile.top, - awful.layout.suit.fair, - awful.layout.suit.fair.horizontal, - awful.layout.suit.spiral, - awful.layout.suit.spiral.dwindle, - awful.layout.suit.max, - awful.layout.suit.max.fullscreen, - awful.layout.suit.magnifier, - awful.layout.suit.corner.nw, - -- awful.layout.suit.corner.ne, - -- awful.layout.suit.corner.sw, - -- awful.layout.suit.corner.se, -} --- }}} - --- {{{ Menu --- Create a launcher widget and a main menu -myawesomemenu = { - { - "hotkeys", - function() - hotkeys_popup.show_help(nil, awful.screen.focused()) - end, - }, - { "manual", terminal .. " -e man awesome" }, - { "edit config", editor_cmd .. " " .. awesome.conffile }, - { "restart", awesome.restart }, - { - "quit", - function() - awesome.quit() - end, - }, -} - -local menu_awesome = { "awesome", myawesomemenu, beautiful.awesome_icon } -local menu_terminal = { "open terminal", terminal } - -if has_fdo then - mymainmenu = freedesktop.menu.build({ - before = { menu_awesome }, - after = { menu_terminal }, - }) -else - mymainmenu = awful.menu({ - items = { - menu_awesome, - { "Debian", debian.menu.Debian_menu.Debian }, - menu_terminal, - }, - }) -end - -mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, menu = mymainmenu }) - --- Menubar configuration -menubar.utils.terminal = terminal -- Set the terminal for applications that require it --- }}} - --- Keyboard map indicator and switcher -mykeyboardlayout = awful.widget.keyboardlayout() - --- {{{ Wibar --- Create a textclock widget -mytextclock = wibox.widget.textclock("%a %b %d, %I:%M %p", 10) -new_textclock = wibox.container.margin(mytextclock, dpi(5), dpi(10)) -west_coast_clock = wibox.container.margin(wibox.widget.textclock("Pacific: %I:%M %p", 10, "America/Los_Angeles"), dpi(10), dpi(5)) -east_coast_clock = wibox.container.margin(wibox.widget.textclock("Eastern: %I:%M %p", 10, "America/New_York"), dpi(5), dpi(5)) - --- local spacer = wibox.widget({ --- widget = wibox.widget.seperator, --- textbox_seperator = --- orientation = "vertical", --- forced_width = 40, --- color = "white", --- }) - --- Create a wibox for each screen and add it -local taglist_buttons = gears.table.join( - awful.button({}, 1, function(t) - t:view_only() - end), - awful.button({ modkey }, 1, function(t) - if client.focus then - client.focus:move_to_tag(t) - end - end), - awful.button({}, 3, awful.tag.viewtoggle), - awful.button({ modkey }, 3, function(t) - if client.focus then - client.focus:toggle_tag(t) - end - end), - awful.button({}, 4, function(t) - awful.tag.viewnext(t.screen) - end), - awful.button({}, 5, function(t) - awful.tag.viewprev(t.screen) - end) -) - -local tasklist_buttons = gears.table.join( - awful.button({}, 1, function(c) - if c == client.focus then - c.minimized = true - else - c:emit_signal("request::activate", "tasklist", { raise = true }) - end - end), - awful.button({}, 3, function() - awful.menu.client_list({ theme = { width = 250 } }) - end), - awful.button({}, 4, function() - awful.client.focus.byidx(1) - end), - awful.button({}, 5, function() - awful.client.focus.byidx(-1) - end) -) - -local function set_wallpaper(s) - -- Wallpaper - if beautiful.wallpaper then - local wallpaper = beautiful.wallpaper - -- If wallpaper is a function, call it with the screen - if type(wallpaper) == "function" then - wallpaper = wallpaper(s) - end - gears.wallpaper.maximized(wallpaper, s, true) - end -end - -local function workmode() - if work_apps == nil then - return - end - local tag = awful.tag.find_by_name(awful.screen.focused(), "8") - local state = true - for _, c in ipairs(tag:clients()) do - local name = string.lower(c.name) - if string.find(name, "slack") or string.find(name, "thunderbird") then - state = false - c:kill() - end - end - if state then - for _, app in pairs(work_apps) do - awful.spawn(app) - end - end -end - --- Re-set wallpaper when a screen's geometry changes (e.g. different resolution) -screen.connect_signal("property::geometry", set_wallpaper) - -awful.screen.connect_for_each_screen(function(s) - -- Wallpaper - set_wallpaper(s) - local names = { "1", "2", "3", "4", "5", "6", "7", "8", "9" } - local l = awful.layout.suit - local layouts = { - l.tile, - l.floating, - l.floating, - l.floating, - l.floating, - l.floating, - l.floating, - l.tile, - l.tile, - } - awful.tag(names, s, layouts) - -- Each screen has its own tag table. - -- awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1]) - - -- Create a promptbox for each screen - s.mypromptbox = awful.widget.prompt() - -- Create an imagebox widget which will contain an icon indicating which layout we're using. - -- We need one layoutbox per screen. - s.mylayoutbox = awful.widget.layoutbox(s) - s.mylayoutbox:buttons(gears.table.join( - awful.button({}, 1, function() - awful.layout.inc(1) - end), - awful.button({}, 3, function() - awful.layout.inc(-1) - end), - awful.button({}, 4, function() - awful.layout.inc(1) - end), - awful.button({}, 5, function() - awful.layout.inc(-1) - end) - )) - -- Create a taglist widget - s.mytaglist = awful.widget.taglist({ - screen = s, - filter = awful.widget.taglist.filter.all, - buttons = taglist_buttons, - }) - - -- Create a tasklist widget - s.mytasklist = awful.widget.tasklist({ - screen = s, - filter = awful.widget.tasklist.filter.currenttags, - buttons = tasklist_buttons, - }) - - -- Create the wibox - s.mywibox = awful.wibar({ position = "top", screen = s }) - - -- Add widgets to the wibox - s.mywibox:setup({ - layout = wibox.layout.align.horizontal, - { -- Left widgets - layout = wibox.layout.fixed.horizontal, - mylauncher, - s.mytaglist, - s.mypromptbox, - }, - s.mytasklist, -- Middle widget - { -- Right widgets - layout = wibox.layout.fixed.horizontal, - mykeyboardlayout, - wibox.widget.systray(), - volume_widget({ - widget_type = "horizontal_bar", - with_icon = true, - shape = "rounded_bar", - }), - -- mytextclock, - -- spacer, - west_coast_clock, - east_coast_clock, - new_textclock, - s.mylayoutbox, - logout_menu_widget({ - onsuspend = function() - awful.spawn.with_shell("slock systemctl suspend -i") - end, - }), - }, - }) -end) --- }}} - --- {{{ Mouse bindings -root.buttons(gears.table.join( - awful.button({}, 3, function() - mymainmenu:toggle() - end), - awful.button({}, 4, awful.tag.viewnext), - awful.button({}, 5, awful.tag.viewprev) -)) --- }}} - --- {{{ Key bindings -globalkeys = gears.table.join( - awful.key({ modkey }, "s", hotkeys_popup.show_help, { description = "show help", group = "awesome" }), - awful.key({ modkey }, "Left", awful.tag.viewprev, { description = "view previous", group = "tag" }), - awful.key({ modkey }, "Right", awful.tag.viewnext, { description = "view next", group = "tag" }), - awful.key({ modkey }, "Escape", awful.tag.history.restore, { description = "go back", group = "tag" }), - - awful.key({ modkey }, "j", function() - awful.client.focus.byidx(1) - end, { description = "focus next by index", group = "client" }), - awful.key({ modkey }, "k", function() - awful.client.focus.byidx(-1) - end, { description = "focus previous by index", group = "client" }), - awful.key({ modkey }, "w", function() - mymainmenu:show() - end, { description = "show main menu", group = "awesome" }), - - -- Layout manipulation - awful.key({ modkey, "Shift" }, "j", function() - awful.client.swap.byidx(1) - end, { description = "swap with next client by index", group = "client" }), - awful.key({ modkey, "Shift" }, "k", function() - awful.client.swap.byidx(-1) - end, { description = "swap with previous client by index", group = "client" }), - awful.key({ modkey, "Control" }, "j", function() - awful.screen.focus_relative(1) - end, { description = "focus the next screen", group = "screen" }), - awful.key({ modkey, "Control" }, "k", function() - awful.screen.focus_relative(-1) - end, { description = "focus the previous screen", group = "screen" }), - awful.key({ modkey }, "u", awful.client.urgent.jumpto, { description = "jump to urgent client", group = "client" }), - awful.key({ modkey }, "Tab", function() - awful.client.focus.history.previous() - if client.focus then - client.focus:raise() - end - end, { description = "go back", group = "client" }), - - -- Standard program - awful.key({ modkey }, "Return", function() - awful.spawn(terminal) - end, { description = "open a terminal", group = "launcher" }), - awful.key({ modkey, "Control" }, "r", awesome.restart, { description = "reload awesome", group = "awesome" }), - awful.key({ modkey, "Shift" }, "q", awesome.quit, { description = "quit awesome", group = "awesome" }), - - awful.key({ modkey }, "l", function() - awful.tag.incmwfact(0.05) - end, { description = "increase master width factor", group = "layout" }), - awful.key({ modkey }, "h", function() - awful.tag.incmwfact(-0.05) - end, { description = "decrease master width factor", group = "layout" }), - awful.key({ modkey, "Shift" }, "h", function() - awful.tag.incnmaster(1, nil, true) - end, { description = "increase the number of master clients", group = "layout" }), - awful.key({ modkey, "Shift" }, "l", function() - awful.tag.incnmaster(-1, nil, true) - end, { description = "decrease the number of master clients", group = "layout" }), - awful.key({ modkey, "Control" }, "h", function() - awful.tag.incncol(1, nil, true) - end, { description = "increase the number of columns", group = "layout" }), - awful.key({ modkey, "Control" }, "l", function() - awful.tag.incncol(-1, nil, true) - end, { description = "decrease the number of columns", group = "layout" }), - awful.key({ modkey }, "space", function() - awful.layout.inc(1) - end, { description = "select next", group = "layout" }), - awful.key({ modkey, "Shift" }, "space", function() - awful.layout.inc(-1) - end, { description = "select previous", group = "layout" }), - - awful.key({ modkey, "Control" }, "n", function() - local c = awful.client.restore() - -- Focus restored client - if c then - c:emit_signal("request::activate", "key.unminimize", { raise = true }) - end - end, { description = "restore minimized", group = "client" }), - - -- Prompt - -- awful.key({ modkey }, "r", function() - -- awful.screen.focused().mypromptbox:run() - -- end, { description = "run prompt", group = "launcher" }), - -- - --Rofi - - awful.key({ modkey }, "r", function() - awful.util.spawn("rofi -show drun") - end, { description = "run rofi", group = "launcher" }), - - awful.key({ modkey }, "b", function() - awful.spawn.spawn(browser) - end, { description = "run browser", group = "applications" }), - - awful.key({ modkey }, "d", function() - awful.util.spawn("discord") - end, { description = "run discord", group = "applications" }), - - awful.key({ modkey }, "x", function() - awful.prompt.run({ - prompt = "Run Lua code: ", - textbox = awful.screen.focused().mypromptbox.widget, - exe_callback = awful.util.eval, - history_path = awful.util.get_cache_dir() .. "/history_eval", - }) - end, { description = "lua execute prompt", group = "awesome" }), - -- Menubar - awful.key({ modkey }, "p", function() - menubar.show() - end, { description = "show the menubar", group = "launcher" }), - - awful.key({}, "XF86AudioRaiseVolume", function() - volume_widget:inc(5) - end, { description = "increase by 5", group = "volume" }), - awful.key({}, "XF86AudioLowerVolume", function() - volume_widget:dec(5) - end, { description = "decrease by 5", group = "volume" }), - awful.key({}, "XF86AudioMute", function() - volume_widget:toggle() - end, { description = "toggle mute", group = "volume" }), - awful.key({ modkey }, "F1", function() - -- awful.util.spawn([[pactl set-source-volume alsa_input.pci-0000_21_00.3.analog-stereo 40% > /dev/null]]) - awful.spawn.spawn([[pactl set-source-volume alsa_input.pci-0000_21_00.3.analog-stereo 40% &]]) - end, { description = "set mic to 40%", group = "volume" }), - awful.key({ modkey }, "F8", function() - awful.spawn.with_shell(suspend) - end, { description = "supsend machine", group = "awesome" }), - awful.key({}, "Print", function() - awful.spawn.with_shell("flameshot gui") - end, { description = "supsend machine", group = "awesome" }), - awful.key({ modkey }, "F4", workmode, { description = "supsend machine", group = "awesome" }) -) - -clientkeys = gears.table.join( - awful.key({ modkey }, "f", function(c) - c.fullscreen = not c.fullscreen - c:raise() - end, { description = "toggle fullscreen", group = "client" }), - awful.key({ modkey }, "q", function(c) - c:kill() - end, { description = "close", group = "client" }), - awful.key( - { modkey, "Control" }, - "space", - awful.client.floating.toggle, - { description = "toggle floating", group = "client" } - ), - awful.key({ modkey, "Control" }, "Return", function(c) - c:swap(awful.client.getmaster()) - end, { description = "move to master", group = "client" }), - awful.key({ modkey }, "o", function(c) - c:move_to_screen() - end, { description = "move to screen", group = "client" }), - awful.key({ modkey }, "t", function(c) - c.ontop = not c.ontop - end, { description = "toggle keep on top", group = "client" }), - awful.key({ modkey }, "n", function(c) - -- The client currently has the input focus, so it cannot be - -- minimized, since minimized clients can't have the focus. - c.minimized = true - end, { description = "minimize", group = "client" }), - awful.key({ modkey }, "m", function(c) - c.maximized = not c.maximized - c:raise() - end, { description = "(un)maximize", group = "client" }), - awful.key({ modkey, "Control" }, "m", function(c) - c.maximized_vertical = not c.maximized_vertical - c:raise() - end, { description = "(un)maximize vertically", group = "client" }), - awful.key({ modkey, "Shift" }, "m", function(c) - c.maximized_horizontal = not c.maximized_horizontal - c:raise() - end, { description = "(un)maximize horizontally", group = "client" }) -) - --- Bind all key numbers to tags. --- Be careful: we use keycodes to make it work on any keyboard layout. --- This should map on the top row of your keyboard, usually 1 to 9. -for i = 1, 9 do - globalkeys = gears.table.join( - globalkeys, - -- View tag only. - awful.key({ modkey }, "#" .. i + 9, function() - local screen = awful.screen.focused() - local tag = screen.tags[i] - if tag then - tag:view_only() - end - end, { description = "view tag #" .. i, group = "tag" }), - -- Toggle tag display. - awful.key({ modkey, "Control" }, "#" .. i + 9, function() - local screen = awful.screen.focused() - local tag = screen.tags[i] - if tag then - awful.tag.viewtoggle(tag) - end - end, { description = "toggle tag #" .. i, group = "tag" }), - -- Move client to tag. - awful.key({ modkey, "Shift" }, "#" .. i + 9, function() - if client.focus then - local tag = client.focus.screen.tags[i] - if tag then - client.focus:move_to_tag(tag) - end - end - end, { description = "move focused client to tag #" .. i, group = "tag" }), - -- Toggle tag on focused client. - awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, function() - if client.focus then - local tag = client.focus.screen.tags[i] - if tag then - client.focus:toggle_tag(tag) - end - end - end, { description = "toggle focused client on tag #" .. i, group = "tag" }) - ) -end - -clientbuttons = gears.table.join( - awful.button({}, 1, function(c) - c:emit_signal("request::activate", "mouse_click", { raise = true }) - end), - awful.button({ modkey }, 1, function(c) - c:emit_signal("request::activate", "mouse_click", { raise = true }) - awful.mouse.client.move(c) - end), - awful.button({ modkey }, 3, function(c) - c:emit_signal("request::activate", "mouse_click", { raise = true }) - awful.mouse.client.resize(c) - end) -) - --- Set keys -root.keys(globalkeys) --- }}} - --- {{{ Rules --- Rules to apply to new clients (through the "manage" signal). -awful.rules.rules = { - -- All clients will match this rule. - { - rule = {}, - properties = { - border_width = beautiful.border_width, - border_color = beautiful.border_normal, - focus = awful.client.focus.filter, - raise = true, - keys = clientkeys, - buttons = clientbuttons, - screen = awful.screen.preferred, - placement = awful.placement.no_overlap + awful.placement.no_offscreen, - }, - }, - - -- Floating clients. - { - rule_any = { - instance = { - "DTA", -- Firefox addon DownThemAll. - "copyq", -- Includes session name in class. - "pinentry", - }, - class = { - "Arandr", - "Blueman-manager", - "Gpick", - "Kruler", - "MessageWin", -- kalarm. - "Sxiv", - "Tor Browser", -- Needs a fixed window size to avoid fingerprinting by screen size. - "Wpa_gui", - "veromix", - "xtightvncviewer", - }, - - -- Note that the name property shown in xprop might be set slightly after creation of the client - -- and the name shown there might not match defined rules here. - name = { - "Event Tester", -- xev. - }, - role = { - "AlarmWindow", -- Thunderbird's calendar. - "ConfigManager", -- Thunderbird's about:config. - "pop-up", -- e.g. Google Chrome's (detached) Developer Tools. - }, - }, - properties = { floating = true }, - }, - - -- Add titlebars to normal clients and dialogs - { rule_any = { type = { "normal", "dialog" } }, properties = { titlebars_enabled = true } }, - { - rule_any = { - class = { "Steam" }, - }, - properties = { - titlebars_enabled = false, - }, - }, - -- Set a rule to always but discord on the 9th tag - { rule = { class = "discord" }, properties = { screen = 1, tag = "9" } }, - -- Always put slack on tag 8 - { rule = { class = "Slack" }, properties = { screen = 1, tag = "8" } }, - { rule = { class = "Thunderbird" }, properties = { screen = 1, tag = "8" } }, - -- Set Firefox to always map on the tag named "2" on screen 1. - -- { rule = { class = "Firefox" }, - -- properties = { screen = 1, tag = "2" } }, -} --- }}} - --- {{{ Signals --- Signal function to execute when a new client appears. -client.connect_signal("manage", function(c) - -- Set the windows at the slave, - -- i.e. put it at the end of others instead of setting it master. - -- if not awesome.startup then awful.client.setslave(c) end - - if awesome.startup and not c.size_hints.user_position and not c.size_hints.program_position then - -- Prevent clients from being unreachable after screen count changes. - awful.placement.no_offscreen(c) - end -end) - --- Add a titlebar if titlebars_enabled is set to true in the rules. -client.connect_signal("request::titlebars", function(c) - -- buttons for the titlebar - local buttons = gears.table.join( - awful.button({}, 1, function() - c:emit_signal("request::activate", "titlebar", { raise = true }) - awful.mouse.client.move(c) - end), - awful.button({}, 3, function() - c:emit_signal("request::activate", "titlebar", { raise = true }) - awful.mouse.client.resize(c) - end) - ) - - awful.titlebar(c):setup({ - { -- Left - awful.titlebar.widget.iconwidget(c), - buttons = buttons, - layout = wibox.layout.fixed.horizontal, - }, - { -- Middle - { -- Title - align = "center", - widget = awful.titlebar.widget.titlewidget(c), - }, - buttons = buttons, - layout = wibox.layout.flex.horizontal, - }, - { -- Right - awful.titlebar.widget.floatingbutton(c), - awful.titlebar.widget.maximizedbutton(c), - awful.titlebar.widget.stickybutton(c), - awful.titlebar.widget.ontopbutton(c), - awful.titlebar.widget.closebutton(c), - layout = wibox.layout.fixed.horizontal(), - }, - layout = wibox.layout.align.horizontal, - }) -end) - --- Enable sloppy focus, so that focus follows mouse. -client.connect_signal("mouse::enter", function(c) - c:emit_signal("request::activate", "mouse_enter", { raise = false }) -end) - -client.connect_signal("focus", function(c) - c.border_color = beautiful.border_focus -end) -client.connect_signal("unfocus", function(c) - c.border_color = beautiful.border_normal -end) --- }}} --- --- - --- autorun = true --- autorunApps = { --- [[nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"]], --- "picom -b --dbus", --- -- "nm-applet --indicator", --- "volumeicon &", --- "nitrogen --restore", --- } --- if autorun then --- for app = 1, #autorunApps do --- awful.util.spawn(autorunApps[app]) --- end --- end diff --git a/awesome/.config/awesome/theme.lua b/awesome/.config/awesome/theme.lua deleted file mode 100644 index 76886e8..0000000 --- a/awesome/.config/awesome/theme.lua +++ /dev/null @@ -1,134 +0,0 @@ ---------------------------- --- Default awesome theme -- ---------------------------- - -local theme_assets = require("beautiful.theme_assets") -local xresources = require("beautiful.xresources") -local dpi = xresources.apply_dpi - -local gfs = require("gears.filesystem") -local themes_path = gfs.get_themes_dir() - -local gs = require("gears.shape") - -local theme = {} - -theme.font = "Poppins Regular 9" - --- theme.bg_normal = "#222222" -theme.bg_normal = "#343546" --- theme.bg_focus = "#535d6c" -theme.bg_focus = "#535d6c" -theme.bg_urgent = "#ff0000" -theme.bg_minimize = "#444444" -theme.bg_systray = theme.bg_normal - -theme.fg_normal = "#aaaaaa" -theme.fg_focus = "#ffffff" -theme.fg_urgent = "#ffffff" -theme.fg_minimize = "#ffffff" - -theme.useless_gap = dpi(8) -theme.border_width = dpi(1) -theme.border_normal = "#000000" --- theme.border_focus = "#535d6c" -theme.border_marked = "#91231c" -theme.border_focus = "#4f30ab" - --- There are other variable sets --- overriding the default one when --- defined, the sets are: --- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile] --- tasklist_[bg|fg]_[focus|urgent] --- titlebar_[bg|fg]_[normal|focus] --- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color] --- mouse_finder_[color|timeout|animate_timeout|radius|factor] --- prompt_[fg|bg|fg_cursor|bg_cursor|font] --- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font] --- Example: ---theme.taglist_bg_focus = "#ff0000" - --- Generate taglist squares: -local taglist_square_size = dpi(4) -theme.taglist_squares_sel = theme_assets.taglist_squares_sel(taglist_square_size, theme.fg_normal) -theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(taglist_square_size, theme.fg_normal) - --- Variables set for theming notifications: --- notification_font --- notification_[bg|fg] --- notification_[width|height|margin] --- notification_[border_color|border_width|shape|opacity] -theme.notification_width = dpi(250) -theme.notification_height = dpi(100) -theme.notification_shape = gs.rounded_rect -theme.notification_font = "Poppins Regular 9" - --- Variables set for theming the menu: --- menu_[bg|fg]_[normal|focus] --- menu_[border_color|border_width] -theme.menu_submenu_icon = themes_path .. "default/submenu.png" -theme.menu_height = dpi(15) -theme.menu_width = dpi(100) - --- You can add as many variables as --- you wish and access them by using --- beautiful.variable in your rc.lua ---theme.bg_widget = "#cc0000" - --- Define the image to load -theme.titlebar_close_button_normal = themes_path .. "default/titlebar/close_normal.png" -theme.titlebar_close_button_focus = themes_path .. "default/titlebar/close_focus.png" - -theme.titlebar_minimize_button_normal = themes_path .. "default/titlebar/minimize_normal.png" -theme.titlebar_minimize_button_focus = themes_path .. "default/titlebar/minimize_focus.png" - -theme.titlebar_ontop_button_normal_inactive = themes_path .. "default/titlebar/ontop_normal_inactive.png" -theme.titlebar_ontop_button_focus_inactive = themes_path .. "default/titlebar/ontop_focus_inactive.png" -theme.titlebar_ontop_button_normal_active = themes_path .. "default/titlebar/ontop_normal_active.png" -theme.titlebar_ontop_button_focus_active = themes_path .. "default/titlebar/ontop_focus_active.png" - -theme.titlebar_sticky_button_normal_inactive = themes_path .. "default/titlebar/sticky_normal_inactive.png" -theme.titlebar_sticky_button_focus_inactive = themes_path .. "default/titlebar/sticky_focus_inactive.png" -theme.titlebar_sticky_button_normal_active = themes_path .. "default/titlebar/sticky_normal_active.png" -theme.titlebar_sticky_button_focus_active = themes_path .. "default/titlebar/sticky_focus_active.png" - -theme.titlebar_floating_button_normal_inactive = themes_path .. "default/titlebar/floating_normal_inactive.png" -theme.titlebar_floating_button_focus_inactive = themes_path .. "default/titlebar/floating_focus_inactive.png" -theme.titlebar_floating_button_normal_active = themes_path .. "default/titlebar/floating_normal_active.png" -theme.titlebar_floating_button_focus_active = themes_path .. "default/titlebar/floating_focus_active.png" - -theme.titlebar_maximized_button_normal_inactive = themes_path .. "default/titlebar/maximized_normal_inactive.png" -theme.titlebar_maximized_button_focus_inactive = themes_path .. "default/titlebar/maximized_focus_inactive.png" -theme.titlebar_maximized_button_normal_active = themes_path .. "default/titlebar/maximized_normal_active.png" -theme.titlebar_maximized_button_focus_active = themes_path .. "default/titlebar/maximized_focus_active.png" - -theme.wallpaper = "~/Pictures/Catharsis (Final).png" - --- You can use your own layout icons like this: -theme.layout_fairh = themes_path .. "default/layouts/fairhw.png" -theme.layout_fairv = themes_path .. "default/layouts/fairvw.png" -theme.layout_floating = themes_path .. "default/layouts/floatingw.png" -theme.layout_magnifier = themes_path .. "default/layouts/magnifierw.png" -theme.layout_max = themes_path .. "default/layouts/maxw.png" -theme.layout_fullscreen = themes_path .. "default/layouts/fullscreenw.png" -theme.layout_tilebottom = themes_path .. "default/layouts/tilebottomw.png" -theme.layout_tileleft = themes_path .. "default/layouts/tileleftw.png" -theme.layout_tile = themes_path .. "default/layouts/tilew.png" -theme.layout_tiletop = themes_path .. "default/layouts/tiletopw.png" -theme.layout_spiral = themes_path .. "default/layouts/spiralw.png" -theme.layout_dwindle = themes_path .. "default/layouts/dwindlew.png" -theme.layout_cornernw = themes_path .. "default/layouts/cornernww.png" -theme.layout_cornerne = themes_path .. "default/layouts/cornernew.png" -theme.layout_cornersw = themes_path .. "default/layouts/cornersww.png" -theme.layout_cornerse = themes_path .. "default/layouts/cornersew.png" - --- Generate Awesome icon: -theme.awesome_icon = theme_assets.awesome_icon(theme.menu_height, theme.bg_focus, theme.fg_focus) - --- Define the icon theme for application icons. If not set then the icons --- from /usr/share/icons and /usr/share/icons/hicolor will be used. -theme.icon_theme = nil - -return theme - --- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/awesome/.config/awesome/theme/icons/discord.svg b/awesome/.config/awesome/theme/icons/discord.svg deleted file mode 100644 index f905d23..0000000 --- a/awesome/.config/awesome/theme/icons/discord.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/awesome/.config/awesome/theme/init.lua b/awesome/.config/awesome/theme/init.lua deleted file mode 100644 index f8dc613..0000000 --- a/awesome/.config/awesome/theme/init.lua +++ /dev/null @@ -1,5 +0,0 @@ -local dir = os.getenv("XDG_CONFIG_HOME") .. "/awesome/theme/icons" - -return { - discord = dir .. "/discord.svg", -} diff --git a/bootstrap.zsh b/bootstrap.zsh deleted file mode 100644 index a4e5654..0000000 --- a/bootstrap.zsh +++ /dev/null @@ -1,53 +0,0 @@ -missing_args=() -# Install Starship Prompt -if ! (( $+commands[starship] )); then - sh -c "$(curl -fsSL https://starship.rs/install.sh)" -fi - -# Check if apt is installed -if (( $+commands[apt] )); then - # Install Zoxide - if ! (( $+commands[zoxide] )); then - missing_args+=('zoxide') - echo 'eval "$(zoxide init zsh)"' >> $XDG_HOME/.zshrc - fi - # Install FZF - if ! (( $+commands[fzf] )); then - missing_args+=('fzf') - fi - # Install FZF - if ! (( $+commands[stow] )); then - missing_args+=('stow') - fi - # Run install command - if [ ${#missing_args[@]} -ne 0 ]; then - sudo apt update - sudo apt install $missing_args - fi -fi - -if ! (( $+commands[luarocks] )); then - wget https://luarocks.org/releases/luarocks-3.3.1.tar.gz - tar zxpf luarocks-3.3.1.tar.gz - ./luarocks-3.3.1/configure - make luarocks-3.3.1/ - sudo make install luarocks-3.3.1/ -fi - -if ! (( $+commands[pfetch] )); then - wget https://raw.githubusercontent.com/dylanaraps/pfetch/master/pfetch - mv pfetch $HOME/bin/ - chmod +x $HOME/bin/pfetch -fi -if ! (( $+commands[beautysh] )); then - pip install beautysh -fi -if ! (( $+commands[exa] )); then - cargo install exa -fi -if ! (( $+commands[stylua] )); then - cargo install stylua -fi -if ! (( $+commands[pyright] )); then - sudo npm install -g pyright -fi diff --git a/font-setup.sh b/font-setup.sh deleted file mode 100644 index 5f5dc49..0000000 --- a/font-setup.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/JetBrainsMono.zip -P /tmp/ -unzip /tmp/JetBrainsMono.zip -d /tmp/font-temp - -echo "Cleaning up" -rm /tmp/JetBrains* -rm -rf /tmp/font-temp diff --git a/rofi/.config/config.rasi b/rofi/.config/config.rasi deleted file mode 100644 index 7ee85d3..0000000 --- a/rofi/.config/config.rasi +++ /dev/null @@ -1,7 +0,0 @@ -configuration { - modi: "window,drun,combi"; - font: "Jet Brains Mono Nerd Font 15"; - combi-mod: "window,run"; - show-icons: true; -} -@theme "slate" diff --git a/rofi/.config/slate.rasi b/rofi/.config/slate.rasi deleted file mode 100644 index d6d29b3..0000000 --- a/rofi/.config/slate.rasi +++ /dev/null @@ -1,43 +0,0 @@ -* { - background-color: #282C33; - border-color: #2e343f; - text-color: #8ca0aa; - spacing: 0; - width: 512px; -} - -inputbar { - border: 0 0 1px 0; - children: [prompt,entry]; -} - -prompt { - padding: 16px; - border: 0 1px 0 0; -} - -textbox { - background-color: #2e343f; - border: 0 0 1px 0; - border-color: #282C33; - padding: 8px 16px; -} - -entry { - padding: 16px; -} - -listview { - cycle: false; - margin: 0 0 -1px 0; - scrollbar: false; -} - -element { - border: 0 0 1px 0; - padding: 16px; -} - -element selected { - background-color: #2e343f; -} \ No newline at end of file diff --git a/setup.sh b/setup.sh deleted file mode 100644 index 9015651..0000000 --- a/setup.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# Use this line to create a space delimited list of applications to be installed -# while this does not work for all distros at this time, the PM will throw an error -# if the package can't be installed -packagesNeeded='neovim zsh golang-go go ccls clang-format clang' - -PM='' - -cd $HOME - -if [ -x "$(command -v apt)" ]; then sudo apt update && sudo apt upgrade; PM='apt'; -elif [ -x "$(command -v dnf)" ]; then sudo dnf upgrade; PM='dnf'; -elif [ -x "$(command -v zypper)" ]; then sudo zypper ref && sudo zypper update; PM='zyp'; -elif [ -x "$(command -v pacman)" ]; then sudo pacman -Syu; PM='pac'; -else echo "FAILED TO FIND PACKAGE MANAGER"; fi - - -if [ -x "$(command -v apt)" ]; then sudo apt install $packagesNeeded -elif [ -x "$(command -v dnf)" ]; then sudo dnf install $packagesNeeded -elif [ -x "$(command -v zypper)" ]; then sudo zypper install $packagesNeeded -elif [ -x "$(command -v pacman)" ]; then sudo pacman -S $packagesNeeded -else echo "FAILED TO INSTALL PACKAGE: Package manager not found. You must manually install: $packagesNeeded">&2; fi - -sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ - https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' - - -if [ -d ".config" ]; then - echo ".config directory exists" -else - echo ".config directory does not exist..." - mkdir .config -fi -curl -L git.io/antigen > ~/.config/zsh-plugins/antigen.zsh - -git config --global user.email "ethan2@vt.edu" -git config --gloabl user.name "Ethan Holz" -git config --global core.editor nvim - -FILE1=/usr/local/bin/zsh -FILE2=/usr/bin/zsh -if [ -f "$FILE1" ]; then - echo "$FILE1 exists." - echo $FILE1 | sudo tee -a /etc/shells - FILE3=$FILE1 -elif [ -f "$FILE2" ]; then - echo "$FILE2 exists." - echo $FILE2 | sudo tee -a /etc/shells - FILE3=$FILE2 -fi -echo "Please change your shell using chsh -s $FILE3" diff --git a/starship/.config/starship/starship.toml b/starship/.config/starship/starship.toml deleted file mode 100644 index c2c4415..0000000 --- a/starship/.config/starship/starship.toml +++ /dev/null @@ -1,18 +0,0 @@ -[python] -pyenv_version_name=true - -[cmake] -disabled = true - -[java] -disabled = true - -[character] -success_symbol = "[❯](purple)" - - -[cmd_duration] -min_time = 10_000 - -[directory] -format = "[$path]($style)[$read_only]($read_only_style) " diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf deleted file mode 100644 index 6396e5d..0000000 --- a/tmux/.config/tmux/tmux.conf +++ /dev/null @@ -1,19 +0,0 @@ -set -g default-terminal "xterm-256color" -set-option -ga terminal-overrides ",xterm-256color:Tc" -# tmux options -set -ga terminal-overrides ",alacritty:RGB" -set-option -sg escape-time 10 -set-option -g focus-events on -set -g mouse on -bind-key h split-window -h -bind-key v split-window -v -set -g @plugin 'tmux-plugins/tpm' -set -g @plugin 'tmux-plugins/tmux-sensible' -# set -g @plugin 'wfxr/tmux-power' -# set -g @tmux_power_theme '#ff4151' -set -g @plugin 'odedlaz/tmux-onedark-theme' -set -g @plugin 'pwittchen/tmux-plugin-spotify' -set -g @onedark_widgets "#{spotify_status_full}" -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' diff --git a/wezterm/.config/wezterm/wezterm.lua b/wezterm/.config/wezterm/wezterm.lua deleted file mode 100644 index a2f336e..0000000 --- a/wezterm/.config/wezterm/wezterm.lua +++ /dev/null @@ -1,15 +0,0 @@ -local wezterm = require("wezterm") - -return { - font = wezterm.font("Jet Brains Mono Nerd Font"), - font_size = 13.0, - default_prog = { "/bin/zsh" }, - color_scheme = "carbonfox", - xcursor_theme = "Pop", - enable_tab_bar = false, - window_padding = { - left = 0, - right = 0, - bottom = 0 - } -} diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc deleted file mode 100644 index a51ea06..0000000 --- a/zsh/.config/zsh/.zshrc +++ /dev/null @@ -1,56 +0,0 @@ -# If you come from bash you might have to change your $PATH. -HISTFILE=~/.zsh_history -HISTSIZE=10000 -SAVEHIST=10000 -setopt appendhistory -export PATH=$HOME/.yarn/bin/:$HOME/bin:/usr/local/bin:$HOME/.local/bin:$HOME/.luarocks/bin:$HOME/aibin:$HOME/.cargo/bin:/usr/local/go/bin/:$HOME/go/bin/:$PATH -export PATH="$SPICETIFY_INSTALL:$PATH" -export STARSHIP_CONFIG=~/.config/starship/starship.toml -setopt autocd extendedglob nomatch menucomplete -setopt interactive_comments -# Colors -autoload -Uz colors && colors -# Check for WSL in kernel info -if [[ $(uname -r) == *"WSL"* ]]; then - export PATH=/mnt/c/Windows/SysWOW64/clip.exe:$PATH -fi -fpath+=${ZDOTDIR:-~}/completions -fpath+=${ZDOTDIR:-~}/plugins -source "$ZDOTDIR/zsh-functions" -zsh_add_file "zsh-aliases" -# # zsh_add_plugin "zsh-users/zsh-autosuggestions" -zsh_add_plugin "zsh-users/zsh-syntax-highlighting" -zsh_add_plugin "marlonrichert/zsh-autocomplete" -# Soruce zsh-functions -zmodload zsh/zprof -# Add support for using GPG key for SSH -export GPG_TTY="$(tty)" -export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh" -gpg-connect-agent updatestartuptty /bye >/dev/null -# Opting not to source the bootstrap file and will run this manually -# source ~/.config/zsh-plugins/bootstrap.zsh - -export EDITOR='nvim' -export SUDO_EDITOR='nvim' -#set terminal to emacs bindings so that Ctr+R works in tmux -bindkey -e -alias python='python3' - -# Completions -# autoload -U compinit -# compinit -i -skip_global_compinit=1 - - -# Keybindings -bindkey -s '^f' 'fzf^M' -# Generated for envman. Do not edit. -[ -s "$HOME/.config/envman/load.sh" ] && source "$HOME/.config/envman/load.sh" - -# Add prompt and zoxide -eval "$(zoxide init zsh)" - -#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! -export SDKMAN_DIR="$HOME/.sdkman" -[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" -eval "$(starship init zsh)" diff --git a/zsh/.config/zsh/zsh-aliases b/zsh/.config/zsh/zsh-aliases deleted file mode 100644 index 93c5d55..0000000 --- a/zsh/.config/zsh/zsh-aliases +++ /dev/null @@ -1,18 +0,0 @@ -alias update='sudo apt update && sudo apt upgrade -y' -alias ls='exa --icons' -alias la='exa -a --header' -alias lla='exa -la --git --header' -alias lt='exa --tree -L=2' -alias coz='$EDITOR ~/.zshrc' -alias py-act='source env/bin/activate' -alias tmux='tmux -f ~/.config/tmux/tmux.conf' -alias venv-create='python3 -m venv $HOME/.virtualenvs/${PWD##*/}' -alias workon='source $HOME/.virtualenvs/${PWD##*/}/bin/activate' -alias workoff='deactivate' -if [[ $(uname -r) == *"WSL"* ]]; then - alias clip='/mnt/c/Windows/SysWOW64/clip.exe' - alias win32yank='/mnt/c/Program\ Files/Neovim/bin/win32yank.exe' -fi -alias new-note='touch $(date "+%m-%d-%Y").md' -alias ybunlock='gpg-connect-agent updatestartuptty /bye >/dev/null' - diff --git a/zsh/.config/zsh/zsh-functions b/zsh/.config/zsh/zsh-functions deleted file mode 100644 index a65d792..0000000 --- a/zsh/.config/zsh/zsh-functions +++ /dev/null @@ -1,94 +0,0 @@ -# Copied from https://github.com/ChristianChiarulli/Machfiles/blob/master/zsh/.config/zsh/zsh-functions - -# Function to source files if they exist -function zsh_add_file() { - [ -f "$ZDOTDIR/$1" ] && source "$ZDOTDIR/$1" -} - -function zsh_add_plugin() { - PLUGIN_NAME=$(echo $1 | cut -d "/" -f 2) - if [ -d "$ZDOTDIR/plugins/$PLUGIN_NAME" ]; then - # For plugins - zsh_add_file "plugins/$PLUGIN_NAME/$PLUGIN_NAME.plugin.zsh" || \ - zsh_add_file "plugins/$PLUGIN_NAME/$PLUGIN_NAME.zsh" - else - git clone "https://github.com/$1.git" "$ZDOTDIR/plugins/$PLUGIN_NAME" - fi -} - - -function zsh_add_completion() { - PLUGIN_NAME=$(echo $1 | cut -d "/" -f 2) - if [ -d "$ZDOTDIR/plugins/$PLUGIN_NAME" ]; then - # For completions - completion_file_path=$(ls $ZDOTDIR/plugins/$PLUGIN_NAME/_*) - fpath+="$(dirname "${completion_file_path}")" - zsh_add_file "plugins/$PLUGIN_NAME/$PLUGIN_NAME.plugin.zsh" - else - git clone "https://github.com/$1.git" "$ZDOTDIR/plugins/$PLUGIN_NAME" - fpath+=$(ls $ZDOTDIR/plugins/$PLUGIN_NAME/_*) - [ -f $ZDOTDIR/.zccompdump ] && $ZDOTDIR/.zccompdump - fi - completion_file="$(basename "${completion_file_path}")" - if [ "$2" = true ] && compinit "${completion_file:1}" -} - -function timezsh() { - shell=${1-$SHELL} - for i in $(seq 1 10); do /usr/bin/time $shell -i -c exit; done -} - -function fwg { - switch="$1" - if [[ $switch == "enable" ]]; then - sudo ufw allow in on wg0 - sudo ufw allow out on wg0 - elif [[ $switch == "disable" ]]; then - sudo ufw deny in on wg0 - sudo ufw deny out on wg0 - fi -} - -function copy() { - command="${@}" - if [[ $(uname -r) == *"WSL"* ]]; then - eval $command | /mnt/c/Windows/SysWOW64/clip.exe - else - eval $command | xclip -sel c - fi -} - -function copycat() { - filename="$1" - [ ! -f $filename ] && echo "File not found" && return - copy cat $filename - # if [[ $(uname -r) == *"WSL"* ]]; then - # cat $filename | /mnt/c/Windows/SysWOW64/clip.exe - # else - # cat $filename | xclip -sel c - # fi -} - -#0->not activated, 1-> activated -python_env_state=0 -function venv-update() { - if command -v deactivate &> /dev/null - then - #Checks if an initial env is running - python_env_state=1 - fi - - if [ $python_env_state -eq 0 ] - then - if [ -f env/bin/activate ] - then - source env/bin/activate - else - echo "Not in virtual environment" - fi - elif [ $python_env_state -eq 1 ] - then - deactivate - python_env_state=0 - fi -} diff --git a/zsh/.zshenv b/zsh/.zshenv deleted file mode 100644 index 2b21eb1..0000000 --- a/zsh/.zshenv +++ /dev/null @@ -1,2 +0,0 @@ -export ZDOTDIR=$HOME/.config/zsh -. "$HOME/.cargo/env" -- 2.51.2