blob: 2c8ef2a5ff6e924d914b323d5995b62a73ce4083 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
echo "${0##*/}: starting new backup job master"
while :; do
if pgrep firefox &>/dev/null; then
echo "${0##*/}: creating new i3 backup"
i3-dump-layout-all
echo "${0##*/}: i3 backup complete"
else
echo "${0##*/}: skipping i3 backup creation due to firefox not running. is the system in an unclean state?"
fi
sleep 5m
done
|