dotfiles/.bash_aliases

32 lines
893 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'
alias lglass='looking-glass-client audio:micDefault=allow input:rawMouse=yes egl:scale=2 -m KEY_RIGHTMETA'
#
# TUI
#
# run pulsemixer
alias mixer="pulsemixer"