aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alacritty/.config/alacritty/alacritty.toml8
-rw-r--r--alacritty/.config/alacritty/alacritty.yml48
-rw-r--r--alacritty/.config/alacritty/alacritty.yml.1714857285291.bak199
-rw-r--r--alacritty/.config/alacritty/alacritty.yml.1714857297015.bak220
-rw-r--r--awesome/.config/awesome/picom.conf9
-rw-r--r--nvim/.config/nvim/lua/config/keymaps.lua10
-rwxr-xr-xscripts/.scripts/latex_template.sh90
-rw-r--r--zsh/.zshrc5
8 files changed, 551 insertions, 38 deletions
diff --git a/alacritty/.config/alacritty/alacritty.toml b/alacritty/.config/alacritty/alacritty.toml
index 1988d0a..c1e054e 100644
--- a/alacritty/.config/alacritty/alacritty.toml
+++ b/alacritty/.config/alacritty/alacritty.toml
@@ -26,19 +26,19 @@ foreground = "#B3B1AD"
size = 11.0
[font.bold]
-family = "Monaspace Radon"
+family = "Monaspace Xenon"
style = "Bold"
[font.bold_italic]
-family = "Monaspace Radon"
+family = "Monaspace Xenon"
style = "Bold Italic"
[font.italic]
-family = "Monaspace Radon"
+family = "Monaspace Xenon"
style = "Italic"
[font.normal]
-family = "Monaspace Radon"
+family = "Monaspace Xenon"
style = "Bold"
[[keyboard.bindings]]
diff --git a/alacritty/.config/alacritty/alacritty.yml b/alacritty/.config/alacritty/alacritty.yml
index 2324a60..42410b7 100644
--- a/alacritty/.config/alacritty/alacritty.yml
+++ b/alacritty/.config/alacritty/alacritty.yml
@@ -167,33 +167,33 @@ font:
#draw_bold_text_with_bright_colors: false
# Colors (ArcoLinux)
colors:
- # Default colors
+ name: Colorful Colors
+ author: ""
primary:
- background: '#0A0E14'
- foreground: '#B3B1AD'
-
- # Normal colors
+ background: "#000000"
+ foreground: "#ffffff"
+ cursor:
+ text: "#000000"
+ cursor: "#ffffff"
normal:
- black: '#01060E'
- red: '#EA6C73'
- green: '#91B362'
- yellow: '#F9AF4F'
- blue: '#53BDFA'
- magenta: '#FAE994'
- cyan: '#90E1C6'
- white: '#C7C7C7'
-
- # Bright colors
+ black: "#151515"
+ red: "#ff8eaf"
+ green: "#a6e25f"
+ yellow: "#f8e578"
+ blue: "#a6e2f0"
+ magenta: "#e85b92"
+ cyan: "#5f868f"
+ white: "#d5f1f2"
bright:
- black: '#686868'
- red: '#F07178'
- green: '#C2D94C'
- yellow: '#FFB454'
- blue: '#59C2FF'
- magenta: '#FFEE99'
- cyan: '#95E6CB'
- white: '#FFFFFF'
+ black: "#696969"
+ red: "#ed4c7a"
+ green: "#a6e179"
+ yellow: "#ffdf6b"
+ blue: "#79d2ff"
+ magenta: "#bb5d79"
+ cyan: "#87a8af"
+ white: "#e2f1f6"
key_bindings:
- { key: F11, action: ToggleFullscreen }
-theme: Ayu-Dark
+theme: Colorfulcolors
diff --git a/alacritty/.config/alacritty/alacritty.yml.1714857285291.bak b/alacritty/.config/alacritty/alacritty.yml.1714857285291.bak
new file mode 100644
index 0000000..2324a60
--- /dev/null
+++ b/alacritty/.config/alacritty/alacritty.yml.1714857285291.bak
@@ -0,0 +1,199 @@
+# 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
+window:
+ # Window dimensions (changes require restart)
+ #
+ # Number of lines/columns (not pixels) in the terminal. Both lines and columns
+ # must be non-zero for this to take effect. 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
+ # 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.
+ opacity: 0.8
+ # 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
+ # Decorations theme variant (Linux/BSD only)
+ #
+ # Override the variant of the GTK theme/Wayland client side decorations.
+ # Commonly supported values are `dark` and `light`. Set this to `None` to use
+ # the default theme variant.
+ #decorations_theme_variant: None
+
+scrolling:
+ # Maximum number of lines in the scrollback buffer.
+ # Specifying '0' will disable scrolling.
+ history: 50000
+ # Scrolling distance multiplier.
+ #multiplier: 3
+
+# Font configuration
+font:
+ # Normal (roman) font face
+ normal:
+ # Font family
+ #
+ # Default:
+ # - (macOS) Menlo
+ # - (Linux/BSD) monospace
+ # - (Windows) Consolas
+ family: Monaspace Xenon
+ # The `style` can be specified to pick a specific face.
+ style: Bold
+
+ # 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: Monaspace Xenon
+ # 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: Monaspace Xenon
+
+ # 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: Monaspace Xenon
+
+ # The `style` can be specified to pick a specific face.
+ style: Bold Italic
+
+ # Point size
+ size: 11.0
+ # Offset is the extra space around each character. `offset.y` can be thought
+ # of as modifying the line spacing, and `offset.x` as modifying the letter
+ # spacing.
+ #offset:
+ # x: 0
+ # y: 0
+ # Glyph offset determines the locations of the glyphs within their cells with
+ # the default being at the bottom. Increasing `x` moves the glyph to the
+ # right, increasing `y` moves the glyph upward.
+ #glyph_offset:
+ # x: 0
+ # y: 0
+ # Use built-in font for box drawing characters.
+ #
+ # If `true`, Alacritty will use a custom built-in font for box drawing
+ # characters (Unicode points 2500 - 259f).
+ #
+ #builtin_box_drawing: true
+
+# If `true`, bold text is drawn using the bright color variants.
+#draw_bold_text_with_bright_colors: false
+# Colors (ArcoLinux)
+colors:
+ # Default colors
+ primary:
+ background: '#0A0E14'
+ foreground: '#B3B1AD'
+
+ # Normal colors
+ normal:
+ black: '#01060E'
+ red: '#EA6C73'
+ green: '#91B362'
+ yellow: '#F9AF4F'
+ blue: '#53BDFA'
+ magenta: '#FAE994'
+ cyan: '#90E1C6'
+ white: '#C7C7C7'
+
+ # Bright colors
+ bright:
+ black: '#686868'
+ red: '#F07178'
+ green: '#C2D94C'
+ yellow: '#FFB454'
+ blue: '#59C2FF'
+ magenta: '#FFEE99'
+ cyan: '#95E6CB'
+ white: '#FFFFFF'
+key_bindings:
+ - { key: F11, action: ToggleFullscreen }
+
+theme: Ayu-Dark
diff --git a/alacritty/.config/alacritty/alacritty.yml.1714857297015.bak b/alacritty/.config/alacritty/alacritty.yml.1714857297015.bak
new file mode 100644
index 0000000..a29ca46
--- /dev/null
+++ b/alacritty/.config/alacritty/alacritty.yml.1714857297015.bak
@@ -0,0 +1,220 @@
+# 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
+window:
+ # Window dimensions (changes require restart)
+ #
+ # Number of lines/columns (not pixels) in the terminal. Both lines and columns
+ # must be non-zero for this to take effect. 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
+ # 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.
+ opacity: 0.8
+ # 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
+ # Decorations theme variant (Linux/BSD only)
+ #
+ # Override the variant of the GTK theme/Wayland client side decorations.
+ # Commonly supported values are `dark` and `light`. Set this to `None` to use
+ # the default theme variant.
+ #decorations_theme_variant: None
+
+scrolling:
+ # Maximum number of lines in the scrollback buffer.
+ # Specifying '0' will disable scrolling.
+ history: 50000
+ # Scrolling distance multiplier.
+ #multiplier: 3
+
+# Font configuration
+font:
+ # Normal (roman) font face
+ normal:
+ # Font family
+ #
+ # Default:
+ # - (macOS) Menlo
+ # - (Linux/BSD) monospace
+ # - (Windows) Consolas
+ family: Monaspace Xenon
+ # The `style` can be specified to pick a specific face.
+ style: Bold
+
+ # 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: Monaspace Xenon
+ # 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: Monaspace Xenon
+
+ # 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: Monaspace Xenon
+
+ # The `style` can be specified to pick a specific face.
+ style: Bold Italic
+
+ # Point size
+ size: 11.0
+ # Offset is the extra space around each character. `offset.y` can be thought
+ # of as modifying the line spacing, and `offset.x` as modifying the letter
+ # spacing.
+ #offset:
+ # x: 0
+ # y: 0
+ # Glyph offset determines the locations of the glyphs within their cells with
+ # the default being at the bottom. Increasing `x` moves the glyph to the
+ # right, increasing `y` moves the glyph upward.
+ #glyph_offset:
+ # x: 0
+ # y: 0
+ # Use built-in font for box drawing characters.
+ #
+ # If `true`, Alacritty will use a custom built-in font for box drawing
+ # characters (Unicode points 2500 - 259f).
+ #
+ #builtin_box_drawing: true
+
+# If `true`, bold text is drawn using the bright color variants.
+#draw_bold_text_with_bright_colors: false
+# Colors (ArcoLinux)
+colors:
+ # Default colors
+ primary:
+ background: '#2c2c2c'
+ foreground: '#d6d6d6'
+
+ dim_foreground: '#dbdbdb'
+ bright_foreground: '#d9d9d9'
+ dim_background: '#202020' # not sure
+ bright_background: '#3a3a3a' # not sure
+
+ # Cursor colors
+ cursor:
+ text: '#2c2c2c'
+ cursor: '#d9d9d9'
+
+ # Normal colors
+ normal:
+ black: '#1c1c1c'
+ red: '#bc5653'
+ green: '#909d63'
+ yellow: '#ebc17a'
+ blue: '#7eaac7'
+ magenta: '#aa6292'
+ cyan: '#86d3ce'
+ white: '#cacaca'
+
+ # Bright colors
+ bright:
+ black: '#636363'
+ red: '#bc5653'
+ green: '#909d63'
+ yellow: '#ebc17a'
+ blue: '#7eaac7'
+ magenta: '#aa6292'
+ cyan: '#86d3ce'
+ white: '#f7f7f7'
+
+ # Dim colors
+ dim:
+ black: '#232323'
+ red: '#74423f'
+ green: '#5e6547'
+ yellow: '#8b7653'
+ blue: '#556b79'
+ magenta: '#6e4962'
+ cyan: '#5c8482'
+ white: '#828282'
+key_bindings:
+ - { key: F11, action: ToggleFullscreen }
+
+theme: Afterglow
diff --git a/awesome/.config/awesome/picom.conf b/awesome/.config/awesome/picom.conf
index 8cbcd97..18ae177 100644
--- a/awesome/.config/awesome/picom.conf
+++ b/awesome/.config/awesome/picom.conf
@@ -81,7 +81,8 @@ shadow-exclude = [
"class_g = 'Cairo-clock'",
"class_g ?= 'Xfce4-notifyd'",
"class_g ?= 'Xfce4-power-manager'",
- "_GTK_FRAME_EXTENTS@:c",
+ # "_GTK_FRAME_EXTENTS@:c"
+ # "_NET_WM_WINDOW_TYPE"
];
# Add this one too for ...
@@ -193,7 +194,7 @@ blur-background-exclude = [
# "window_type = 'tooltip'";
# "window_type = 'dock'",
# "window_type = 'desktop'",
- "_GTK_FRAME_EXTENTS@:c"
+ "_GTK_FRAME_EXTENTS@:c"
];
@@ -204,7 +205,7 @@ blur-background = [
blur:
{
method = "dual_kawase";
- strength = 4;
+ strength = 5;
# for_window = ["class_g = 'alacritty'"];
};
@@ -241,8 +242,6 @@ blur-kern = "3x3box";
-
-
#################################
# General Settings #
#################################
diff --git a/nvim/.config/nvim/lua/config/keymaps.lua b/nvim/.config/nvim/lua/config/keymaps.lua
index f8dad17..7aaf197 100644
--- a/nvim/.config/nvim/lua/config/keymaps.lua
+++ b/nvim/.config/nvim/lua/config/keymaps.lua
@@ -55,23 +55,23 @@ vim.cmd([[
map("n", "<leader>i", "<Cmd>VimtexCompile<CR>", { desc = "Compile latex document", remap = true })
-- harpoon keymaps
-map("n", "<leader>mm", function()
+map("n", "<leader>m", function()
require("harpoon.ui").toggle_quick_menu()
end, { desc = "toggle harpoon menu", remap = true })
-map("n", "<leader>ma", function()
+map("n", "<leader>a", function()
require("harpoon.mark").add_file()
end, { desc = "Add file to harpoon", remap = true })
-map("n", "<leader>mq", function()
+map("n", "<leader>q", function()
require("harpoon.ui").nav_file(1)
end, { desc = "navigate to first harpoon mark", remap = true })
-map("n", "<leader>mw", function()
+map("n", "<leader>w", function()
require("harpoon.ui").nav_file(2)
end, { desc = "navigate to second harpoon mark", remap = true })
-map("n", "<leader>me", function()
+map("n", "<leader>e", function()
require("harpoon.ui").nav_file(3)
end, { desc = "navigate to third harpoon mark", remap = true })
diff --git a/scripts/.scripts/latex_template.sh b/scripts/.scripts/latex_template.sh
new file mode 100755
index 0000000..03054e3
--- /dev/null
+++ b/scripts/.scripts/latex_template.sh
@@ -0,0 +1,90 @@
+#!/bin/bash
+
+templates_dir="/run/media/omar/Storage/omar/Latex Templates"
+logo="/run/media/omar/Storage/omar/College/logo.png"
+json_file="/run/media/omar/Storage/omar/College/Courses Templates/Spring2024.json"
+
+# List of template options
+templates=("lab_report" "general_report")
+
+# Function to replace placeholders in a template file
+replace_placeholders() {
+ # Check if a template file is provided
+ if [ -z "$1" ]; then
+ echo "Usage: replace_placeholders <template_file>"
+ return 1
+ fi
+
+ # Check if the provided file exists
+ if [ ! -f "$1" ]; then
+ echo "File '$1' not found."
+ return 1
+ fi
+
+ # Read the template file content
+ template_content=$(<"$1")
+
+ # Extract course names from JSON and load them into an array
+ IFS=$'\n' courses=($(jq -r '.[] | .course_title' "$json_file"))
+
+ # Display course names and ask user to select
+ echo "Select the course:"
+ for i in "${!courses[@]}"; do
+ echo "$((i + 1)). ${courses[i]}"
+ done
+ read -p "Enter the number of the course you want to use: " course_choice
+
+ # Validate selection
+ if ! [[ "$course_choice" =~ ^[0-9]+$ ]] || ((course_choice < 1 || course_choice > ${#courses[@]})); then
+ echo "Invalid input. Please enter a number within the range."
+ return 1
+ fi
+
+ # Get the selected course JSON object
+ matched_json=$(jq -r --argjson idx $((course_choice - 1)) '.[$idx]' "$json_file")
+
+ # Decode the JSON and replace placeholders
+ course_title=$(echo "$matched_json" | jq -r '.course_title')
+ course_code=$(echo "$matched_json" | jq -r '.course_code')
+ instructor=$(echo "$matched_json" | jq -r '.instructor')
+ teaching_assistant=$(echo "$matched_json" | jq -r '.teaching_assistant')
+
+ # Replace each field in the template
+ template_content=$(echo "$template_content" | sed "s/<course_title>/$course_title/g")
+ template_content=$(echo "$template_content" | sed "s/<course_code>/$course_code/g")
+ template_content=$(echo "$template_content" | sed "s/<instructor>/$instructor/g")
+ template_content=$(echo "$template_content" | sed "s/<teaching_assistant>/$teaching_assistant/g")
+
+ cp "$logo" .
+ read -p "Enter name for your file: " file_name
+
+ # Write the modified content to a new file
+ echo "$template_content" >"./$file_name"
+ echo "Replacement completed. Modified file saved as '$file_name'."
+}
+
+# Display template options to the user
+echo "Choose a template:"
+for ((i = 0; i < ${#templates[@]}; i++)); do
+ echo "$((i + 1)). ${templates[i]}"
+done
+
+# Read user input for template selection
+read -p "Enter the number of the template you want to use: " choice
+
+if ! [[ "$choice" =~ ^[0-9]+$ ]]; then
+ echo "Invalid input. Please enter a number."
+ exit 1
+fi
+
+if ((choice < 1 || choice > ${#templates[@]})); then
+ echo "Invalid choice. Please enter a number within the range."
+ exit 1
+fi
+
+selected_template=${templates[choice - 1]}
+
+# Output the selected template
+echo "Selected Template: $selected_template"
+
+replace_placeholders "$templates_dir/$selected_template.latex"
diff --git a/zsh/.zshrc b/zsh/.zshrc
index fe062c3..a30b48b 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -5,6 +5,7 @@ export ZSH="/home/$USER/.oh-my-zsh"
export PATH="$PATH:/usr/bin/docker:/usr/local/arm-cross-compiler/install/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin:/home/omar/Android/Sdk"
export PATH="$PATH":"$HOME/.pub-cache/bin"
export PATH="$PATH:/opt/usr/bin/"
+export PATH="$PATH:$HOME/.scripts/"
# Starship prompt
@@ -107,6 +108,10 @@ function cl() {
cd "$@" && ls
}
+copyfile() {
+ cat "$@" | xclip -sel clipboard
+}
+
## interactivley cd ##
fcd() {
local dir