diff --git a/bin/animated_wallpaper.sh b/bin/animated_wallpaper.sh deleted file mode 100755 index 093ab7b..0000000 --- a/bin/animated_wallpaper.sh +++ /dev/null @@ -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 diff --git a/bin/backup_to_thumb.sh b/bin/backup-to-thumb similarity index 97% rename from bin/backup_to_thumb.sh rename to bin/backup-to-thumb index 4f0aa90..245997d 100755 --- a/bin/backup_to_thumb.sh +++ b/bin/backup-to-thumb @@ -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/ diff --git a/bin/decrypt_password.sh b/bin/decrypt-password similarity index 100% rename from bin/decrypt_password.sh rename to bin/decrypt-password diff --git a/bin/update b/bin/update new file mode 100755 index 0000000..fa6808a --- /dev/null +++ b/bin/update @@ -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 diff --git a/home-common.nix b/home-common.nix index 8e5fc0b..b806813 100644 --- a/home-common.nix +++ b/home-common.nix @@ -2,7 +2,7 @@ { home.packages = with pkgs; [ - ripgrep fd wget silver-searcher tree ranger nodejs yarn mosh w3m urlview nmap rtv gnupg youtube-dl nodePackages.tern nodePackages.eslint nodePackages.javascript-typescript-langserver nodePackages.js-beautify nodePackages.prettier ffmpeg ispell aspell hexyl nnn entr httpie cacert + ripgrep fd wget silver-searcher tree ranger nodejs yarn mosh w3m urlview nmap rtv gnupg youtube-dl nodePackages.tern nodePackages.eslint nodePackages.javascript-typescript-langserver nodePackages.js-beautify nodePackages.prettier ffmpeg ispell aspell aspellDicts.en aspellDicts.en-computers aspellDicts.en-science aspellDicts.fr aspellDicts.de aspellDicts.eo aspellDicts.es hexyl nnn entr httpie cacert ]; home.sessionVariables = { diff --git a/vdirsyncer/config b/vdirsyncer/config index 7828373..353c583 100644 --- a/vdirsyncer/config +++ b/vdirsyncer/config @@ -16,7 +16,7 @@ fileext = ".vcf" type = "carddav" url = "https://carddav.messagingengine.com/" username = "dustinswan@fastmail.com" -password.fetch = ["command", "~/dotfiles/bin/decrypt_password.sh", "dustinswan@fastmail.com"] +password.fetch = ["command", "~/dotfiles/bin/decrypt-password", "dustinswan@fastmail.com"] [pair fastmail_calendar] a = "fastmail_calendar_local" @@ -34,4 +34,4 @@ fileext = ".ics" type = "caldav" url = "https://caldav.messagingengine.com/" username = "dustinswan@fastmail.com" -password.fetch = ["command", "~/dotfiles/bin/decrypt_password.sh", "dustinswan@fastmail.com"] +password.fetch = ["command", "~/dotfiles/bin/decrypt-password", "dustinswan@fastmail.com"]