Skip to content

Commit

Permalink
add tiling_drag ( v4.21 )
Browse files Browse the repository at this point in the history
  • Loading branch information
pad92 committed Nov 7, 2022
1 parent 8eedd1b commit d026052
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ font xft:URWGothic-Book 11
# Use Mouse+$mod to drag floating windows
floating_modifier $mod

# Only initiate a tiling drag when the modifier is held:
tiling_drag modifier

# start a terminal
bindsym $mod+Return exec alacritty

Expand Down
10 changes: 6 additions & 4 deletions bin/backup.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/sh
. /etc/os-release

MNT_PTS='/mnt/syno-homes'
MNT_PTS='/mnt/pads918/home'
BACKUP_DIR="${MNT_PTS}/${USERNAME}/backup"
HOSTNAME="$(hostnamectl hostname)"

TIMESTAMP=$(date "+%Y%m%d-%H%M%S")
RSYNC_OPTS='--archive --perms --xattrs --no-links --info=progress2 --delete'

if [ ! -d "${BACKUP_DIR}/${HOSTNAME}${HOME}/" ]; then
echo "create ${BACKUP_DIR}/${HOSTNAME}${HOME}/"
Expand Down Expand Up @@ -51,10 +52,11 @@ if [ -s "${PKGLIST_OLD}" ]; then
fi
fi


echo 'rsync /boot'
sudo rsync -apxHAWS --info=progress2 --delete /boot/ ${BACKUP_DIR}/${HOSTNAME}/boot/
sudo rsync ${RSYNC_OPTS} /boot/ ${BACKUP_DIR}/${HOSTNAME}/boot/
echo 'rsync /etc'
sudo rsync -apxHAWS --info=progress2 --delete /etc/ ${BACKUP_DIR}/${HOSTNAME}/etc/
sudo rsync ${RSYNC_OPTS} /etc/ ${BACKUP_DIR}/${HOSTNAME}/etc/
echo "rsync ${HOME}"

sudo rsync -axHAWS --info=progress2 --delete --delete-excluded --exclude='Download/' --exclude='Cache/' --exclude-from=${HOME}/.dotfiles/dist/backup_excludes.txt ${HOME}/ "${BACKUP_DIR}/${HOSTNAME}${HOME}/"
sudo rsync ${RSYNC_OPTS} --delete-excluded --exclude='Download/' --exclude='Cache/' --exclude-from=${HOME}/.dotfiles/dist/backup_excludes.txt ${HOME}/ "${BACKUP_DIR}/${HOSTNAME}${HOME}/"

0 comments on commit d026052

Please sign in to comment.