Compare commits

...
5 Commits
6 changed files with 27 additions and 27 deletions

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ hook global ModuleLoaded wayland %{
} }
hook global WinCreate .* %{ hook global WinCreate .* %{
add-highlighter window/number-lines number-lines -relative -hlcursor add-highlighter window/number-lines number-lines -relative -hlcursor -min-digits 3
} }
hook global BufCreate .*\.templ %{ set buffer filetype templ } hook global BufCreate .*\.templ %{ set buffer filetype templ }
+8 -1
View File
@@ -5,12 +5,19 @@
# If not running interactively, don't do anything # If not running interactively, don't do anything
[[ $- != *i* ]] && return [[ $- != *i* ]] && return
alias ls='ls --color=auto' shopt -s histappend
PROMPT_COMMAND="history -a; history -n; $PROMPT_COMMAND"
PS1='\e[34m\u@\h\e[0m \e[32m\W\e[0m \$ ' PS1='\e[34m\u@\h\e[0m \e[32m\W\e[0m \$ '
HISTTIMEFORMAT='%F %R '
function before_command() { echo -ne '\e[2 q'; } function before_command() { echo -ne '\e[2 q'; }
trap before_command DEBUG trap before_command DEBUG
# Aliases.
for f in ~/.config/shellconfig/*.sh; do source "$f"; done
if [[ -f /usr/share/bash-completion/bash_completion ]]; then if [[ -f /usr/share/bash-completion/bash_completion ]]; then
. /usr/share/bash-completion/bash_completion . /usr/share/bash-completion/bash_completion
fi fi
+7 -25
View File
@@ -1,30 +1,18 @@
alias v=nvim alias v=nvim
alias k=kak alias k=kak
alias kd='kak -s "$(basename $PWD)"' alias hs='history $HISTSIZE | rg'
alias ll='ls -l' alias kc='kak -c "$(kak -l | kff)"'
alias kf='fd -t f | kff | xargs kd'
alias kh='fd -H -t f | kff | xargs kd'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
alias tl='tmux list-sessions' alias tl='tmux list-sessions'
alias rgh='rg -.' alias rgh='rg -.'
alias fdh='fd -H' alias fdh='fd -H'
alias lg=lazygit alias lg=lazygit
alias z='cd $(fd -t d --one-file-system . ~ | kff)'
if alias st > /dev/null; then
alias gst='_vcs status'
unalias st
fi
if alias r > /dev/null; then
unalias r
fi
if which eza > /dev/null; then
alias ls='eza --icons'
alias tree='eza --tree --icons'
elif which exa > /dev/null; then
alias ls='exa --icons'
alias tree='exa --tree --icons'
else
eval $(dircolors) eval $(dircolors)
alias ls='ls --color=auto'
fi
alias nocaps='setxkbmap pl -option ctrl:nocaps' alias nocaps='setxkbmap pl -option ctrl:nocaps'
alias fixdp='xrandr --output DP-0 --right-of DP-2' alias fixdp='xrandr --output DP-0 --right-of DP-2'
@@ -38,12 +26,6 @@ a4i() {
fi fi
} }
kc() {
local Q="${@:-}"
local NAME=$(kak -l | fzy -q "$Q")
[ -n "$NAME" ] && kak -c "$NAME"
}
tn() { tn() {
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
tmux new tmux new
+8
View File
@@ -2,3 +2,11 @@ alias hs='history -$HISTSIZE | rg'
alias -s pdf=zathura alias -s pdf=zathura
alias -s {jpg,jpeg,png}=sxiv alias -s {jpg,jpeg,png}=sxiv
if alias st > /dev/null; then
alias gst='_vcs status'
unalias st
fi
if alias r > /dev/null; then
unalias r
fi
+2
View File
@@ -14,6 +14,8 @@ export EDITOR=kak
export VISUAL=kak export VISUAL=kak
export BAT_THEME='Catppuccin Frappe' export BAT_THEME='Catppuccin Frappe'
export XDG_RUNTIME_DIR="$HOME/local/run"
export KFF_DEFAULT_COMMAND='fd -t f'
# if running bash # if running bash
if [ -n "$BASH_VERSION" ]; then if [ -n "$BASH_VERSION" ]; then
+1
View File
@@ -3,6 +3,7 @@
#if HEIGHT >= 2160 #if HEIGHT >= 2160
Xft.dpi: 160 Xft.dpi: 160
Xcursor.size: 48 Xcursor.size: 48
Xcursor.theme: Vanilla-DMZ
polybar.height: 40 polybar.height: 40
#else #else
Xft.dpi: 107 Xft.dpi: 107