dotfiles

custom dotfiles
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit b0440c00c76d7f01cf7ba65d81c2a393e09af948
parent d2197c229fc2f3392a6d597d6d6db2f19539bc2f
Author: pyratebeard <root@pyratebeard.net>
Date:   Wed,  3 Jun 2020 20:23:35 +0100

new aliases and functions

irc alias to run in dtach. suffix aliases for markdown, images, and pdfs. screencast function for recording. raise function for raising of hidden windows, because of laziness

Diffstat:
Mzsh/.zsh/aliases.zsh | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/zsh/.zsh/aliases.zsh b/zsh/.zsh/aliases.zsh @@ -51,6 +51,11 @@ alias ncmpcpp="ncmpcpp -q" alias song="ncmpcpp --current-song='$7%a - $8{%n} {%t} $R [{%l}] ' | cut -d '%' -f 1" alias jobs="jobs -l" alias dnf="sudo dnf" +alias irc="TERM=screen dtach -A /tmp/irc irssi" + +alias -s md=vim +alias -s {png,jpg,jpeg}=sxiv +alias -s pdf=zathura email() { echo $3 | mutt -s $2 $1 @@ -73,3 +78,12 @@ md() { tmush() { ssh -t "$@" 'tmux attach || tmux new' } + +screencast() { + RESOLUTION=$(xrandr | grep "*" | awk '{print $1}') + ffmpeg -f x11grab -s $RESOLUTION -an -r 16 -loglevel quiet -i :0.0 -b:v 5M -y $HOME/lib/vid/recordings/screencasts/$(date +%Y%m%d)-${1} +} + +raise() { + $(hidden -c | awk -F\: '{print $2}' | tr -d "'") +}