misc changes
This commit is contained in:
parent
967e496c7a
commit
b92b53b9cf
39
bash/bashrc
39
bash/bashrc
|
@ -39,6 +39,7 @@ files() {
|
||||||
|
|
||||||
rss() {
|
rss() {
|
||||||
cd ~/.local/share/sfeed/
|
cd ~/.local/share/sfeed/
|
||||||
|
touch .urls
|
||||||
sfeed_curses *
|
sfeed_curses *
|
||||||
cd -
|
cd -
|
||||||
}
|
}
|
||||||
|
@ -55,5 +56,43 @@ gp() {
|
||||||
git push -u origin $(git_main_branch)
|
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 gs='git status'
|
||||||
alias f=files
|
alias f=files
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# paths and stuff
|
# paths and stuff
|
||||||
export PATH="$PATH:$HOME/.local/bin"
|
export PATH="$PATH:$HOME/.local/bin"
|
||||||
export MANPATH="$(manpath):$HOME/.local/share/man"
|
export MANPATH="$(manpath -q):$HOME/.local/share/man"
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
mkdir -p "$HOME/.local/bin" "$HOME/.share/man"
|
mkdir -p "$HOME/.local/bin" "$HOME/.share/man"
|
||||||
|
|
||||||
|
@ -42,6 +42,9 @@ mkdir -p $SFEED_URL_FILE
|
||||||
touch "$SFEED_URL_FILE"
|
touch "$SFEED_URL_FILE"
|
||||||
export SFEED_URL_FILE="$SFEED_URL_FILE/.urls"
|
export SFEED_URL_FILE="$SFEED_URL_FILE/.urls"
|
||||||
|
|
||||||
|
export $(dbus-launch)
|
||||||
|
export GTK_THEME="earth"
|
||||||
|
|
||||||
# source the bashrc(s)
|
# source the bashrc(s)
|
||||||
[ -f $HOME/.config/bash/bashrc ] && . $HOME/.config/bash/bashrc
|
[ -f $HOME/.config/bash/bashrc ] && . $HOME/.config/bash/bashrc
|
||||||
[ -f $HOME/.bashrc ] && . $HOME/.bashrc
|
[ -f $HOME/.bashrc ] && . $HOME/.bashrc
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
" randomuser's vimrc
|
" randomuser's vimrc
|
||||||
" vim-plug {{{
|
" vim-plug {{{
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
Plug 'honza/vim-snippets'
|
|
||||||
Plug 'sirver/ultisnips'
|
|
||||||
Plug 'tridactyl/vim-tridactyl'
|
Plug 'tridactyl/vim-tridactyl'
|
||||||
Plug 'chrisbra/csv.vim'
|
|
||||||
Plug 'vimwiki/vimwiki'
|
Plug 'vimwiki/vimwiki'
|
||||||
cal plug#end()
|
cal plug#end()
|
||||||
" }}}
|
" }}}
|
||||||
|
|
Loading…
Reference in New Issue