2022-07-31 21:09:31 +00:00
|
|
|
alias sudo="doas"
|
|
|
|
|
2022-05-15 23:48:34 +00:00
|
|
|
alias l="ls -lah"
|
|
|
|
|
|
|
|
alias cls="clear"
|
|
|
|
alias cp="cp -v"
|
|
|
|
alias gif-for-cli="gif-for-cli -l 0 -c █ --display-mode=truecolor"
|
|
|
|
alias cdu="cdu -s -dh"
|
|
|
|
alias dclock="tput civis; watch -t -n1 \"date +%T|toilet --font mono12\""
|
|
|
|
alias blank="tput civis ; clear ; read"
|
|
|
|
alias open="xdg-open 2>/dev/null"
|
|
|
|
alias sl="ls"
|
|
|
|
alias resettabletscale='tablet 8 156 1 4:3'
|
|
|
|
#alias settabletscale="tablet 8 156 2.5063 4:3"
|
|
|
|
alias settabletscale="tablet 18 155 2 4:3"
|
|
|
|
|
|
|
|
alias gosumemory-default="sudo /home/david/.local/share/gosumemory/gosumemory -path /home/david/.local/share/osu-wine/OSU/Songs"
|
|
|
|
|
2023-03-01 00:07:40 +00:00
|
|
|
alias yta="yt-dlp --no-mtime --add-metadata --no-check-certificate --embed-thumbnail -x -f bestaudio/best"
|
2022-05-15 23:48:34 +00:00
|
|
|
|
|
|
|
alias vim="nvim"
|
|
|
|
#alias tablet2='tablet 18 156 2.4'
|
|
|
|
|
|
|
|
rfc() { (for f in */; do du -a "$f" | tail -n+2 | wc -l | xargs printf "%s\t$f\n" ; done) | sort -Vr ;}
|
|
|
|
|
|
|
|
pandoc-md () {
|
|
|
|
pandoc --pdf-engine=xelatex --variable mainfont="Arial" --variable sansfont=Arial --from markdown -o `basename $1`.pdf $1
|
|
|
|
}
|
|
|
|
|
|
|
|
mp4-gif () {
|
|
|
|
ffmpeg -i $1 -r 15 -vf "scale=360:-1,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" $2
|
|
|
|
}
|
|
|
|
|
|
|
|
alias zth="zathura"
|
|
|
|
alias nb="nb --blog-dir $BLOG_DIR"
|
|
|
|
alias looking-glass-client="looking-glass-client -G input:rawMouse=yes input:escapekey=119 input:autocapture=yes -k -j"
|
2023-12-22 00:10:59 +00:00
|
|
|
alias show-keymap="vim ~/docs/proj/qmk_firmware/keyboards/biacco42/ergo42/keymaps/iksvo/keymap.c"
|
2022-05-15 23:48:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
configure () {
|
|
|
|
vim ~/.config/$1
|
|
|
|
}
|
|
|
|
|
|
|
|
bitrate () {
|
|
|
|
mediainfo Aphrodite_-_Superman_\(dnb\).mp3 | grep 'Bit rate '
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
alias syncdir="sudo rsync -rv --no-perms --no-owner --no-group --delete"
|
2022-07-31 21:09:31 +00:00
|
|
|
alias chromium-tor="chromium-browser --incognito --proxy-server=socks5://localhost:9050 --user-data-dir=/tmp/tor"
|
|
|
|
alias chromium-i2p="chromium-browser --incognito --proxy-server=socks5://localhost:4447 --user-data-dir=/tmp/i2p"
|
2022-05-15 23:48:34 +00:00
|
|
|
|
|
|
|
alarmclock () {
|
2022-07-31 21:09:31 +00:00
|
|
|
sudo rtcwake -m no -t "$(date -d '07:00:00' '+%s')" && echo 'set alarm for tomorrow at 7am'
|
2022-05-15 23:48:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# does tail -f on a dir... bit of a hack
|
|
|
|
# i spelled this wrong on purpose i think
|
|
|
|
mutlitail1 () {
|
|
|
|
while true; do
|
|
|
|
f=$(ls -1 --sort time $@| head -1 | xargs realpath);
|
|
|
|
tail -$(tput lines) $f;
|
|
|
|
done;
|
|
|
|
}
|
|
|
|
|
|
|
|
alias watchdirty="watch grep -e Dirty: -e Writeback: /proc/meminfo"
|
|
|
|
|
|
|
|
passthrough_disable () {
|
|
|
|
sudo mv /etc/modprobe.d/vfio.conf /etc/modprobe.d/vfio.conf.disabled
|
|
|
|
}
|
|
|
|
passthrough_enable () {
|
|
|
|
sudo mv /etc/modprobe.d/vfio.conf /etc/modprobe.d/vfio.conf.disabled
|
|
|
|
}
|
2023-03-10 17:06:03 +00:00
|
|
|
alias links="links -g -html-g-text-color 0xfefefe -html-g-background-color 0x191919 -font /home/david/.fonts/ttf-mononoki/mononoki-Regular.ttf"
|
2022-07-31 21:09:31 +00:00
|
|
|
alias weechat="weechat -d ~/.weechat"
|