added niri config with waybar, rip, nvim update, brightness sh

This commit is contained in:
liph22
2026-01-12 22:26:10 +01:00
parent d7b808ce59
commit c4df37dacb
38 changed files with 1801 additions and 414 deletions

View File

@@ -68,19 +68,19 @@ alias lgit='lazygit'
# proton vpn
alias vpnn='sudo protonvpn c'
alias vpnr='sudo protonvpn reconnect' # reconnect after sleep
alias vpn='sudo protonvpn c -f' # connect to fastest server
alias vpnd='sudo protonvpn d' # diconnect current session
alias vpnp='sudo protonvpn c --p2p' # connect to fastest p2p server
alias vpns='protonvpn status' # check status
alias vpnr='sudo protonvpn reconnect' # reconnect after sleep
alias vpn='sudo protonvpn c -f' # connect to fastest server
alias vpnd='sudo protonvpn d' # diconnect current session
alias vpnp='sudo protonvpn c --p2p' # connect to fastest p2p server
alias vpns='protonvpn status' # check status
# NetworkManager
alias nmwi='nmcli device wifi list' # show you all possible wifi networks
alias nmst='nmcli device status' # shows you the current connection
alias nmco='nmcli device wifi connect' # add '$SSID' and '$PASSWORD'
alias nmsh='nmcli con show' # shows all valid connnections
alias nmup='nmcli con up' # add the name of the connection in ''
alias nmdo='nmcli con down' # add the nome of the connection in ''
alias nmwi='nmcli device wifi list' # show you all possible wifi networks
alias nmst='nmcli device status' # shows you the current connection
alias nmco='nmcli device wifi connect' # add '$SSID' and '$PASSWORD'
alias nmsh='nmcli con show' # shows all valid connnections
alias nmup='nmcli con up' # add the name of the connection in ''
alias nmdo='nmcli con down' # add the nome of the connection in ''
# open with password
alias tshift='sudo -E timeshift-launcher'
@@ -99,13 +99,15 @@ alias lsu='sudo umount /mount/'
# streamrip
alias ripp='rip search tidal album'
alias rip='pyenv exec rip'
alias ripc='nvim ~/.config/streamrip/config.toml'
# paru
alias ys='$AUR_HELPER -S' # install package
alias yr='$AUR_HELPER -Rn' # remove package
alias yy='$AUR_HELPER -Ss' # paru search for package
alias ys='$AUR_HELPER -S' # install packoz
alias yr='$AUR_HELPER -Rn' # remove package
alias yy='$AUR_HELPER -Ss' # paru search for package
alias yay='$AUR_HELPER'
alias yi='$AUR_HELPER -Si' # aur info
alias yi='$AUR_HELPER -Si' # aur info
alias which-aur="echo 'Currently using: $AUR_HELPER'"
# trash-cli
@@ -113,30 +115,30 @@ alias te='trash-empty'
alias tr='trash-restore'
# pyenv
alias pyl='pyenv local' # set this for folder in spec python version
alias pyg='pyenv global' # changes the global python version
alias pyve='pyenv virtualenvs' # shows all possible vitualenvironments
alias pyl='pyenv local' # set this for folder in spec python version
alias pyg='pyenv global' # changes the global python version
alias pyve='pyenv virtualenvs' # shows all possible vitualenvironments
alias pyd='pyenv virtualenv-delete'
alias pyn='pyenv virtualenv' # makes a new env $VSERION $NAME
alias pyn='pyenv virtualenv' # makes a new env $VSERION $NAME
alias pyv='pyenv versions'
alias pyil='pyenv install -l'
alias pyi='pyenv install'
# aria2 and yt-dlp
alias aryt="yt-dlp --external-downloader aria2c --external-downloader-args '-x 8 -j2'" # add URL in ''
alias aria='aria2c -x 8' # add URL in '' for 8 segmented download
alias yd='yt-dlp' # copy link from videodownload helper and add the URL in ''
alias aryt="yt-dlp --external-downloader aria2c --external-downloader-args '-x 8 -j2'" # add URL in ''
alias aria='aria2c -x 8' # add URL in '' for 8 segmented download
alias yd='yt-dlp' # copy link from videodownload helper and add the URL in ''
alias photodetect='gphoto2 --auto-detect'
alias photoget='gphoto2 --get-all-files'
# borg backup
alias boinit='borg init --encryption repokey' # add folder like /folder/ initiates the backupfunction
alias bolist='borg list' # /backup/ creates a list of al the backups which are contained in this folder
alias boinit='borg init --encryption repokey' # add folder like /folder/ initiates the backupfunction
alias bolist='borg list' # /backup/ creates a list of al the backups which are contained in this folder
alias boc='borg create --stats --progress --compression lz4' # /backup::backup1 dotfiles creates the backup. The ::backup1 will be name of the backup
# create placeholder sudo borg create --stats --compression lz4 ::{user}-{now} file or folder
alias bomo='borg mount /home/liph/backup /tmp/borg' # which repo to mount and where to mount it. make sure the folder already exists
alias boumo='borg umount /tmp/borg' # unmount the mount folder
alias bomo='borg mount /home/liph/backup /tmp/borg' # which repo to mount and where to mount it. make sure the folder already exists
alias boumo='borg umount /tmp/borg' # unmount the mount folder
# systemctl
alias sysen='sudo systemctl enable'
@@ -165,13 +167,13 @@ alias pocupf='pocp && pocf'
alias pocdupd='pocst && pocd && pocp && poc'
# disk space
alias dfh='df -h' # shows a list of all mounted drives
alias duh='du -sh' #calculates folder space
alias duf='duf' # analyzes diskspace
alias duaa='dua i' # opens dua in interactive mode
alias dfh='df -h' # shows a list of all mounted drives
alias duh='du -sh' #calculates folder space
alias duf='duf' # analyzes diskspace
alias duaa='dua i' # opens dua in interactive mode
alias rns='sudo pacman -Rns $(pacman -Qdtq)' # remove orphaned packages
alias rsc='sudo pacman -Sc' # remove cached packeged
alias rmc='rm -rf ~/.cache/*' # clear user cache
alias rsc='sudo pacman -Sc' # remove cached packeged
alias rmc='rm -rf ~/.cache/*' # clear user cache
# ip addr
alias ipa='sudo ip addr add '
@@ -179,8 +181,7 @@ alias ipl='sudo ip link set '
alias ipf='sudo ip addr flush '
# wireguard vpn
alias wgu='sudo wg-quick up' # start the connection you like to establish (f.E open)
alias wgd='sudo wg-quick down' # end the connection you like to end (f.E open)
alias wgc='sudo wg showconf' # show the config for a connection (f.E open)
alias wgs='sudo wg show' # show informations about the connection
alias wgu='sudo wg-quick up' # start the connection you like to establish (f.E open)
alias wgd='sudo wg-quick down' # end the connection you like to end (f.E open)
alias wgc='sudo wg showconf' # show the config for a connection (f.E open)
alias wgs='sudo wg show' # show informations about the connection

