Added rofi / sourced aliases / dlkiller

This commit is contained in:
agryphus 2023-09-18 20:00:25 -04:00
parent 43e094e25d
commit ea5cd95099
4 changed files with 47 additions and 7 deletions

View file

@ -13,6 +13,10 @@ alias xournal='xournalpp'
alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
alias javafx='java --module-path /usr/lib/jvm/default/lib/ --add-modules javafx.base,javafx.controls,javafx.graphics,javafx.media,javafx.swing,javafx.web'
alias sxiv='nsxiv'
alias blueman='blueman-manager'
alias spotify='spotify-launcher'
alias spotify-launcher='dlkiller spotify-launcher'
alias zoom='dlkiller zoom'
# Some wsl stuff
alias clip=/mnt/c/Windows/System32/clip.exe
@ -33,7 +37,7 @@ alias egrep='egrep --color=auto'
alias diff='diff --color=auto'
alias ip='ip --color=auto'
## KEYBINDS ##
## FUNCTIONS ##
# Use lf to switch directories and bind it to ctrl-o
lfcd () {
@ -50,7 +54,30 @@ lfcd () {
fi
fi
}
bindkey -s '^o' 'lfcd\n'
# This script was automatically generated by the broot program
# More information can be found in https://github.com/Canop/broot
# This function starts broot and executes the command
# it produces, if any.
# It's needed because some shell commands, like `cd`,
# have no useful effect if executed in a subshell.
function br {
local cmd cmd_file code
cmd_file=$(mktemp)
if broot --outcmd "$cmd_file" "$@"; then
cmd=$(<"$cmd_file")
command rm -f "$cmd_file"
eval "$cmd"
else
code=$?
command rm -f "$cmd_file"
return "$code"
fi
}
## KEYBINDS ##
bindkey -s '^e' 'lfcd\n'
# Enable completion features
autoload -Uz compinit