dotfiles

config files and scripts
git clone git://git.hanetzok.net/dotfiles
Log | Files | Refs

commit 993e13a98dffd584e5b9041ef3f530b3517503dd
parent 251917590f5be3f52bdad7e8cb6915a72017b846
Author: Markus Hanetzok <markus@hanetzok.net>
Date:   Thu, 30 Oct 2025 12:33:41 +0100

add shutdownscript

Diffstat:
A.local/bin/shutdownsync | 5+++++
M.local/bin/sysmenu | 4++--
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/.local/bin/shutdownsync b/.local/bin/shutdownsync @@ -0,0 +1,5 @@ +#!/bin/bash + +trgt="$HOME/storage/nextcloud/backup" + +rsync -rtvzP "$HOME/.mozilla" "$trgt/" diff --git a/.local/bin/sysmenu b/.local/bin/sysmenu @@ -3,8 +3,8 @@ sel="$(printf "lock\nshutdown\nreboot\nsuspend\nhibernate\n" | dmenu -l 5)" case "$sel" in - "shutdown") systemctl poweroff -i;; - "reboot") systemctl reboot -i;; + "shutdown") shutdownsync; systemctl poweroff -i;; + "reboot") shutdownsync; systemctl reboot -i;; "suspend") slock; systemctl suspend -i;; "hibernate") slock; systemctl hibernate -i;; "lock") slock;;