Configure Nextcloud

- some keys in ~/.config/Nextcloud/nextcloud.cfg are set by
  the machine automatically when in use
- integrate Nextcloud in XDG user directories
- make Nextcloud run on login in Gnome
- add `run-private-scripts` utility to run shell scripts
  stored in the Nextcloud
This commit is contained in:
Alexander Hess 2022-08-09 01:06:47 +02:00
parent 3786f0d099
commit 6b022d29e3
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
5 changed files with 108 additions and 0 deletions

View file

@ -0,0 +1,29 @@
[General]
confirmExternalStorage=false
crashReporter=false
monoIcons=true
newBigFolderSizeLimit=999999
optionalServerNotifications=false
showCallNotifications=false
useNewBigFolderSizeLimit=false
[Accounts]
0\Folders\1\ignoreHiddenFiles=false
0\Folders\1\localPath=/home/alexander/data/
0\Folders\1\paused=false
0\Folders\1\targetPath=/
0\Folders\1\version=2
0\Folders\1\virtualFilesMode=off
0\authType=webflow
0\dav_user=alexander
0\url=https://nextcloud.webartifex.biz
0\user=@Invalid()
0\version=1
0\webflow_user=alexander
version=2
[Nextcloud]
autoUpdateCheck=false
[Proxy]
type=2

View file

@ -0,0 +1,49 @@
# This file contains fixed global exclude patterns
*~
~$*
.~lock.*
~*.tmp
]*.~*
]Icon\r*
].DS_Store
].ds_store
*.textClipping
._*
]Thumbs.db
]photothumb.db
System Volume Information
.*.sw?
.*.*sw?
].TemporaryItems
].Trashes
].DocumentRevisions-V100
].Trash-*
.fseventd
.apdisk
.Spotlight-V100
.directory
*.part
*.filepart
*.crdownload
*.kate-swp
*.gnucash.tmp-*
.synkron.*
.sync.ffs_db
.symform
.symform-store
.fuse_hidden*
*.unison
.nfs*
My Saved Places.
\#*#
*.sb-*

View file

@ -0,0 +1,11 @@
[Desktop Entry]
Name=Nextcloud
GenericName=File Synchronizer
Exec="/usr/bin/nextcloud" --background
Terminal=false
Icon=Nextcloud
Categories=Network
Type=Application
StartupNotify=false
X-GNOME-Autostart-enabled=true
X-GNOME-Autostart-Delay=10

View file

@ -280,6 +280,15 @@ _update_zplug() {
}
run-private-scripts() { # in the Nextcloud
if [ -d "$HOME/data/getraenkemarkt/shell" ]; then
for file in $HOME/data/getraenkemarkt/shell/*.sh; do
source $file
done
fi
}
update-machine() {
sudo --validate || return

10
.config/user-dirs.dirs Normal file
View file

@ -0,0 +1,10 @@
# Configure the XDG user directories to integrate Nextcloud
XDG_DESKTOP_DIR="$HOME/desktop"
XDG_DOCUMENTS_DIR="$HOME/data"
XDG_DOWNLOAD_DIR="$HOME/downloads"
XDG_MUSIC_DIR="$HOME/data"
XDG_PICTURES_DIR="$HOME/data/pictures"
XDG_PUBLICSHARE_DIR="$HOME/data/shares/public"
XDG_TEMPLATES_DIR="$HOME/data/templates"
XDG_VIDEOS_DIR="$HOME/data/pictures/videos"