misc changes

This commit is contained in:
randomuser 2023-01-03 23:13:10 -06:00
parent 967e496c7a
commit b92b53b9cf
3 changed files with 43 additions and 4 deletions

View File

@ -39,6 +39,7 @@ files() {
rss() {
cd ~/.local/share/sfeed/
touch .urls
sfeed_curses *
cd -
}
@ -55,5 +56,43 @@ gp() {
git push -u origin $(git_main_branch)
}
start_bitlbee() {
mkdir -p $HOME/.config/bitlbee/
touch $HOME/.config/bitlbee/config
bitlbee #-D -c $HOME/.config/bitlbee/config -d $HOME/.config/bitlbee/
}
record() {
tmp=$(mktemp)
res=$(xrandr |
grep ' connected' |
awk -F' ' '{print $1 " " $4}' |
awk -F'+' '{print $1}' |
fzy |
awk -F' ' '{print $2}' )
ffmpeg -video_size "$res" -f x11grab -framerate 60 -i $DISPLAY -preset ultrafast -pix_fmt yuv420p "$tmp.mp4"
printf "> written to %s\n" "$tmp.mp4"
while true; do
result=$(printf "delete\nupload to pastebin\nreview footage\nquit\n" | fzy --prompt="what next?")
case "$result" in
*upload*)
paste "$tmp.mp4" | xclip -i
;;
*review*)
mpv "$tmp.mp4"
;;
*delete*)
rm "$tmp.mp4"
return
;;
*quit*)
return
;;
esac
done
}
alias gs='git status'
alias f=files

View File

@ -2,7 +2,7 @@
# paths and stuff
export PATH="$PATH:$HOME/.local/bin"
export MANPATH="$(manpath):$HOME/.local/share/man"
export MANPATH="$(manpath -q):$HOME/.local/share/man"
export EDITOR="nvim"
mkdir -p "$HOME/.local/bin" "$HOME/.share/man"
@ -42,6 +42,9 @@ mkdir -p $SFEED_URL_FILE
touch "$SFEED_URL_FILE"
export SFEED_URL_FILE="$SFEED_URL_FILE/.urls"
export $(dbus-launch)
export GTK_THEME="earth"
# source the bashrc(s)
[ -f $HOME/.config/bash/bashrc ] && . $HOME/.config/bash/bashrc
[ -f $HOME/.bashrc ] && . $HOME/.bashrc

View File

@ -1,10 +1,7 @@
" randomuser's vimrc
" vim-plug {{{
call plug#begin()
Plug 'honza/vim-snippets'
Plug 'sirver/ultisnips'
Plug 'tridactyl/vim-tridactyl'
Plug 'chrisbra/csv.vim'
Plug 'vimwiki/vimwiki'
cal plug#end()
" }}}