refactor: kitty replaces st
This commit is contained in:
@@ -6,8 +6,7 @@ unsetopt beep
|
|||||||
bindkey -v
|
bindkey -v
|
||||||
|
|
||||||
# End of lines configured by zsh-newuser-install
|
# End of lines configured by zsh-newuser-install
|
||||||
# The following lines were added by compinstall
|
# The following lines were added by compinstall zstyle :compinstall filename '/home/dqnid/.zshrc'
|
||||||
zstyle :compinstall filename '/home/dqnid/.zshrc'
|
|
||||||
|
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
compinit
|
compinit
|
||||||
@@ -21,18 +20,49 @@ export TERMINAL=/usr/local/bin/st
|
|||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
alias r=ranger
|
alias r=ranger
|
||||||
alias v=nvim
|
|
||||||
alias sv="sudo nvim"
|
alias sv="sudo nvim"
|
||||||
alias n="nnn -e"
|
|
||||||
alias gs="git status --short"
|
alias gs="git status --short"
|
||||||
alias gl="git log --graph --oneline --all"
|
alias gl="git log --graph --oneline --all"
|
||||||
alias nvm_init='[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"'
|
alias nvm_init='[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"'
|
||||||
alias ls=lsd
|
alias ls=lsd
|
||||||
alias zj=zellij
|
alias zj=zellij
|
||||||
|
alias hx=helix
|
||||||
|
|
||||||
|
v() {
|
||||||
|
kitten @ set-spacing margin=4
|
||||||
|
nvim $@
|
||||||
|
kitten @ set-spacing margin=20
|
||||||
|
}
|
||||||
|
|
||||||
|
# nnn
|
||||||
|
export NNN_OPTS="de" # d for details, e for pipe params, H to auto-display hidden files
|
||||||
|
export LC_COLLATE="C" # hidden files on top
|
||||||
|
export NNN_FIFO="/tmp/nnn.fifo" # temporary buffer for the previews
|
||||||
|
export NNN_FCOLORS="AAAAE631BBBBCCCCDDDD9999"
|
||||||
|
#AAAAE6
|
||||||
|
#31BBBB
|
||||||
|
#CCCCDD
|
||||||
|
#DD9999
|
||||||
|
export NNN_PLUG='p:preview-tui'
|
||||||
|
export SPLIT='v'
|
||||||
|
n () # to cd on quit
|
||||||
|
{
|
||||||
|
if [ -n $NNNLVL ] && [ "${NNNLVL:-0}" -ge 1 ]; then
|
||||||
|
echo "nnn is already running"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
export NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd"
|
||||||
|
nnn "$@"
|
||||||
|
if [ -f "$NNN_TMPFILE" ]; then
|
||||||
|
. "$NNN_TMPFILE"
|
||||||
|
rm -f "$NNN_TMPFILE" > /dev/null
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
eval "$(zoxide init zsh)"
|
eval "$(zoxide init zsh)"
|
||||||
|
|
||||||
|
# Yazi with cd on quit
|
||||||
function y() {
|
function y() {
|
||||||
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
||||||
command yazi "$@" --cwd-file="$tmp"
|
command yazi "$@" --cwd-file="$tmp"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ default_floating_border normal
|
|||||||
smart_gaps inverse_outer
|
smart_gaps inverse_outer
|
||||||
|
|
||||||
# for_window [class="^.*"] border pixel 0
|
# for_window [class="^.*"] border pixel 0
|
||||||
gaps inner 0
|
gaps inner 30
|
||||||
gaps outer 0
|
gaps outer 0
|
||||||
|
|
||||||
popup_during_fullscreen smart
|
popup_during_fullscreen smart
|
||||||
@@ -17,6 +17,8 @@ for_window [title="Calendar02042023"] floating enable
|
|||||||
for_window [title="Music "] floating enable
|
for_window [title="Music "] floating enable
|
||||||
for_window [instance=rofi] sticky enable
|
for_window [instance=rofi] sticky enable
|
||||||
for_window [instance=st] floating enable
|
for_window [instance=st] floating enable
|
||||||
|
for_window [instance=kitty] floating enable
|
||||||
|
for_window [instance=kitty] resize set 800 600
|
||||||
for_window [instance=steam] floating disable
|
for_window [instance=steam] floating disable
|
||||||
for_window [instance=blueberry] floating enable
|
for_window [instance=blueberry] floating enable
|
||||||
for_window [instance=eww] border pixel 0
|
for_window [instance=eww] border pixel 0
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# terminal emulator
|
# terminal emulator
|
||||||
super + Return
|
super + Return
|
||||||
st
|
kitty
|
||||||
|
|
||||||
# program launcher
|
# program launcher
|
||||||
# super + @space
|
# super + @space
|
||||||
@@ -141,7 +141,7 @@ super + shift + b
|
|||||||
# xdotool getactivewindow key ctrl+v
|
# xdotool getactivewindow key ctrl+v
|
||||||
|
|
||||||
super + e
|
super + e
|
||||||
st -e yazi
|
st -e nnn
|
||||||
Print
|
Print
|
||||||
flameshot gui
|
flameshot gui
|
||||||
super + m
|
super + m
|
||||||
|
|||||||
Reference in New Issue
Block a user