View File

@@ -39,3 +39,6 @@ export MOZ_ENABLE_WAYLAND=1
# Bitwarde
# export BW_SESSION=$(bw unlock --raw)
# you-should-use settings (optional)
# export YSU_MESSAGE_POSITION="after" # Show reminder after command output
# export YSU_HARDCORE=0 # Prevent execution if alias exists (probably too aggressive)

View File

@@ -6,6 +6,12 @@ zinit light zsh-users/zsh-syntax-highlighting
zinit light zsh-users/zsh-completions
zinit light zsh-users/zsh-autosuggestions
zinit light Aloxaf/fzf-tab
zinit light hlissner/zsh-autopair
zinit light ajeetdsouza/zoxide
zinit ice lucid wait as"completion"
zinit snippet https://github.com/eza-community/eza/blob/main/completions/zsh/_eza
zinit light MichaelAquilina/zsh-you-should-use
zinit light wfxr/forgit
# Add in snippets from "OhMyZsh“
zinit snippet OMZP::git
@@ -15,3 +21,5 @@ zinit snippet OMZP::aws
zinit snippet OMZP::kubectl
zinit snippet OMZP::kubectx
zinit snippet OMZP::command-not-found
zinit light jeffreytse/zsh-vi-mode

View File

@@ -9,6 +9,12 @@ if [ ! -d "$ZINIT_HOME" ]; then
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
fi
ZVM_INIT_MODE=sourcing
# Fix zsh-vi-mode conflicts with fzf
function zvm_after_init() {
source <(fzf --zsh)
}
# Source zsh, alias
source "${ZINIT_HOME}/zinit.zsh"
source ~/.aliases.zsh
@@ -17,9 +23,8 @@ source ~/.export.zsh
# https://github.com/jungunn/fzf-git.sh
source ~/scripts/fzf-git.sh
# you should unse
source /usr/share/zsh/plugins/zsh-you-should-use/you-should-use.plugin.zsh
# source /usr/share/zsh/plugins/zsh-you-should-use/you-should-use.plugin.zsh
# Set up fzf key bindings and fuzzy completion
source <(fzf --zsh)
## hydroxide
#source ~/scripts/hydroxide.sh
@@ -51,9 +56,9 @@ eval "$(oh-my-posh init zsh --config $HOME/.config/ohmyposh/zen.toml)"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
# Bindkey
bindkey -e
bindkey '^p' history-search-backward
bindkey '^n' history-search-forward
# bindkey -e
# bindkey '^p' history-search-backward
# bindkey '^n' history-search-forward
# History
HISTSIZE=5000
@@ -80,9 +85,9 @@ eval "$(zoxide init --cmd cd zsh)"
eval "$(thefuck --alias)"
eval "$(navi widget zsh)"
# pyenv https://github.com/pyenv/pyenv-virtualenv
eval "$(pyenv init --path)"
# eval "$(pyenv init --path)"
eval "$(pyenv init -)"
# eval "$(pyenv virtualenv-init -)"
eval "$(pyenv virtualenv-init -)"
# starship
# eval "$(starship init zsh)"
@@ -118,3 +123,8 @@ zinit light-mode for \
### End of Zinit's installer chunk
# . "$HOME/.local/bin/env"
# In .zshrc, after zinit loads
function zvm_after_init() {
# Re-bind ctrl+space for autosuggestions if needed
bindkey '^@' autosuggest-accept
}