dotfiles/.bash_aliases

30 lines
785 B
Bash

#
# CLI
#
# use doas instead of sudo
alias sudo='doas'
#.dotfiles repo alias
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# show file sizes alias and sort by size
alias sizes='du -hs .[^.]* * | sort -h'
# bash tree alias
alias gittree="git log --all --decorate --oneline --graph"
# screen brightness script
alias brightness="$HOME/.config/scripts/wm/brightness.sh"
alias linkmic='link-virtual-mic -a'
alias unlinkmic='link-virtual-mic -d'
alias sbSetfile='file=$(fzf)'
alias sbPlay='mpv "$file" --volume=70 --audio-device=pipewire/loopback &> /dev/null'
alias sbLoop='while true; do sbPlay; sleep 0.5; done'
alias sbSpam='c=5; while [[ $c -gt 0 ]]; do sbPlay & sleep 0.15; echo $c; c=$((c-1)); done'
#
# TUI
#
# run pulsemixer
alias mixer="pulsemixer"