summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2025-03-07 00:22:08 +0200
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2025-03-07 00:22:08 +0200
commit6e968354e4f9cad9f94b592e61a09b17a8e06210 (patch)
treedf0f341fd9332b53a39aa72c4be17cdd0f7cd1c4
parent40577b3f22f677c45525e7439f689a482eedbf69 (diff)
Great new changes to X11, allacrity(just for testing), btop, nsxiv
(added key exec handler), nvim, tmux niceness, zathura configuration massive zsh improvements. Overall a solid update, install script is still dead tho. REGARDLESS: Changes to be committed: modified: X11/xinit new file: alacritty/alacritty.toml modified: btop/btop.conf new file: nsxiv/exec/key-handler modified: nvim/init.vim new file: sxiv modified: tmux/tmux.conf modified: zathura/zathurarc modified: zsh/aliases modified: zsh/env modified: zsh/zshrc
-rwxr-xr-xX11/xinit2
-rw-r--r--alacritty/alacritty.toml103
-rw-r--r--btop/btop.conf2
-rwxr-xr-xnsxiv/exec/key-handler52
-rw-r--r--nvim/init.vim2
l---------sxiv1
-rw-r--r--tmux/tmux.conf34
-rw-r--r--zathura/zathurarc60
-rw-r--r--zsh/aliases3
-rw-r--r--zsh/env12
-rw-r--r--zsh/zshrc40
11 files changed, 286 insertions, 25 deletions
diff --git a/X11/xinit b/X11/xinit
index 933460d..0c3d77f 100755
--- a/X11/xinit
+++ b/X11/xinit
@@ -61,7 +61,7 @@ pipewire & # audio
slstatus & # statusbar
-~/kekful_days/kekful_days.sh & # custom script
+~/dev/kekful_days/kekful_days.sh & # custom script
setxkbmap -option caps:escape & # set caps to esc
diff --git a/alacritty/alacritty.toml b/alacritty/alacritty.toml
new file mode 100644
index 0000000..c560387
--- /dev/null
+++ b/alacritty/alacritty.toml
@@ -0,0 +1,103 @@
+# Alacritty configuration file
+#
+# See https://alacritty.org/config/ for more detailed configuration options.
+
+# Font configuration
+[font]
+size = 12
+
+# Normal font
+[font.normal]
+family = "Inconsolata"
+style = "Regular"
+
+# Bold font
+[font.bold]
+family = "Inconsolata"
+style = "Bold"
+
+# Italic font
+[font.italic]
+family = "Inconsolata"
+style = "Italic"
+
+# Bold italic font
+[font.bold_italic]
+family = "Inconsolata"
+style = "Bold Italic"
+
+# Glyph offset (no change from default, but included for completeness)
+[font.glyph_offset]
+x = 0
+y = 0
+
+# Window configuration
+[window]
+# Startup opacity (transparency)
+opacity = 0.75
+
+# Window padding (borderpx = 0 means no padding)
+padding = { x = 0, y = 0 }
+
+# Decorations (no decorations by default, similar to borderless st)
+decorations = "none" # or "full", "transparent", "buttonless"
+
+# Shell configuration
+[terminal.shell]
+program = "/bin/zsh"
+
+# Colors configuration
+[colors]
+# Default colors
+[colors.primary]
+background = "#0a001f"
+foreground = "#d9d5e6"
+
+# Cursor colors
+[colors.cursor]
+text = "#d9d5e6"
+cursor = "#d9d5e6"
+
+# Normal colors
+[colors.normal]
+black = "#828ff9"
+red = "#6740ba"
+green = "#828ff9"
+yellow = "#ac96dc"
+blue = "#e94c80"
+magenta = "#ace6f0"
+cyan = "#6740ba"
+white = "#eebea4"
+
+# Bright colors
+[colors.bright]
+black = "#828ff9"
+red = "#6740ba"
+green = "#828ff9"
+yellow = "#ac96dc"
+blue = "#e94c80"
+magenta = "#ace6f0"
+cyan = "#6740ba"
+white = "#ace6f0"
+
+# Terminal bell
+[bell]
+animation = "Ease" # Visual bell animation
+duration = 50 # Visual bell duration in milliseconds
+color = "0xffffff" # Visual bell color
+# sound = "Bell" # Uncomment to enable sound bell (requires 'Bell' sound theme)
+# command = "..." # Uncomment to execute a command on bell
+
+
+# Terminal behavior
+[terminal]
+# Tab spaces (tabspaces = 4)
+# tab_stop_width = 4
+
+
+# Cursor style
+[cursor]
+# Cursor thickness (cursorshape = 6 is block cursor, thickness is relative to cell width)
+style = { shape = "Beam", blinking = "Never" } # Changed to Beam for line cursor
+thickness = 0.15 # Adjusted thickness for beam cursor, st's default is thin line
+blink_interval = 800
diff --git a/btop/btop.conf b/btop/btop.conf
index 9a38f28..30246af 100644
--- a/btop/btop.conf
+++ b/btop/btop.conf
@@ -50,7 +50,7 @@ graph_symbol_net = "default"
graph_symbol_proc = "default"
#* Manually set which boxes to show. Available values are "cpu mem net proc" and "gpu0" through "gpu5", separate values with whitespace.
-shown_boxes = "cpu mem net proc gpu0"
+shown_boxes = "net proc mem cpu"
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
update_ms = 100
diff --git a/nsxiv/exec/key-handler b/nsxiv/exec/key-handler
new file mode 100755
index 0000000..0875061
--- /dev/null
+++ b/nsxiv/exec/key-handler
@@ -0,0 +1,52 @@
+#!/bin/sh
+
+# you use these inside nsxiv with Ctrl+x and then the key for an action
+
+# w: set as wallpaper
+# c: copy File
+# m: move file
+# r: rotate 90 degrees
+# R: rotate -90 degrees
+# f: flip
+# y: copy file path to clipboard
+# Y: copy file path to clipboard with full path
+# d: delete File
+# g: open with gimp
+# k: open with krita
+# i: show file information
+
+dmenu_config=$(bash ~/.config/dmenu.conf)
+
+while read -r file
+do
+case "$1" in
+ "w") feh --bg-fill --no-fehbg "$file" & ;;
+ "c")
+ [ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | $dmenu_config -l 20 -i -p "Copy file(s) to where?" | sed "s|~|$HOME|g")"
+ [ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit
+ cp "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file copied to $destdir." &
+ ;;
+ "m")
+ [ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | $dmenu_config -l 20 -i -p "Move file(s) to where?" | sed "s|~|$HOME|g")"
+ [ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit
+ mv "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file moved to $destdir." &
+ ;;
+ "r")
+ magick "$file" -rotate 90 "$file" ;;
+ "R")
+ magick "$file" -rotate -90 "$file" ;;
+ "f")
+ magick "$file" -flop "$file" ;;
+ "y")
+ printf "%s" "$file" | tr -d '\n' | xclip -selection clipboard &&
+ notify-send "$file copied to clipboard" & ;;
+ "Y")
+ readlink -f "$file" | tr -d '\n' | xclip -selection clipboard &&
+ notify-send "$(readlink -f "$file") copied to clipboard" & ;;
+ "d")
+ [ "$(printf "No\\nYes" | $dmenu_config -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;;
+ "g") setsid -f gimp "$file" ;;
+ "k") setsid -f krita "$file" ;;
+ "i") notify-send "File information" "$(mediainfo "$file" | sed "s/[ ]\+:/:/g;s/: /: <b>/;s/$/<\/b>/" | grep "<b>")" ;;
+esac
+done
diff --git a/nvim/init.vim b/nvim/init.vim
index eb1144a..f1f799b 100644
--- a/nvim/init.vim
+++ b/nvim/init.vim
@@ -141,7 +141,7 @@ nnoremap <leader>fh <cmd>Telescope help_tags<cr>
" =============================================================================
let g:vimtex_view_method = 'zathura'
-let g:vimtex_compiler_method = 'latexmk'
+let g:vimtex_compiler_method = 'tectonic'
let g:vimtex_view_general_viewer = 'okular'
let g:vimtex_view_general_options = '--unique file:@pdf\#src:@line@tex'
let maplocalleader = ","
diff --git a/sxiv b/sxiv
new file mode 120000
index 0000000..4252964
--- /dev/null
+++ b/sxiv
@@ -0,0 +1 @@
+nsxiv \ No newline at end of file
diff --git a/tmux/tmux.conf b/tmux/tmux.conf
index 6e70fce..d37a57a 100644
--- a/tmux/tmux.conf
+++ b/tmux/tmux.conf
@@ -11,6 +11,26 @@ set -g message-style bg=red,fg=black
set -g mode-style bg=red,fg=black
set -g status-style bg=red,fg=black
+# color support
+set-option -s default-terminal "tmux-256color"
+set-option -sa terminal-overrides ",tmux-256color:RGB"
+set-option -sa terminal-overrides ",tmux-256color*:Tc"
+
+# escape time
+set -sg escape-time 10
+
+# history limit
+set -g history-limit 10000
+
+# automatic window renaming
+setw -g automatic-rename on
+
+# keybind to source the config file
+bind-key r source-file ~/.config/tmux/tmux.conf
+
+set -g status-right-length 20
+set -g status-right '%a %Y-%m-%d %H:%M'
+
# tpm plugin manager
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
@@ -22,9 +42,9 @@ run '~/.tmux/plugins/tpm/tpm'
set -g mouse on
-#unbind C-b
-#set -g prefix C-Space
-#bind C-Space send-prefix
+unbind C-b
+set -g prefix C-a
+bind C-a send-prefix
# Vim style pane selection
bind h select-pane -L
@@ -32,6 +52,14 @@ bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
+# pane border colors
+set -g pane-border-style 'fg=colour223'
+set -g pane-active-border-style 'fg=colour2'
+
+# Vim style window selection
+bind-key v split-window -h
+bind-key g split-window -v
+
## Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
diff --git a/zathura/zathurarc b/zathura/zathurarc
index c5edee3..3ff2bd0 100644
--- a/zathura/zathurarc
+++ b/zathura/zathurarc
@@ -13,3 +13,63 @@ set incremental-search true
# Hide the toolbar at startup
set guioptions none
+
+# Navigation
+map u scroll half-up
+map d scroll half-down
+
+# Zoom
+map K zoom in
+map J zoom out
+
+# Document Control
+map r reload
+map R rotate
+map p print
+map D toggle_page_mode
+
+# Font Setting
+set font 'Inconsolata Normal 14'
+#set font 'monospace normal 14'
+
+# LaTeX Synctex Support
+# Uncomment the line below if you use Zathura for LaTeX PDFs and want synctex support
+set synctex true
+
+# COLORS
+
+#set recolor
+set recolor-lightcolor \#0a001f
+set recolor-darkcolor \#ace6f0
+#set recolor-keephue
+set default-bg \#0a001f
+set default-fg \#ace6f0
+
+set statusbar-fg \#ace6f0
+set statusbar-bg \#0a001f
+set inputbar-fg \#ace6f0
+set inputbar-bg \#0a001f
+set notification-error-bg \#0a001f
+set notification-error-fg \#ace6f0
+set notification-warning-bg \#0a001f
+set notification-warning-fg \#ace6f0
+set notification-bg \#0a001f
+set notification-fg \#ace6f0
+set index-bg \#0a001f
+set index-fg \#ace6f0
+set index-active-bg \#0a001f
+set index-active-fg \#ace6f0
+set render-loading-bg \#0a001f
+set render-loading-fg \#ace6f0
+set completion-bg \#0a001f
+set completion-fg \#ace6f0
+set completion-group-bg \#0a001f
+set completion-group-fg \#ace6f0
+set completion-highlight-bg \#0a001f
+set completion-highlight-fg \#ace6f0
+set completion-bg \#0a001f
+set completion-fg \#ace6f0
+
+#set highlight-color \#ace6f0
+
+set recolor-reverse-video true # true = show images normally, false = invert colors with color hue
diff --git a/zsh/aliases b/zsh/aliases
index a35005d..3fda239 100644
--- a/zsh/aliases
+++ b/zsh/aliases
@@ -61,12 +61,13 @@ alias vis='python $scriptdir/vis.py'
# aesthetic
alias filmelematrix='cmatrix -C red -a'
-alias colorfetch='neofetch --block_range 0 15'
+#alias colorfetch='neofetch --block_range 0 15'
alias change-bg='feh --bg-fill --no-fehbg'
alias clock='tty-clock -Dc -C 4'
alias sens='watch -n 0.1 sensors'
alias htopr='htop -C -U'
alias sxiv='sxiv -bpqra'
+alias nsxiv='sxiv -bpqra'
# tools
alias zathura='zathura 2>/dev/null'
diff --git a/zsh/env b/zsh/env
index 5e75cf6..a76825f 100644
--- a/zsh/env
+++ b/zsh/env
@@ -8,10 +8,12 @@ export EDITOR="nvim"
export VISUAL="nvim"
export COLORTERM="truecolor"
export BROWSER="brave"
+export TERMBROWSER="brave"
export CHROME_EXECUTABLE="chromium"
-export TERM="st-256color"
-export TERMINAL="st-256color"
-export TERMINAL_PROG="st-256color"
+export TERM="st"
+export TERMINAL="st"
+export TERMINAL_PROG="st"
+export READER="zathura"
export BAT_THEME="base16"
@@ -76,7 +78,7 @@ export QT_STYLE_OVERRIDE=kvantum
# default aim is 1024/48000 21.33 ms and my system defaults to aim to 4/48000 0.08 ms
### cuda & ML ###
-export PATH=$PATH:/usr/local/cuda-11.7/bin
-export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/local/cuda-11.7/lib64:/usr/lib/qt6/lib
+export PATH=$PATH:/usr/local/cuda-12.4/bin
+export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/local/cuda-12.4/bin:/usr/lib/qt6/lib
TORCH_CUDA_ARCH_LIST="8.6"
diff --git a/zsh/zshrc b/zsh/zshrc
index e3c4aad..b58499c 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -1,44 +1,61 @@
+# Ensure this zshrc is only sourced in interactive shells
+[[ $- != *i* ]] && return
+
# Add deno completions to search path
if [[ ":$FPATH:" != *":/home/alphara/.zsh/completions:"* ]]; then export FPATH="/home/alphara/.zsh/completions:$FPATH"; fi
+
+# Completion settings
zstyle ':completion:*' menu select
zstyle :compinstall filename '~/.zshrc'
+zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' # More forgiving completion matching
autoload -Uz compinit
zmodload zsh/complist
-
compinit
_comp_options+=(globdots)
+# History settings
HISTFILE=~/.histfile
HISTSIZE=1000000
SAVEHIST=1000000
+setopt appendhistory hist_ignore_all_dups extendedglob autocd
+unsetopt beep # Disable beep
-setopt appendhistory hist_ignore_dups extendedglob autocd
-
-unsetopt beep
-
-bindkey -v
+# --- Keybindings ---
+bindkey -v # Enable vi keybindings
+# Vi-mode navigation in menu completion
bindkey -M menuselect 'h' vi-backward-char
bindkey -M menuselect 'k' vi-up-line-or-history
bindkey -M menuselect 'l' vi-forward-char
bindkey -M menuselect 'j' vi-down-line-or-history
+bindkey -v '^?' backward-delete-char # Fix backspace in vi mode
+bindkey -s '^z' 'fg\n' # Ctrl+Z to bring background job to foreground
+bindkey -M vicmd 'L' edit-command-line # 'L' in vi command mode to edit command line
+
+# --- Aliases and Environment Variables ---
source $HOME/.config/zsh/aliases
source $HOME/.config/zsh/env
+# --- Prompt ---
autoload -Uz promptinit
PROMPT_EOL_MARK=""
promptinit
-
PROMPT='%B%F{3}%n@%m %~>%b%f '
+# --- Plugins ---
+# History substring search with / in normal mode, like in Vim
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
-############################################
+# Auto-Completion + Syntax highlighting (comment if not needed)
+source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
+source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=blue' # Highlight unknown tokens in blue (red in my colorscheme)
+ZSH_HIGHLIGHT_STYLES[arg0]='fg=green,bold' # Highlight the first argument in bold green (blue in my colorscheme)
+############################################
# vi mode
-
function zle-keymap-select () {
case $KEYMAP in
vicmd) echo -ne '\e[1 q';; # beam
@@ -46,18 +63,15 @@ function zle-keymap-select () {
esac
}
zle -N zle-keymap-select
-
############################################
stty tabs
+# --- Version Managers and Tools ---
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
-# slow af
-#eval "$(gh copilot alias -- zsh)"
-
eval "$(zoxide init zsh)"
. "/home/alphara/.deno/env"