From b92b53b9cf2e2005fe2c46988c96826b37153507 Mon Sep 17 00:00:00 2001 From: randomuser Date: Tue, 3 Jan 2023 23:13:10 -0600 Subject: [PATCH] misc changes --- bash/bashrc | 39 +++++++++++++++++++++++++++++++++++++++ bash/profile | 5 ++++- nvim/init.vim | 3 --- 3 files changed, 43 insertions(+), 4 deletions(-) diff --git a/bash/bashrc b/bash/bashrc index 08c3d72..ae7bcae 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -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 diff --git a/bash/profile b/bash/profile index 816e271..780812f 100644 --- a/bash/profile +++ b/bash/profile @@ -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 diff --git a/nvim/init.vim b/nvim/init.vim index a4010af..ea5652d 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -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() " }}}