Browse Source

DOTS

master
Dustin Swan 3 years ago
parent
commit
411a3ad9de
Signed by: dustinswan GPG Key ID: AB49BD6B2B3A6377
  1. 17
      bin/animated_wallpaper.sh
  2. 2
      bin/backup-to-thumb
  3. 0
      bin/decrypt-password
  4. 15
      bin/update
  5. 2
      home-common.nix
  6. 4
      vdirsyncer/config

17
bin/animated_wallpaper.sh

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

2
bin/backup_to_thumb.sh → 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/

0
bin/decrypt_password.sh → bin/decrypt-password

15
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

2
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 = {

4
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"]
Loading…
Cancel
Save