mirror of https://github.com/ericonr/dotfiles.git
Update configs and scripts.
- fix error in xrandr.fish - use a separate TMUX_TMPDIR - create convert-cbr - add WEBSITE to 0x0 - use grep instead of ripgrep in rgps
This commit is contained in:
parent
66c2b3fa67
commit
59b914deba
|
@ -19,7 +19,7 @@ function conf-display --argument-names width height interface
|
|||
eval xrandr --addmode $interface $RESOL_REFRESH
|
||||
eval xrandr --output $interface --mode $RESOL_REFRESH
|
||||
|
||||
if $status
|
||||
if test "$status" -eq 0
|
||||
echo "Succesfully configured $interface for displaying $width x $height video!"
|
||||
else
|
||||
echo "There was an error!"
|
||||
|
|
|
@ -15,3 +15,4 @@ end
|
|||
set -x LANG pt_BR.UTF-8
|
||||
set -x DEBUGINFOD_URLS "https://debuginfod.s.voidlinux.org http://localhost:8002"
|
||||
set -x DEBUGINFOD_TIMEOUT "5"
|
||||
set -x TMUX_TMPDIR ~/.config
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
# convert .cbr files to .cbz
|
||||
set -e
|
||||
bdir="$PWD"
|
||||
for arg
|
||||
do
|
||||
file="$(realpath "$arg")"
|
||||
[ -z "$file"] && false
|
||||
dir="$(mktemp -d)"
|
||||
|
||||
cd "$dir"
|
||||
unrar e "$file"
|
||||
tar acf "$file".zip ./
|
||||
mv "$file".zip "$file".cbz
|
||||
cd "$bdir"
|
||||
rm -rf "$dir"
|
||||
done
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
website="$(curl -F"file=@${1:--}" https://0x0.st)"
|
||||
website="$(curl -F"file=@${1:--}" ${WEBSITE:-https://0x0.st})"
|
||||
echo $website
|
||||
|
||||
[ "$WAYLAND_DISPLAY" ] && echo -n $website | wl-copy
|
||||
|
|
|
@ -3,6 +3,6 @@ pipeline
|
|||
{
|
||||
pipeline
|
||||
{ ps aux }
|
||||
rg -i $@
|
||||
grep -i $@
|
||||
}
|
||||
rg -v "(rg -i)|(rgps)"
|
||||
grep -v "grep -i"
|
||||
|
|
Loading…
Reference in New Issue