1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2025-11-25 21:55:44 +00:00

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' nittr = 'nitter.snopyta.org'
# bindings # 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 --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 --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) 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') for i in $(grep works/[0-9]\* $@ -o | uniq | sed 's/works\///g' | sed '/^$/d')
do do
aria2c https://download.archiveofourown.org/downloads/$i/\*.epub 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) for i in $(lynx -dump -hiddenlinks=listonly $@ | grep '\.epub' | awk 'FNR > 2 {print$2}' | grep http)
do do
aria2c $i aria2c $i

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/sh
echo Usage: file scale noise echo Usage: file scale noise
waifu2x-converter-cpp -i $1 --scale-ratio $2 --noise-level $3 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 echo Usage: file scale noise
waifu2x-ncnn-vulkan -i $1 -o "${1%.*}"[x$2][L$3].png -s $2 -n $3 waifu2x-ncnn-vulkan -i $1 -o "${1%.*}"[x$2][L$3].png -s $2 -n $3