|
@@ -12,25 +12,30 @@ alias yay='yay --color=auto'
|
|
|
alias v='nvim'
|
|
|
alias vi='nvim'
|
|
|
alias vim='nvim'
|
|
|
+#alias neovide='neovide --multigrid'
|
|
|
|
|
|
# modern-unix tools
|
|
|
[ -f "$(which duf)" ] && alias df="duf"
|
|
|
[ -f "$(which fd)" ] && alias find="fd -H"
|
|
|
[ -f "$(which rg)" ] && alias grep="rg"
|
|
|
+[ -f "$(which neovide)" ] && alias gvim="neovide --multigrid $@"
|
|
|
|
|
|
# cat on wings
|
|
|
alias bat='bat --theme zenburn'
|
|
|
|
|
|
# universal opener
|
|
|
-alias open="xdg-open"
|
|
|
+function open () {
|
|
|
+ xdg-open "$*" &
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
# Run vifmrun for image preview with ueberzug
|
|
|
alias vifm="$HOME/.config/vifm/scripts/vifmrun"
|
|
|
|
|
|
# Configure neovide as gvim alternative
|
|
|
-function gvim {
|
|
|
- nohup neovide --multiGrid --disowned $@ >/dev/null 2>&1 &
|
|
|
-}
|
|
|
+#function gvim {
|
|
|
+# neovide --multigrid $@
|
|
|
+#}
|
|
|
|
|
|
# some ls aliases
|
|
|
alias ll='ls -alh --color=auto --group-directories-first'
|
|
@@ -53,6 +58,7 @@ alias md=markdown_previewer
|
|
|
|
|
|
# default PDF viewer
|
|
|
alias pdf='zathura --fork'
|
|
|
+#alias pdf='sioyek'
|
|
|
|
|
|
# source: github.com/sharkdp/hexyl
|
|
|
alias hex=hexyl
|
|
@@ -63,8 +69,8 @@ alias netstat='netstat -tulanp'
|
|
|
|
|
|
|
|
|
alias loadX='xrdb $HOME/.Xresources'
|
|
|
-alias zzz='systemctl suspend'
|
|
|
-alias ZZZ='systemctl hibernate'
|
|
|
+alias zzz='systemctl suspend -i && $HOME/.scripts/i3/lock.sh'
|
|
|
+alias ZZZ='systemctl hibernate -i && $HOME/.scripts/i3/lock.sh'
|
|
|
alias python-env="source $HOME/.scripts/misc/python-env"
|
|
|
|
|
|
# brightness settings
|
|
@@ -88,8 +94,9 @@ alias cpwd='xclip -selection clipboard -i <(pwd | tr -d "\n")'
|
|
|
# copy the last command issued to the clipboard
|
|
|
alias clc='fc -ln -1 | tr -d "\n" | sed "s/^\s*//g" | xclip -selection clipboard -i'
|
|
|
|
|
|
-alias fcd='cd $(fd -t d | fzf)'
|
|
|
-alias cdf='cd $(fd -t d | fzf)'
|
|
|
+alias fcd='cd "$(fd -t d | fzf)"'
|
|
|
+alias cdf='cd "$(fd -t d | fzf)"'
|
|
|
+alias cdp='cd "$(fd -t d --full-path --maxdepth 3 /home/msc/projects | fzf)"'
|
|
|
# ipaddr
|
|
|
alias ipa='ip --brief --color add'
|
|
|
|
|
@@ -101,6 +108,10 @@ alias cpy='xclip -selection clipboard'
|
|
|
alias pubip="dig +short myip.opendns.com @resolver1.opendns.com"
|
|
|
alias localip="ip a | grep -Eo 'inet (addr:)?([0-9]*\\.){3}[0-9]*' | grep -Eo '([0-9]*\\.){3}[0-9]*' | grep -v '127.0.0.1'"
|
|
|
|
|
|
+
|
|
|
+# for weird manjaro stuff
|
|
|
+alias fixsudo="cat /etc/sudoers.d/10-installer"
|
|
|
+
|
|
|
# search files with fzf and open them
|
|
|
function sf {
|
|
|
file=$(fzf --preview='head -n$LINES {}')
|