From 011902d18d52128b1fd2ae434d413b709b857542 Mon Sep 17 00:00:00 2001 From: Frieder Schlesier Date: Sat, 12 Feb 2022 16:51:21 +0100 Subject: [PATCH] updates --- .i3/config | 2 ++ .spacemacs | 8 +++++--- restic-cheatsheet.org | 14 ++++++++++++++ scripts/install.sh | 1 + sway/.bashrc | 1 + 5 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 restic-cheatsheet.org diff --git a/.i3/config b/.i3/config index bee8c43..8d07bb1 100755 --- a/.i3/config +++ b/.i3/config @@ -42,6 +42,8 @@ bindsym $mod+d exec dmenu_run # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop bindsym Ctrl+Shift+l exec i3lock-fancy +bindsym $mod+o exec gnome-calculator +# bindsym $mod+b exec ~/clickit.sh # change focus bindsym $mod+j focus left diff --git a/.spacemacs b/.spacemacs index 622f473..4d45ee3 100644 --- a/.spacemacs +++ b/.spacemacs @@ -32,7 +32,7 @@ This function should only modify configuration layer settings." ;; List of configuration layers to load. dotspacemacs-configuration-layers - '( + '(systemd ;; ---------------------------------------------------------------- ;; Example of useful layers you may want to use right away. ;; Uncomment some layer names and press `SPC f e R' (Vim style) or @@ -50,7 +50,8 @@ This function should only modify configuration layer settings." html latex markdown - org + (org :variables + org-enable-roam-support t) plantuml python ranger @@ -586,7 +587,8 @@ you should place your code here." "* PHONE %?\n %i\n %a") ; template ("a" "Articles" - entry (file+weektree "~/Documents/Org/journal.org") + entry + (file+weektree "~/Documents/Org/journal.org") "* %? \n%x \n %u\n- $?") ) ) diff --git a/restic-cheatsheet.org b/restic-cheatsheet.org new file mode 100644 index 0000000..9efa988 --- /dev/null +++ b/restic-cheatsheet.org @@ -0,0 +1,14 @@ +* Restic - backups + +https://restic.readthedocs.io/en/stable/ + +- init repo :: ~restic init --repo ~ +- backup :: ~restic -r --verbose backup ~ +- restore :: ~restic -r restore --target /tmp/restore-work~ +- restore latest via path :: ~restic -r restore latest --path "somepath"~ +- list snapshots :: ~restic -r snapshots~ +- copy snapshots between repos :: with filtering + #+begin_src bash + restic -r copy --repo2 --path + #+end_src + diff --git a/scripts/install.sh b/scripts/install.sh index af73148..b9133fa 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -237,6 +237,7 @@ install_workstation_apps() { --no-install-recommends TARGET="/home/$USERNAME/.emacs.d" + rm -rf ${TARGET} git clone https://github.com/syl20bnr/spacemacs "${TARGET}" # rm -rf "${TARGET}"/private/snippets # git clone https://github.com/AndreaCrotti/yasnippet-snippets "${TARGET}"/private/yas-snippets diff --git a/sway/.bashrc b/sway/.bashrc index e76cc93..b7d1073 100755 --- a/sway/.bashrc +++ b/sway/.bashrc @@ -77,3 +77,4 @@ if ! shopt -oq posix; then . /etc/bash_completion fi fi +. "$HOME/.cargo/env"