mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
fix: bash,new env
This commit is contained in:
1 parent
90e5ee3585
commit
4edb8d9e16
5 files changed
+47
-44
No files matched your search
+9
-13
@@ -15,21 +15,14 @@
|
|||||||
initContent = builtins.readFile ./dots/zsh/.zshrc;
|
initContent = builtins.readFile ./dots/zsh/.zshrc;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.alacritty = {
|
programs.ghostty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
window = {
|
font-family = "JetBrainsMono Nerd Font";
|
||||||
padding = { x = 10; y = 10; };
|
font-size = 11;
|
||||||
opacity = 0.8;
|
background-opacity = 0.8;
|
||||||
blur = true;
|
window-padding-x = 10;
|
||||||
};
|
window-padding-y = 10;
|
||||||
font = {
|
|
||||||
normal = { family = "JetBrainsMono Nerd Font"; style = "Regular"; };
|
|
||||||
bold = { family = "JetBrainsMono Nerd Font"; style = "Bold"; };
|
|
||||||
italic = { family = "JetBrainsMono Nerd Font"; style = "Italic"; };
|
|
||||||
size = 11.0;
|
|
||||||
};
|
|
||||||
terminal.shell = "zsh";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -52,4 +45,7 @@
|
|||||||
programs.zoxide.enable = true;
|
programs.zoxide.enable = true;
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
|
services.mako.enable = false;
|
||||||
|
services.kdeconnect.enable = true;
|
||||||
}
|
}
|
||||||
+34
-21
@@ -1,25 +1,28 @@
|
|||||||
# elarsın muhtesem configi 1.04.2026
|
# elarsın muhtesem configi
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
eval "$(zoxide init zsh)"
|
eval "$(zoxide init zsh)"
|
||||||
|
|
||||||
|
# FZF
|
||||||
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
|
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
|
||||||
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
|
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
|
||||||
|
|
||||||
# eza alias
|
# eza
|
||||||
alias ls='eza --icons --group-directories-first'
|
alias ls='eza --icons --group-directories-first'
|
||||||
alias ll='eza -lah --icons --group-directories-first'
|
alias ll='eza -lah --icons --group-directories-first'
|
||||||
alias la='eza -a --icons --group-directories-first'
|
alias la='eza -a --icons --group-directories-first'
|
||||||
alias lt='eza --tree --level=2 --icons'
|
alias lt='eza --tree --level=2 --icons'
|
||||||
|
|
||||||
|
# zoxide (cd replacement)
|
||||||
alias cd='z'
|
alias cd='z'
|
||||||
|
|
||||||
# allias extra
|
# utils
|
||||||
alias cat='bat'
|
alias cat='bat'
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias df='df -h'
|
alias df='df -h'
|
||||||
alias du='du -h'
|
alias du='du -h'
|
||||||
alias free='free -h'
|
alias free='free -h'
|
||||||
|
|
||||||
# safety first
|
# safety
|
||||||
alias cp='cp -i'
|
alias cp='cp -i'
|
||||||
alias mv='mv -i'
|
alias mv='mv -i'
|
||||||
alias rm='trash-put'
|
alias rm='trash-put'
|
||||||
@@ -37,20 +40,21 @@ alias ....='cd ../../..'
|
|||||||
alias ~='cd ~'
|
alias ~='cd ~'
|
||||||
alias -- -='cd -'
|
alias -- -='cd -'
|
||||||
|
|
||||||
|
# extract helper
|
||||||
extract() {
|
extract() {
|
||||||
if [ -f $1 ] ; then
|
if [ -f "$1" ]; then
|
||||||
case $1 in
|
case "$1" in
|
||||||
*.tar.bz2) tar xjf $1 ;;
|
*.tar.bz2) tar xjf "$1" ;;
|
||||||
*.tar.gz) tar xzf $1 ;;
|
*.tar.gz) tar xzf "$1" ;;
|
||||||
*.bz2) bunzip2 $1 ;;
|
*.bz2) bunzip2 "$1" ;;
|
||||||
*.rar) unrar e $1 ;;
|
*.rar) unrar e "$1" ;;
|
||||||
*.gz) gunzip $1 ;;
|
*.gz) gunzip "$1" ;;
|
||||||
*.tar) tar xf $1 ;;
|
*.tar) tar xf "$1" ;;
|
||||||
*.tbz2) tar xjf $1 ;;
|
*.tbz2) tar xjf "$1" ;;
|
||||||
*.tgz) tar xzf $1 ;;
|
*.tgz) tar xzf "$1" ;;
|
||||||
*.zip) unzip $1 ;;
|
*.zip) unzip "$1" ;;
|
||||||
*.Z) uncompress $1 ;;
|
*.Z) uncompress "$1" ;;
|
||||||
*.7z) 7z x $1 ;;
|
*.7z) 7z x "$1" ;;
|
||||||
*) echo "'$1' can't be extracted" ;;
|
*) echo "'$1' can't be extracted" ;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
@@ -65,20 +69,29 @@ alias gc='git commit -m'
|
|||||||
alias gp='git push'
|
alias gp='git push'
|
||||||
alias gl='git log --oneline --graph --decorate'
|
alias gl='git log --oneline --graph --decorate'
|
||||||
|
|
||||||
# history settings ...
|
# nh shortcuts
|
||||||
|
alias rebuild='git -C ~/copland add -A && git -C ~/copland commit -m "update" && nh os switch'
|
||||||
|
alias rebuild-dry='nh os switch --dry'
|
||||||
|
|
||||||
|
# history
|
||||||
HISTSIZE=10000
|
HISTSIZE=10000
|
||||||
SAVEHIST=10000
|
SAVEHIST=10000
|
||||||
HISTFILE=~/.zsh_history
|
HISTFILE=~/.zsh_history
|
||||||
setopt HIST_IGNORE_DUPS
|
setopt HIST_IGNORE_DUPS
|
||||||
|
setopt HIST_IGNORE_SPACE
|
||||||
setopt SHARE_HISTORY
|
setopt SHARE_HISTORY
|
||||||
|
|
||||||
# completion ...
|
# completion
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
compinit
|
compinit
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
|
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
||||||
setopt AUTO_CD
|
setopt AUTO_CD
|
||||||
|
|
||||||
# mesa settings
|
# mesa (ghostty launcher fix + shader cache)
|
||||||
export MESA_SHADER_CACHE_MAX_SIZE=2G
|
|
||||||
export MESA_GL_VERSION_OVERRIDE=4.6
|
export MESA_GL_VERSION_OVERRIDE=4.6
|
||||||
export MESA_GLSL_VERSION_OVERRIDE=460
|
export MESA_GLSL_VERSION_OVERRIDE=460
|
||||||
|
export MESA_SHADER_CACHE_MAX_SIZE=2G
|
||||||
|
export MESA_SHADER_CACHE_DIR=/tmp/mesa_shader_cache
|
||||||
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
|
|
||||||
@@ -11,7 +11,8 @@
|
|||||||
"GDK_BACKEND,wayland,x11"
|
"GDK_BACKEND,wayland,x11"
|
||||||
"QT_QPA_PLATFORM,wayland;xcb"
|
"QT_QPA_PLATFORM,wayland;xcb"
|
||||||
"ELECTRON_OZONE_PLATFORM_HINT,auto"
|
"ELECTRON_OZONE_PLATFORM_HINT,auto"
|
||||||
"TERMINAL,alacritty"
|
"TERMINAL,ghostty"
|
||||||
|
"GDK_DISABLE,gles-api,vulkan"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -28,7 +28,7 @@ in {
|
|||||||
"$mainMod SHIFT, C, exec, ${ipc} plugin:music panel" # music recognition
|
"$mainMod SHIFT, C, exec, ${ipc} plugin:music panel" # music recognition
|
||||||
|
|
||||||
# ── App Launchers ────────────────────────────────────────────────────
|
# ── App Launchers ────────────────────────────────────────────────────
|
||||||
"$mainMod, Return, exec, kitty"
|
"$mainMod, Return, exec, ghostty"
|
||||||
"$mainMod, W, exec, zen"
|
"$mainMod, W, exec, zen"
|
||||||
"$mainMod, E, exec, dolphin"
|
"$mainMod, E, exec, dolphin"
|
||||||
"$mainMod, Z, exec, zed"
|
"$mainMod, Z, exec, zed"
|
||||||
|
|||||||
@@ -14,15 +14,8 @@
|
|||||||
"size 45% 45%, match:class ^(pavucontrol)$"
|
"size 45% 45%, match:class ^(pavucontrol)$"
|
||||||
"float on, match:title ^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$"
|
"float on, match:title ^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$"
|
||||||
"pin on, match:title ^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$"
|
"pin on, match:title ^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$"
|
||||||
"keepaspectratio on, match:title ^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$"
|
"keep_aspect_ratio on, match:title ^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$"
|
||||||
"immediate on, match:class ^(steam_app).*"
|
"immediate on, match:class ^(steam_app).*"
|
||||||
];
|
];
|
||||||
|
|
||||||
layerrule = [
|
|
||||||
"noanim, noctalia-shell:regionSelector"
|
|
||||||
"blur, noctalia-background-.*"
|
|
||||||
"ignorealpha 0.5, noctalia-background-.*"
|
|
||||||
"blurpopups, noctalia-background-.*"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user