dotfiles

Mahdi's dotfiles
git clone git://mahdi.pw/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6f5d5a1d86644af1ffb566a16fb006086fd8dddf
parent a51eb8e65f29ef0b2f9ea301e250e5da96054b90
Author: Mahdi Mirzade <me@mahdi.pw>
Date:   Sun,  9 Oct 2022 02:13:10 +0330

Forgot to add the Backup file

Diffstat:
ABackup | 41+++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+), 0 deletions(-)

diff --git a/Backup b/Backup @@ -0,0 +1,41 @@ +# Dotfiles - Mahdi's system configuration +# See LICENSE file for copyright and license details. + +include config.mk + +help: + @grep '^[a-zA-Z_-]*:.*## .*$$' Backup \ + | awk -F ':.*##' '{printf "\033[34m%-20s\033[0m %s\n", $$1, $$2}' + +backup-arch: ## Backup packages from my arch setup + pacman -Q | awk '{print $1}' > pkgs-arch.mk + sed 's/^/ARCH_PKGS\t+= /' pkgs-arch.mk > pkgs-arch.mk.tmp + mv pkgs-arch.mk.tmp pkgs-arch.mk + mv pkgs-arch.mk inc/pkgs-arch.mk + +backup-alpine: ## Backup packages from my alpine setup + cat /etc/apk/world > pkgs-alpine.mk + sed 's/^/ALPINE_PKGS\t+= /' pkgs-alpine.mk > pkgs-alpine.mk.tmp + mv pkgs-alpine.mk.tmp pkgs-alpine.mk + mv pkgs-alpine.mk inc/pkgs-alpine.mk + +backup-freebsd: ## Backup packages from my freebsd setup + pkg prime-list > pkgs-freebsd.mk + sed 's/^/FREEBSD_PKGS\t+= /' pkgs-freebsd.mk > pkgs-freebsd.mk.tmp + mv pkgs-freebsd.mk.tmp pkgs-freebsd.mk + mv pkgs-freebsd.mk inc/pkgs-freebsd.mk + +backup-scheme: ## Generate inc/{configs-dirs.mk,configs-files.mk} + find . -type d > configs-dirs.mk + sort configs-dirs.mk > configs-dirs.mk.tmp + sed 's/^\.\///g;/^\.$$/d;/^\.git/d;/^\./!d;/^\.local\/src\//d;s/^/CONFIGS_MKDIR\t+= /' configs-dirs.mk.tmp > configs-dirs.mk + mv configs-dirs.mk inc/configs-dirs.mk + find . -type f > configs-files.mk + sort configs-files.mk > configs-files.mk.tmp + sed 's/^\.\///g;/^\.$$/d;/^\.git/d;/^\./!d;/^\.local\/src\//d;s/^/CONFIGS_FILES\t+= /' configs-files.mk.tmp > configs-files.mk + mv configs-files.mk inc/configs-files.mk + rm configs-dirs.mk.tmp configs-files.mk.tmp + +backup-files: ## Force copy files from ~/ to ./ (inc/configs-files.mk) + @for CONFIG_FILE in $(CONFIGS_FILES); do $(CP) $${HOME}/$$CONFIG_FILE $${PWD}/$$CONFIG_FILE; done + $(RUN_PERM) $(CP) /etc/X11/xorg.conf.d/40-libinput.conf etc/X11/xorg.conf.d/40-libinput.conf