This commit is contained in:
2019-11-17 19:10:40 -05:00
parent b176c83374
commit 411a3ad9de
6 changed files with 20 additions and 20 deletions

View File

@@ -1,17 +0,0 @@
#!/bin/sh
#screen
SCRH=`xrandr | awk '/current/ { print $8 }'`
SCRW=`xrandr | awk '/current/ { print $10 }' | sed 's/,//'`
#SCRW=${SCRW%\.}
#gif
IMGHW=`gifsicle --info $1 | awk '/logical/ { print $3 }'`
IMGH=${IMGHW%x*}
IMGW=${IMGHW#*x}
#position
POSH=$((($SCRH/2)-($IMGH/2)))
POSW=$((($SCRW/2)-($IMGW/2)))
xwinwrap -g ${IMGHW}+${POSH}+${POSW} -ov -ni -s -nf -- gifview -w WID $1 -a

View File

@@ -1,3 +1,5 @@
#!/bin/sh
rsync -avhW --compress-level=0 --progress --delete --checksum Sync /Volumes/NO\ NAME/
rsync -avhW --compress-level=0 --progress --delete --checksum Pictures /Volumes/NO\ NAME/
rsync -avhW --compress-level=0 --progress --delete --checksum Contacts /Volumes/NO\ NAME/

15
bin/update Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
# if type "$brew" > /dev/null; then
if command -v brew &> /dev/null; then
brew update
brew upgrade
brew cask upgrade
fi
if command -v nix &> /dev/null; then
# if type "$nix" > /dev/null; then
nix-channel --update
nix-env -u
home-manager switch
fi