Browse Source

Nextcloud

main
Yigit 4 years ago
parent
commit
1c5df9f2cd
13 changed files with 23 additions and 15 deletions
  1. +1
    -0
      .gitignore
  2. +1
    -0
      .gitsecret/paths/mapping.cfg
  3. +1
    -2
      arch-setup/chroot.sh
  4. +2
    -0
      install.sh
  5. BIN
      mail/mbsyncrc.secret
  6. BIN
      mail/msmtp/config.secret
  7. +0
    -13
      misc/.fzf.zsh
  8. BIN
      misc/nextcloud.secret
  9. BIN
      misc/spotifyd.conf.secret
  10. BIN
      misc/wakatime.cfg.secret
  11. +17
    -0
      scripts/nextcloud-sync
  12. +1
    -0
      suckless/dwmblocks/config.h
  13. BIN
      zsh/secret.secret

+ 1
- 0
.gitignore View File

@ -5,3 +5,4 @@ mail/mbsyncrc
mail/msmtp/config
misc/spotifyd.conf
misc/wakatime.cfg
misc/nextcloud

+ 1
- 0
.gitsecret/paths/mapping.cfg View File

@ -3,3 +3,4 @@ mail/mbsyncrc:65eec91b162f829575c2cc4b2428faa90eb71f3f79ba779bcfe70712f161cabe
mail/msmtp/config:529c5ae169a81f528ece6356c2bfb23f20af93619386aa018f28fab9505271ec
misc/spotifyd.conf:dd73afe8809498ba3b00ba9aa99e78fb3606867dc4871231880d2ebfd55196a9
misc/wakatime.cfg:e306146d45036c38f15aa9a817fc172bdca3c4c9d9ed3c4f6fe1d8d93d783d78
misc/nextcloud:936fb8a7f1f7a624c12e370edb0d19e219f9a8bb7210728449d6fff1b9d060a9

+ 1
- 2
arch-setup/chroot.sh View File

@ -130,5 +130,4 @@ echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers.d/wheel
echo "SETUP COMPLETE"
exit
bash

+ 2
- 0
install.sh View File

@ -103,6 +103,7 @@ ln -s ~/.dotfiles/misc/keyboard ~/.keyboard
ln -s ~/.dotfiles/misc/mimeapps.list ~/.config/mimeapps.list
ln -s ~/.dotfiles/misc/wakatime.cfg ~/.wakatime.cfg
ln -s ~/.dotfiles/misc/BetterDiscord ~/.config/BetterDiscord
ln -s ~/.dotfiles/misc/nextcloud ~/.nextcloud
mkdir -p ~/.config/spotifyd
ln -s ~/.dotfiles/misc/spotifyd.conf ~/.config/spotifyd/spotifyd.conf
ln -s ~/.dotfiles/fonts ~/.fonts
@ -149,6 +150,7 @@ if [ ! -f "/var/spool/cron$username" ]; then
sudo chmod 755 "/var/spool/cron/$username"
fi
echo "*/8 * * * * /home/$username/.scripts/mailsync" >> /var/spool/cron/yigit
echo "*/15 * * * * /home/$username/.scripts/nextcloud-sync" >> /var/spool/cron/yigit
# Root
sudo cp ~/.dotfiles/root/dwm.desktop /usr/share/xsessions


BIN
mail/mbsyncrc.secret View File


BIN
mail/msmtp/config.secret View File


+ 0
- 13
misc/.fzf.zsh View File

@ -1,13 +0,0 @@
# Setup fzf
# ---------
if [[ ! "$PATH" == */home/yigit/.fzf/bin* ]]; then
export PATH="${PATH:+${PATH}:}/home/yigit/.fzf/bin"
fi
# Auto-completion
# ---------------
[[ $- == *i* ]] && source "/home/yigit/.fzf/shell/completion.zsh" 2> /dev/null
# Key bindings
# ------------
source "/home/yigit/.fzf/shell/key-bindings.zsh"

BIN
misc/nextcloud.secret View File


BIN
misc/spotifyd.conf.secret View File


BIN
misc/wakatime.cfg.secret View File


+ 17
- 0
scripts/nextcloud-sync View File

@ -0,0 +1,17 @@
#!/bin/bash
source $HOME/.nextcloud
rm -rf /tmp/nextcloud.out
rm -rf /tmp/nextcloud.err
for i in "${!mappings[@]}"; do
echo "Syncing: $i"
nextcloudcmd -h -u "$NEXTCLOUD_USERNAME" -p "$NEXTCLOUD_PASSWORD" \
"${mappings[$i]}" "$i" >> /tmp/nextcloud.out 2>> /tmp/nextcloud.err
done
echo $(date '+%R') >> $HOME/.cache/nextcloud-track
kill -59 $(pidof dwmblocks)

+ 1
- 0
suckless/dwmblocks/config.h View File

@ -7,6 +7,7 @@ static Block blocks[] = {
{ "", PATH("mail"), 120, 23},
{ "", PATH("keyboard"), 120, 24},
{ "", PATH("mconnect"), 120, 20},
{ "", PATH("nextcloud"), 600, 25},
{ "", PATH("cpu-temp"), 30, 17},
{ "", PATH("memory"), 120, 21},
{ "", PATH("weather"), 60, 16},


BIN
zsh/secret.secret View File


Loading…
Cancel
Save