From 1c5df9f2cdf80ca4ca49f1b13a1eb3b7b65e35a5 Mon Sep 17 00:00:00 2001 From: Yigit Date: Sun, 21 Mar 2021 13:57:44 +0300 Subject: [PATCH] Nextcloud --- .gitignore | 1 + .gitsecret/paths/mapping.cfg | 1 + arch-setup/chroot.sh | 3 +-- install.sh | 2 ++ mail/mbsyncrc.secret | Bin 935 -> 935 bytes mail/msmtp/config.secret | Bin 765 -> 764 bytes misc/.fzf.zsh | 13 ------------- misc/nextcloud.secret | Bin 0 -> 830 bytes misc/spotifyd.conf.secret | Bin 810 -> 809 bytes misc/wakatime.cfg.secret | Bin 736 -> 736 bytes scripts/nextcloud-sync | 17 +++++++++++++++++ suckless/dwmblocks/config.h | 1 + zsh/secret.secret | Bin 887 -> 885 bytes 13 files changed, 23 insertions(+), 15 deletions(-) delete mode 100644 misc/.fzf.zsh create mode 100644 misc/nextcloud.secret create mode 100755 scripts/nextcloud-sync diff --git a/.gitignore b/.gitignore index 1f33cf48..e16391b3 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ mail/mbsyncrc mail/msmtp/config misc/spotifyd.conf misc/wakatime.cfg +misc/nextcloud diff --git a/.gitsecret/paths/mapping.cfg b/.gitsecret/paths/mapping.cfg index 8900a118..b244cb73 100644 --- a/.gitsecret/paths/mapping.cfg +++ b/.gitsecret/paths/mapping.cfg @@ -3,3 +3,4 @@ mail/mbsyncrc:65eec91b162f829575c2cc4b2428faa90eb71f3f79ba779bcfe70712f161cabe mail/msmtp/config:529c5ae169a81f528ece6356c2bfb23f20af93619386aa018f28fab9505271ec misc/spotifyd.conf:dd73afe8809498ba3b00ba9aa99e78fb3606867dc4871231880d2ebfd55196a9 misc/wakatime.cfg:e306146d45036c38f15aa9a817fc172bdca3c4c9d9ed3c4f6fe1d8d93d783d78 +misc/nextcloud:936fb8a7f1f7a624c12e370edb0d19e219f9a8bb7210728449d6fff1b9d060a9 diff --git a/arch-setup/chroot.sh b/arch-setup/chroot.sh index 5b258aa0..cbaa2231 100755 --- a/arch-setup/chroot.sh +++ b/arch-setup/chroot.sh @@ -130,5 +130,4 @@ echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers.d/wheel echo "SETUP COMPLETE" - -exit +bash diff --git a/install.sh b/install.sh index 430b0573..e121659c 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/mail/mbsyncrc.secret b/mail/mbsyncrc.secret index 2a06b02ab60e5f1d03d22afa99de6093ee35c281..665f6b6e853fae0e38336febb487f5daeb15748c 100644 GIT binary patch literal 935 zcmV;Y16cfp0t^F?ut;Rv{V9Y25C3i!XOQ&rsKL2p_ryW<)dCe{%f(9unCfu<1VGdp zl}D<_7HqJs6y7AkoIbhfD|bxvs!BzxJL>!|#_v)PqOqnKaV?m5 z_Eh;bdBFIU;%22IY?6qG>eVerLtIO+mQPJq3@fcdllJl%LKv!i+tz)9rf4*Nuda-J zadz7jO?q3zttbTKPNP+--cSJ~1SUMo;!C)0pw_)PEDCMEI(=+?x4jHuIWWG`#HIhs zwp6T_vNo0k)XqHJ*yWEOo^H(O)p*kU0#)sH&z?8^^=t**48<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8ii30G zC-jt3-1`jTxiQu13lzrbL-riSc?VP;*g)&U)P~2z4EGe}D1m;p96$Nl?hahZPyhLg zC+kIcv85-_YNj&cp*|j z2)qyFGFwN21t<2R9)v01MxOSfe`Q}-@W90^WdLYBBJU|t&*7d=%uvV$jr#)THLnaD z2*K`7H4k7t@;CV^6_(L8X#2D63s2+{^whNK1UY@w^OIhoJUaSR>iZ86EDoXQ)fHXi z#Fb?_1(Uf6jS3w{&$~yaZexaSc&ST8B4(csC4sKOU|uOp!y;S$T?p=^P_fOZ?!u{O)Lra;LqFZFz%h58TMOKYs{mT~Qm_JEx6;kgK+S zjBk6}BTKWbl^h8(p3Bm}DgnTXqNYaKI58QN4fCg8nj;ZWwHp!)9rqGLf2WAPj8Lqr zhNau(sRV5kfYb{@4?kvPddHE)B@QNM(ZT(nT}X_quDey%UtGah=3;(aC;3^y&?oXs zj<6*(gJc2J^;cd5)?nY9ceM=8y40xzNmgPg9B!0_ zwmOY!5B^!}yVEX*ZX#gzLf zl`Pwlo8A)y&NS|Xh;<_4 za&eZ-H%OjWV7D#wR%7~wv%8ZkV@@<-JA>%kc%&mKvN93fQknb3F%Rg|1x%6KTASJ4K(H3XCV1?4aD*?q#1e}bXRBw2z%YBXGNbj&H(3p;?;o#h!M*oQ0;HQ5` zQjqiw8e_}0T#K!Nd1Wi39vZxBL4EipRRQ&R;a3#CP=T$g>!qU*CifAua=xG|<-YfN zRhS6$$b}Fzg-`X)Y=~(g^s#P2oD0=EBb#Px`BA;kI*=_v1(9o+DFTI#LLQR*Lz@_Y z!&g4{8lmZI_`XepiGc~frBs{_7W+Wi)r{`;>e_+- diff --git a/misc/.fzf.zsh b/misc/.fzf.zsh deleted file mode 100644 index f0fac174..00000000 --- a/misc/.fzf.zsh +++ /dev/null @@ -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" diff --git a/misc/nextcloud.secret b/misc/nextcloud.secret new file mode 100644 index 0000000000000000000000000000000000000000..0fba7013fb42e6d3cd39f0ff5b72ae3c79ea42ae GIT binary patch literal 830 zcmV-E1Ht@-0t^F?ut;Rv{V9Y25B@k;!7ZK~X#sEmMcmDuBCy+>XfgT}m*Ip)5px#l zcp>=;Xc(+X#-}WCFohP#f5!kA+FpZd)GSjS^JtS6P{#v;n%K2V7h9c@A0{J1;y^`- zG+K<)xJOjJQH0SN+73?i(l9K5(?sD0zaze8bH^--OBt)Og2qd-AvazU)YfV*zlAj= z=Wu9MO5zs$%@UeUL}WB-E&;VlUb>x@Z{Gyg`R}^qP)O?=U7h>CKm>%3jiOhPuB>tK zA|(!7a1;D$(%@+@D;+8_k^;q_idFsEw;FOlQg+pTRY$k^QXvylWj#9Gu7S~Ne?$^; zgP|KIqC_}2Ud{`FLxFNJU;*_}3Rk3C-_7h?(9N&^c8v^~$1&9S$c=8j?9j%J;-2YA zBnEQzenv5NIGOXMb3y4Z;1S#@@u<3u*HjJ_kkam4&(431j3avlKw_GIZGGLL0`-33 zM22~(fWR^?VKXpfu7DFd@#VukJr_~r>R=dY!T=TAG+R*t=J@D(zi<586AM||j%Glc{=9fw(ZjQcyi{%xuVLS5xG7$LU zt3GDSHADH_rO~=l{e$^TR`zo9*F)V1+1Jve=UkQRfU5nh6g9*$2k0Z)$j~F99jCsy zG|q?!iaj>dvc^!CEo6iN$TNObD`_uVgJUr)eG??(fWy(Dyp?H@BY8(pnf1EKaS<&8 z4uRB>OlB5|72F}XOGd|ek2JZ8=axjo(!C>(&O7Vtlp%0eDj6IJdVl$X1cLC@peg1z zBQKy%w#I@BW%tm+d-Ek>?3i|dc%yV`XNi8*yWDdYh>2;Klr{a-UJaTu`~qowy}8%_ z*R^aKH|qg~^D<}59?Rm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9e62f9f52c958a5799b1ef0014c017d459c..bb483d22febeb07071247b9528669938f9b182b1 100644 GIT binary patch literal 736 zcmV<60w4W_0t^F?ut;Rv{V9Y25C3k<%3ATGl&Ld=oi-ps1YK)Vt}*pd;4Om!a#iNO zhU}odsE|();A1<&_YLYX1HYFcXpt_=osJUU7UwTA>7(=;SF4w-j2ACqWSwfa<0q#JlGNM%n`CdUJpUrU=}Jii9;-Fgq3!Q`0*A zt_Y6eUt=m%6r=L!Q_prv&r2gq(5Tfap5hrfjXkjd+iGB&ym>&*DU;I`p zz3g@wpCeZUJonU2Hd&%#C5y;+OuQ0CUkWeQ*TS4H#V?C$Ba`@=+x+)2=d46YV)weG z&bQfb1cmh8VCInlA3|$)0xOh11l`A^8ZttTUknJEZrc%)MR8TEOnJIpoXl=>Z~$;@9|Jxz>hsHI4Hi3gz*vAuT1q7lD_nff_qPNEp9s)!uAAk+mG&8u zyS?I5GZo{k3g~N4`5$mckRMjE#2yKYxUNv&2P*DqNo->)dI}VAjiR3g8ccZ!zRkwOLu_0665ipNG!|#4r z%xH?ui7zHybP->M#-OQ1OH(k0#{7!?Hl0+&@ z;zNU<%a&_r zzJy7MFeyn4Bz($`ZH?GemK>qzC}N(Zcc(ZARG<<)bzYUGEMkAQ$$;d(8UOK|W`6d; z_ZR%hf>8RB3Rw;3Q>pQosUNWmCQJWSlb zk_mcJlbbatWhdG}R^h@8<@-IEq&(L##x}~{Ael>>&Qi_1hUP$n21)yqLONa+Z{m*E zdEs@$A}vTtHpI96Dl5{!4grFpv#5qh zMj$vm@d7iizXvGk_$ABIBtRDys*tIBBre>k#> /tmp/nextcloud.out 2>> /tmp/nextcloud.err +done + +echo $(date '+%R') >> $HOME/.cache/nextcloud-track +kill -59 $(pidof dwmblocks) + + diff --git a/suckless/dwmblocks/config.h b/suckless/dwmblocks/config.h index 7316b999..fc7b9f48 100644 --- a/suckless/dwmblocks/config.h +++ b/suckless/dwmblocks/config.h @@ -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}, diff --git a/zsh/secret.secret b/zsh/secret.secret index 83a29ddef74961ed7a3216d38c68b42fbe23f3ed..aeb128c1611c61206706b1468d53549df717dbeb 100644 GIT binary patch literal 885 zcmV-*1B(2G0t^F?ut;Rv{V9Y25CEz|4&uVzf4WXF5>6>!hcqet{yy34y!~_>KLf7# zqs!=X(RCgQKrJ9bxuk`jkbj8!j)uGKXj<9kt5VtDpbZQ9`{!ws)93aCFe)&^^gXpxVh4?YI-}{-AY1Ch4lcSKGg_ zv$#yDooYk!>~uD1Nf9p#(9wNsI{;ibMlo6~GP<%$?Z!I|5ja|#%Yl6`wj7tAo0#lu zB|FaaUFsLjds2I)z7&AeCk3#|TiVyvMAztZGvsoD39e}p42h(uaKG#-t+qU5?l~E z@sgGA|DEUq+@qXE7ue$joqyS);wUjRzw8|8l39D*P@fsDtYohYKPN=nfC zan+XK2oc!1%V8!(9M|1BK-XO^=X9XD0xDHznn@OQ?nyp z8$6<^bOU$94BbFER25KUr8G+spzikpN4N#&@|@$h&xn?=5>1jS^P9g^ZCM?P)AtEZ zqd7^iKu4&L-=>JQ&(Wl@gksZ?9+u8%hds^R;I3o^M8<05Lr8ZUpoL7GY3z)nXMve< zOely|n|8=**}LlZD)RxFY_U2a+QZDTDCX51kh@|o|JcM<@JZ}mv~E0t^F?ut;Rv{V9Y25C2evG{a`z&_EI!B9F2!D441jTI~+6YdgJ&9rlM$ zK2h(2?C_MDXt=9!zqv-Hp!#4e&(rtQ7c!l%rp0LM9pb2cqM{)Dd zJaa$jwpHXAy0P;$NFw!#U3i4}gHBfUh0HPu(CyDaH)!zU)!hFHr8w{( zN&E!cj?ai~ZB+2`Y(t`Bk%}${_Bu`(rLgLLHuv^$@Z#4>+HZqJ)d9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