Bin: use sh where possible

This commit is contained in:
Phantop 2020-10-13 16:14:57 -04:00
parent 3d08b83027
commit ca54c9a9cc
14 changed files with 14 additions and 21 deletions

View File

@ -1,4 +1,4 @@
invid = 'www.invidious.tube'
invid = 'invidious.fdn.fr'
nittr = 'nitter.snopyta.org'
# bindings

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
xrandr --newmode $(cvt 1920 1080 72 | tail -n1 | cut -d' ' -f2- | tr ' ' \n | awk '$1=$1')
xrandr --addmode $(xrandr --listactivemonitors | tail -n1 | cut -d' ' -f5- | awk '$1=$1') $(cvt 1920 1080 72 | tail -n1 | cut -d' ' -f2)
xrandr --output $(xrandr --listactivemonitors | tail -n1 | cut -d' ' -f5- | awk '$1=$1') --mode $(cvt 1920 1080 72 | tail -n1 | cut -d' ' -f2)

View File

@ -1,2 +0,0 @@
#!/bin/bash
[[ "$#" -ge 1 ]] && export PATH=$@:$PATH || export PATH=$PWD:$PATH

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
for i in $(grep works/[0-9]\* $@ -o | uniq | sed 's/works\///g' | sed '/^$/d')
do
aria2c https://download.archiveofourown.org/downloads/$i/\*.epub

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
for i in $(lynx -dump -hiddenlinks=listonly $@ | grep '\.epub' | awk 'FNR > 2 {print$2}' | grep http)
do
aria2c $i

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
if [[ "$#" -ge 1 ]]; then
rm ~/Pictures/.wallp
ln -s ~/Pictures/Awall/$@* ~/Pictures/.wallp

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
sudo printf ''
git pull
./autogen.sh --prefix=/usr

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
sudo eopkg up --y
fc-cache -f -v
sudo sync

View File

@ -1,7 +1,2 @@
#!/bin/bash
if [ $# -eq 0 ]
then
cat - | xclip -i -sel clip
else
echo $@ | xclip -i -sel clip
fi
#!/bin/sh
[ $# -eq 0 ] && cat - | xclip -i -sel clip || echo $@ | xclip -i -sel clip

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
compare() {
for i in *
do

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
compare() {
for i in *
do

View File

@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/sh
cd ~/Videos/YouTube/
tmux new -s 1 -d "podsync-bin --no-banner"

View File

@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/sh
echo Usage: file scale noise
waifu2x-converter-cpp -i $1 --scale-ratio $2 --noise-level $3

View File

@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/sh
echo Usage: file scale noise
waifu2x-ncnn-vulkan -i $1 -o "${1%.*}"[x$2][L$3].png -s $2 -n $3