aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoromagdy <omar.professional8777@gmail.com>2025-08-12 15:15:10 +0300
committeromagdy <omar.professional8777@gmail.com>2025-08-12 15:15:10 +0300
commit2f8d18191b453902c73f312854ec06694475f750 (patch)
tree8b241355bc66bfcf6d27764b3f3ce65cb821c4c9
parentdde269d921f540488abe4c23a02cd5dff5e79d4a (diff)
downloaddotfiles-2f8d18191b453902c73f312854ec06694475f750.tar.xz
dotfiles-2f8d18191b453902c73f312854ec06694475f750.zip
term: Switched to weztermHEADmain
-rw-r--r--alacritty/.config/alacritty/alacritty.toml27
-rw-r--r--ghostty/.config/ghostty/config10
-rw-r--r--hypr/.config/hypr/hyprland.conf12
-rw-r--r--hypr/.config/hypr/hyprpaper.conf13
-rw-r--r--nvim/.config/nvim/lazy-lock.json1
-rw-r--r--nvim/.config/nvim/lua/plugins/fff.lua19
-rwxr-xr-xscripts/.scripts/config_files.sh1
-rw-r--r--wezterm/.config/wezterm/colors/Gruvbox-Dark.lua51
-rw-r--r--wezterm/.config/wezterm/wezterm.lua87
-rw-r--r--zsh/.zshrc48
10 files changed, 249 insertions, 20 deletions
diff --git a/alacritty/.config/alacritty/alacritty.toml b/alacritty/.config/alacritty/alacritty.toml
index 3c396c5..76902da 100644
--- a/alacritty/.config/alacritty/alacritty.toml
+++ b/alacritty/.config/alacritty/alacritty.toml
@@ -9,24 +9,41 @@ background = "#181d1c"
foreground = "#d4be98"
[font]
-size = 11
+size = 9
+
[font.bold]
-family = "MonaspiceRn Nerd Font Mono"
+family = "Comic Mono"
style = "Bold"
[font.bold_italic]
-family = "MonaspiceRn Nerd Font Mono"
+family = "Comic Mono"
style = "Bold Italic"
[font.italic]
-family = "MonaspiceRn Nerd Font Mono"
+family = "Comic Mono"
style = "Italic"
[font.normal]
-family = "MonaspiceRn Nerd Font Mono"
+family = "Comic Mono"
style = "Bold"
+# [font.bold]
+# family = "MonaspiceRn Nerd Font Mono"
+# style = "Bold"
+#
+# [font.bold_italic]
+# family = "MonaspiceRn Nerd Font Mono"
+# style = "Bold Italic"
+#
+# [font.italic]
+# family = "MonaspiceRn Nerd Font Mono"
+# style = "Italic"
+#
+# [font.normal]
+# family = "MonaspiceRn Nerd Font Mono"
+# style = "Bold"
+
[[keyboard.bindings]]
action = "ToggleFullscreen"
key = "F11"
diff --git a/ghostty/.config/ghostty/config b/ghostty/.config/ghostty/config
index ea4a907..83b62a7 100644
--- a/ghostty/.config/ghostty/config
+++ b/ghostty/.config/ghostty/config
@@ -6,13 +6,13 @@ font-size = 11
# font-family-italic = MonaspiceRn Nerd Font Mono
# font-family-bold-italic = MonaspiceRn Nerd Font Mono
-font-family = Monaspace Radon
-font-family-bold = Monaspace Radon
-font-family-italic = Monaspace Radon
-font-family-bold-italic = Monaspace Radon
+font-family = Comic Mono
+font-family-bold = Comic Mono
+font-family-italic = Comic Mono
+font-family-bold-italic = Comic Mono
font-style = bold
gtk-titlebar = false
-background-opacity = 0.85
+background-opacity = 0.98
confirm-close-surface = false
adjust-cell-height = 10%
diff --git a/hypr/.config/hypr/hyprland.conf b/hypr/.config/hypr/hyprland.conf
index ad17606..32f3e94 100644
--- a/hypr/.config/hypr/hyprland.conf
+++ b/hypr/.config/hypr/hyprland.conf
@@ -32,7 +32,7 @@ $mainMod = SUPER
$localBin = $HOME/.local/bin
$scriptsDir = $HOME/.config/hypr/scripts
$hyprDir = $HOME/.config/hypr
-$term = alacritty
+$term = wezterm
$menu = $scriptsDir/menu
$fullmenu = $scriptsDir/fullmenu
$volume = $scriptsDir/volume
@@ -41,7 +41,7 @@ $screenshot = $scriptsDir/screenshot
$lock = $scriptsDir/lockscreen
$colorpicker = $scriptsDir/colorpicker
$wofi_beats = $scriptsDir/wofi-beats
-$files = thunar
+$files = pcmanfm
$browser = brave
$editor = nvim
@@ -50,7 +50,7 @@ env = XCURSOR_SIZE,24
# Startup
exec-once = $scriptsDir/startup
-exec-once = swaybg -m fill -i $HOME/Pictures/wallpapers/0093.jpg
+# exec-once = swaybg -m fill -i $HOME/Pictures/wallpapers/0477.jpg
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
@@ -317,7 +317,7 @@ bind = $mainMod SHIFT, tab, workspace, m-1
bind = ALT, tab, workspace, m+1
bind = ALT SHIFT, tab, workspace, m-1
-bind = $mainMod, O, exec, $colorpicker
+bind = $mainMod, q, exec, $colorpicker
bind = $mainMod SHIFT, O, exec, $term --class hyprpicker --hold -e hyprpicker
bind = $mainMod CTRL, S, exec, $wofi_beats
@@ -326,8 +326,8 @@ bind = , Print, exec, $screenshot --now
bind = $mainMod, Print, exec, $screenshot --in5
bind = SHIFT, Print, exec, $screenshot --in10
bind = CTRL, Print, exec, $screenshot --win
-bind = $mainMod SHIFT, G, exec, flameshot gui
-bind = $mainMod SHIFT, S, exec, flameshot screen --clipboard
+bind = $mainMod SHIFT, S, exec, hyprshot -m region
+bind = $mainMod SHIFT, M, exec, hyprshot -m output
# Qwerty
# Switch workspaces with mainMod + [0-9]
diff --git a/hypr/.config/hypr/hyprpaper.conf b/hypr/.config/hypr/hyprpaper.conf
new file mode 100644
index 0000000..53e2a9b
--- /dev/null
+++ b/hypr/.config/hypr/hyprpaper.conf
@@ -0,0 +1,13 @@
+preload = ~/Pictures/wallpapers/0477.jpg
+preload = ~/Pictures/wallpapers/0476.jpg
+
+#set the default wallpaper(s) seen on initial workspace(s) --depending on the number of monitors used
+wallpaper = monitor1,~/Pictures/wallpapers/0477.jpg
+wallpaper = monitor2,~/Pictures/wallpapers/0477.jpg
+
+#enable splash text rendering over the wallpaper
+splash = true
+
+#fully disable ipc
+# ipc = off
+
diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json
index f79fc91..23efe3a 100644
--- a/nvim/.config/nvim/lazy-lock.json
+++ b/nvim/.config/nvim/lazy-lock.json
@@ -10,6 +10,7 @@
"conform.nvim": { "branch": "master", "commit": "973f3cb73887d510321653044791d7937c7ec0fa" },
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
+ "fff.nvim": { "branch": "main", "commit": "a614094de9180a599dd6858ee5ff3903de909581" },
"flash.nvim": { "branch": "main", "commit": "3c942666f115e2811e959eabbdd361a025db8b63" },
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
"fzf-lua": { "branch": "main", "commit": "f972ad787ee8d3646d30000a0652e9b168a90840" },
diff --git a/nvim/.config/nvim/lua/plugins/fff.lua b/nvim/.config/nvim/lua/plugins/fff.lua
new file mode 100644
index 0000000..e060463
--- /dev/null
+++ b/nvim/.config/nvim/lua/plugins/fff.lua
@@ -0,0 +1,19 @@
+return {
+ "dmtrKovalenko/fff.nvim",
+ build = "cargo build --release",
+ lazy = true,
+ -- or if you are using nixos
+ -- build = "nix run .#release",
+ opts = {
+ -- pass here all the options
+ },
+ keys = {
+ {
+ "ff", -- try it if you didn't it is a banger keybinding for a picker
+ function()
+ require("fff").find_files() -- or find_in_git_root() if you only want git files
+ end,
+ desc = "Open file picker",
+ },
+ },
+}
diff --git a/scripts/.scripts/config_files.sh b/scripts/.scripts/config_files.sh
index 05bed33..5704055 100755
--- a/scripts/.scripts/config_files.sh
+++ b/scripts/.scripts/config_files.sh
@@ -3,6 +3,7 @@
configs=(
"aliases:$HOME/dotfiles/aliases/.aliases/aliases"
"alacritty:$HOME/dotfiles/alacritty/.config/alacritty/alacritty.toml"
+ "wezterm:$HOME/dotfiles/wezterm/.config/wezterm/wezterm.lua"
"awesome:$HOME/dotfiles/awesome/.config/awesome/rc.lua"
"kitty:$HOME/dotfiles/kitty/.config/kitty/kitty.conf"
"hyprland:$HOME/dotfiles/hypr/.config/hypr/hyprland.conf"
diff --git a/wezterm/.config/wezterm/colors/Gruvbox-Dark.lua b/wezterm/.config/wezterm/colors/Gruvbox-Dark.lua
new file mode 100644
index 0000000..700d8b6
--- /dev/null
+++ b/wezterm/.config/wezterm/colors/Gruvbox-Dark.lua
@@ -0,0 +1,51 @@
+return {
+ -- Custom wezterm color scheme (minimal)
+ -- Save this as e.g. custom.lua and in your wezterm config:
+ -- local scheme = require("custom"); wezterm_config.color_schemes = { [scheme.name] = scheme }
+ -- then set wezterm_config.color_scheme = scheme.name
+ colors = {
+ -- primary
+ background = "#0d0e0f",
+ foreground = "#d4be98",
+
+ -- normal
+ ansi = {
+ "#665c54", -- black
+ "#ea6962", -- red
+ "#a9b665", -- green
+ "#e78a4e", -- yellow
+ "#7daea3", -- blue
+ "#d3869b", -- magenta
+ "#89b482", -- cyan
+ "#d4be98", -- white
+ },
+
+ -- bright
+ brights = {
+ "#928374", -- black
+ "#ea6962", -- red
+ "#a9b665", -- green
+ "#d8a657", -- yellow
+ "#7daea3", -- blue
+ "#d3869b", -- magenta
+ "#89b482", -- cyan
+ "#d4be98", -- white
+ },
+
+ -- indexed (optional extras)
+ indexed = { [16] = "#e78a4e", [17] = "#d4be98" },
+
+ -- cursors / selection
+ cursor_bg = "#d4be98",
+ cursor_fg = "#0d0e0f",
+ cursor_border = "#d4be98",
+
+ selection_bg = "#665c54",
+ selection_fg = "#d4be98",
+
+ -- minimal tab bar / UI entries (reasonable defaults)
+ scrollbar_thumb = "#0f0f10",
+ split = "#665c54",
+ visual_bell = "#0f0f10",
+ },
+}
diff --git a/wezterm/.config/wezterm/wezterm.lua b/wezterm/.config/wezterm/wezterm.lua
new file mode 100644
index 0000000..37ab991
--- /dev/null
+++ b/wezterm/.config/wezterm/wezterm.lua
@@ -0,0 +1,87 @@
+-- Pull in the wezterm API
+local wezterm = require("wezterm")
+
+-- This will hold the configuration.
+local config = wezterm.config_builder()
+
+config.color_schemes = config.color_schemes or {}
+
+config.colors = {
+ -- primary
+ background = "#0d0e0f",
+ foreground = "#d4be98",
+
+ -- normal
+ ansi = {
+ "#665c54", -- black
+ "#ea6962", -- red
+ "#a9b665", -- green
+ "#e78a4e", -- yellow
+ "#7daea3", -- blue
+ "#d3869b", -- magenta
+ "#89b482", -- cyan
+ "#d4be98", -- white
+ },
+
+ -- bright
+ brights = {
+ "#928374", -- black
+ "#ea6962", -- red
+ "#a9b665", -- green
+ "#d8a657", -- yellow
+ "#7daea3", -- blue
+ "#d3869b", -- magenta
+ "#89b482", -- cyan
+ "#d4be98", -- white
+ },
+
+ -- indexed (optional extras)
+ indexed = { [16] = "#e78a4e", [17] = "#d4be98" },
+
+ -- cursors / selection
+ cursor_bg = "#d4be98",
+ cursor_fg = "#0d0e0f",
+ cursor_border = "#d4be98",
+
+ selection_bg = "#665c54",
+ selection_fg = "#d4be98",
+
+ -- minimal tab bar / UI entries (reasonable defaults)
+ scrollbar_thumb = "#0f0f10",
+ split = "#665c54",
+ visual_bell = "#0f0f10",
+}
+
+-- This is where you actually apply your config choices.
+
+-- For example, changing the initial geometry for new windows:
+config.initial_cols = 120
+config.initial_rows = 28
+
+-- or, changing the font size and color scheme.
+config.font_size = 10
+config.color_scheme = "Gruvbox-dark"
+
+-- font
+config.font = wezterm.font("Comic Mono", { weight = "Bold" }) -- name as shown by wezterm ls-fonts
+config.font_size = 10
+
+-- opacity
+config.window_background_opacity = 0.95
+
+-- fps
+config.max_fps = 120
+
+-- hide default tab bar
+config.hide_tab_bar_if_only_one_tab = true
+
+-- remove padding
+config.window_padding = {
+ left = 0,
+ right = 0,
+ top = 0,
+ bottom = 0,
+}
+
+-- Finally, return the configuration to wezterm:
+return config
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 91d300e..97b31b4 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -1,4 +1,7 @@
+# Enable zsh profiler
+# zmodload zsh/zprof
# Add deno completions to search path
+
if [[ ":$FPATH:" != *":/home/omar/.zsh/completions:"* ]]; then export FPATH="/home/omar/.zsh/completions:$FPATH"; fi
### Added by Zinit's installer
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
@@ -33,6 +36,9 @@ fi
# Source/Load zinit
source "${ZINIT_HOME}/zinit.zsh"
+# vi-mode
+# set -o vi
+
# Starship prompt
eval "$(starship init zsh)"
@@ -130,10 +136,6 @@ zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'ls --color $realpath'
eval "$(fzf --zsh)"
# PATH
-# export C_INCLUDE_PATH="/usr/lib/gcc/arm-none-eabi/13.2.0/include/:$HOME/programming/thirdparties/tiva-c/:$HOME/programming/thirdparties/tiva-c/third_party/FreeRTOS/Source/include/:$HOME/programming/thirdparties/tiva-c/boards/ek-tm4c123gxl/freertos_demo/:"
-# export C_INCLUDE_PATH="/usr/lib/gcc/arm-none-eabi/13.2.0/include/:$HOME/programming/thirdparties/tiva-c/"
-export CPLUS_INCLUDE_PATH="$HOME/programming/cppDev/imgui/imgui/backends:$HOME/programming/cppDev/imgui-sfml:$HOME/programming/cppDev/imgui/imgui/:$HOME/programming/problem_solving/algo/"
-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"
export PATH="$PATH":"$HOME/.pub-cache/bin"
export PATH="$PATH:/opt/usr/bin/"
export PATH="$PATH:$HOME/.scripts/"
@@ -193,6 +195,42 @@ function t() {
}
+# Function to get the top 10 most memory intensive processes
+function topmem() {
+ # Get total memory in KB (used for converting to MB)
+ local scale=1024
+
+ ps --no-headers -eo comm,rss | \
+ awk -v scale="$scale" '
+ {
+ mem[$1] += $2
+ }
+ END {
+ for (proc in mem)
+ printf "%-20s %10.2f MB\n", proc, mem[proc]/scale
+ }
+ ' | sort -k2 -nr | head -n 10
+}
+
+# Funciton to get the most packages that take space on disk
+function toppacman() {
+ local n="${1:-10}"
+ pacman -Qi | awk -F': ' '
+ /^Name/ { name=$2 }
+ /^Installed Size/ {
+ s=$2; gsub(/^[ \t]+|[ \t]+$/,"",s)
+ split(s,a," ")
+ val=a[1]; unit=a[2]
+ if (unit=="KiB") mult=1/1024
+ else if (unit=="MiB") mult=1
+ else if (unit=="GiB") mult=1024
+ else mult=1
+ printf("%.2f MiB\t%s\n", val*mult, name)
+ }
+ ' | sort -nr | head -n "$n"
+}
+
+
# Interactive cd
function fcd() {
local dir
@@ -215,3 +253,5 @@ esac
# Bind ctrl-r but not up arrow
eval "$(atuin init zsh --disable-up-arrow)"
. "/home/omar/.deno/env"
+# Print profiling results
+# zprof