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:
Érico Nogueira 2021-09-24 16:21:26 -03:00
parent 66c2b3fa67
commit 59b914deba
5 changed files with 22 additions and 4 deletions

View File

@ -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!"

View File

@ -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

17
media/.local/bin/convert-cbr Executable file
View File

@ -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

View File

@ -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

View File

@ -3,6 +3,6 @@ pipeline
{
pipeline
{ ps aux }
rg -i $@
grep -i $@
}
rg -v "(rg -i)|(rgps)"
grep -v "grep -i"