From aeafeef826e171fef2430686fde66d1ea349988e Mon Sep 17 00:00:00 2001 From: Luca Pellegrini Date: Sat, 12 Nov 2022 23:46:38 +0100 Subject: [PATCH] Aggiornato README.md Aggiunti file .desktop, yt-dlp.conf e rsync --- README.md | 20 ++++++++++++++++-- .../balenaEtcher-appimage.desktop | 8 +++++++ .../applications/bitwarden-appimage.desktop | 8 +++++++ .../applications/dendron-workspace.desktop | 8 +++++++ .../git-python-lab-workspace.desktop | 8 +++++++ .../applications/joplin-appimage.desktop | 8 +++++++ .../applications/python-workspace.desktop | 10 +++++++++ .../share/applications/python3.10.desktop | 10 +++++++++ .../share/applications/tor-browser.desktop | 8 +++++++ rsync/rsync-HDD-1.sh | 0 rsync/rsync-Linux-backup.sh | 21 +++++++++++++++++++ yt-dlp/yt-dlp.conf | 12 +++++++++++ 12 files changed, 119 insertions(+), 2 deletions(-) create mode 100644 file.desktop/.local/share/applications/balenaEtcher-appimage.desktop create mode 100644 file.desktop/.local/share/applications/bitwarden-appimage.desktop create mode 100644 file.desktop/.local/share/applications/dendron-workspace.desktop create mode 100644 file.desktop/.local/share/applications/git-python-lab-workspace.desktop create mode 100644 file.desktop/.local/share/applications/joplin-appimage.desktop create mode 100644 file.desktop/.local/share/applications/python-workspace.desktop create mode 100644 file.desktop/.local/share/applications/python3.10.desktop create mode 100644 file.desktop/.local/share/applications/tor-browser.desktop create mode 100644 rsync/rsync-HDD-1.sh create mode 100644 rsync/rsync-Linux-backup.sh create mode 100644 yt-dlp/yt-dlp.conf diff --git a/README.md b/README.md index e5a18c7..b84e649 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,19 @@ -# config-files +# Configuration files -File di configurazione personali (su GNU/Linux) \ No newline at end of file +File di configurazione personali (per distribuzioni GNU/Linux). + +## Quick setup +Da eseguire dopo l'appropriato script del repository **linux-setup** (esempio: su Linux Mint, prima eseguire script `linuxmint-2.sh`) + +Dipendenze: `stow` deve essere installato (dipendenza giĆ  risolta dall'esecuzione del suddetto script). +```bash +sudo apt-get install stow +``` + +In un terminale, eseguire questi comandi: +```bash +cd ~ +git clone https://git.disroot.org/luca-pellegrini/config-files.git +cd config-files +stow */ +``` diff --git a/file.desktop/.local/share/applications/balenaEtcher-appimage.desktop b/file.desktop/.local/share/applications/balenaEtcher-appimage.desktop new file mode 100644 index 0000000..ca6663d --- /dev/null +++ b/file.desktop/.local/share/applications/balenaEtcher-appimage.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=balenaEtcher +Exec=/home/luca/AppImage/balenaEtcher-1.7.9-x64.AppImage +Comment=Crea supporti USB avviabili da immagini disco +Terminal=false +Icon=usb-creator +Type=Application +Categories=Utility; diff --git a/file.desktop/.local/share/applications/bitwarden-appimage.desktop b/file.desktop/.local/share/applications/bitwarden-appimage.desktop new file mode 100644 index 0000000..95a0d04 --- /dev/null +++ b/file.desktop/.local/share/applications/bitwarden-appimage.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Bitwarden (appimage) +Exec=/home/luca/AppImage/Bitwarden-2022.10.1-x86_64.AppImage +Comment=Password Manager +Terminal=false +Icon=dialog-password-symbolic +Type=Application +Categories=Utility; diff --git a/file.desktop/.local/share/applications/dendron-workspace.desktop b/file.desktop/.local/share/applications/dendron-workspace.desktop new file mode 100644 index 0000000..e21054d --- /dev/null +++ b/file.desktop/.local/share/applications/dendron-workspace.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=dendron (workspace) +Exec=codium --new-window /Data/Dendron/dendron.code-workspace +Comment=Quaderno di appunti personale +Terminal=false +Icon=notes +Type=Application +Categories=Office; diff --git a/file.desktop/.local/share/applications/git-python-lab-workspace.desktop b/file.desktop/.local/share/applications/git-python-lab-workspace.desktop new file mode 100644 index 0000000..1518a29 --- /dev/null +++ b/file.desktop/.local/share/applications/git-python-lab-workspace.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=python-lab Git-repo (workspace) +Exec=codium --new-window /Data/Git/python-lab/python-lab.code-workspace +Comment=VSCodium Workspace per il repository Git 'python-lab' +Terminal=false +Icon=gitg +Type=Application +Categories=Development; diff --git a/file.desktop/.local/share/applications/joplin-appimage.desktop b/file.desktop/.local/share/applications/joplin-appimage.desktop new file mode 100644 index 0000000..6819947 --- /dev/null +++ b/file.desktop/.local/share/applications/joplin-appimage.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Joplin +Exec=/home/luca/AppImage/Joplin-2.8.8.AppImage +Comment=Blocco note in formato Markdown +Terminal=false +Icon=joplin-desktop +Type=Application +Categories=Office; diff --git a/file.desktop/.local/share/applications/python-workspace.desktop b/file.desktop/.local/share/applications/python-workspace.desktop new file mode 100644 index 0000000..5721d83 --- /dev/null +++ b/file.desktop/.local/share/applications/python-workspace.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Python (workspace) +Exec=codium --new-window /Data/Programmazione/Python/Python.code-workspace +Comment=VSCodium Workspace per il corso univ. di programmazione in Python +Terminal=false +Icon=python +Type=Application +Categories=Development; +Hidden=false +NoDisplay=false diff --git a/file.desktop/.local/share/applications/python3.10.desktop b/file.desktop/.local/share/applications/python3.10.desktop new file mode 100644 index 0000000..c5bd52e --- /dev/null +++ b/file.desktop/.local/share/applications/python3.10.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Python (v3.10) +Comment=Python Interpreter (v3.10) +Exec=/usr/bin/python3.10 +Icon=/usr/share/pixmaps/python3.10.xpm +Terminal=true +Type=Application +Categories=Development; +StartupNotify=true +NoDisplay=false diff --git a/file.desktop/.local/share/applications/tor-browser.desktop b/file.desktop/.local/share/applications/tor-browser.desktop new file mode 100644 index 0000000..c1a27c3 --- /dev/null +++ b/file.desktop/.local/share/applications/tor-browser.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Tor Browser +Exec=sh -c '"/home/luca/Scaricati/tor-browser_en-US/Browser/start-tor-browser" --detach || ([ ! -x "/home/luca/Scaricati/tor-browser_en-US/Browser/start-tor-browser" ] && "$(dirname "$*")"/Browser/start-tor-browser --detach)' dummy %k +Comment=Naviga internet attraverso la rete Tor +Terminal=false +Icon=/home/luca/Scaricati/tor-browser_en-US/Browser/browser/chrome/icons/default/default128.png +Type=Application +Categories=Network; diff --git a/rsync/rsync-HDD-1.sh b/rsync/rsync-HDD-1.sh new file mode 100644 index 0000000..e69de29 diff --git a/rsync/rsync-Linux-backup.sh b/rsync/rsync-Linux-backup.sh new file mode 100644 index 0000000..c0239c8 --- /dev/null +++ b/rsync/rsync-Linux-backup.sh @@ -0,0 +1,21 @@ +# Partizione "Data" +rsync -av --exclude 'Eseguibili-e-imm-disco' --exclude 'VMs' --delete /Data/ /media/luca/Linux-backup/Data/ + +#rsync -av /Data/Eseguibili-e-imm-disco/ /media/luca/Linux-backup/Eseguibili-e-imm-disco/ + +# Linux Mint 21 +rsync -av --delete ~/Scaricati/ /media/luca/Linux-backup/Linux_Mint_21/Scaricati/ +rsync -av --delete ~/Scrivania/ /media/luca/Linux-backup/Linux_Mint_21/Scrivania/ +#rsync -av ~/Pubblici/ /media/luca/Linux-backup/Linux_Mint_21/Pubblici/ +rsync -av ~/Modelli/ /media/luca/Linux-backup/Linux_Mint_21/Modelli/ + +# -a = -rlptgoD (no -A -X -U -N -H) +# -r = recursive +# -l = copy symlinks as symlinks +# -p = preserve permissions +# -t = preserve modification times +# -g = preserve group +# -o = preserve owner +# -D = --devices --specials +# --devices = preserve device-files (super-user only) +# --specials = preserve special files diff --git a/yt-dlp/yt-dlp.conf b/yt-dlp/yt-dlp.conf new file mode 100644 index 0000000..457b6a5 --- /dev/null +++ b/yt-dlp/yt-dlp.conf @@ -0,0 +1,12 @@ +# Config file per yt-dlp +# Se posizionato nella cartella ~, definiscce le configurazioni di default di yt-dlp per l'utente corrente +# Pensato principalmente per scaricare brani musicali da YT Music + +# Scarica nel formato .m4a (codec AAC) audio-only a c.a 129 kbps +-f 140 + +#Salva il file nella cartella ~/Musica/Downloads; nome file: "Artista - Titolo.m4a" +-o "~/Musica/Downloads/%(artist)s - %(title)s.%(ext)s" + +#Se l'URL fa riferimento sia a un video che a una playlist, scarica solo il video/audio +--no-playlist