diff options
author | Karel Kočí <karel.koci@nic.cz> | 2020-10-08 07:49:07 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2020-10-08 07:49:07 +0200 |
commit | 6c87803ec2c5338f9246c8689f3aded284417604 (patch) | |
tree | c37fa77117690c8592fa8922bf9ce256ca5423ad /config/i3blocks/scripts/backup | |
parent | 1552cdb455cd342590f22adc3d647cefc7f99b14 (diff) | |
download | myconfigs-6c87803ec2c5338f9246c8689f3aded284417604.tar.gz myconfigs-6c87803ec2c5338f9246c8689f3aded284417604.tar.bz2 myconfigs-6c87803ec2c5338f9246c8689f3aded284417604.zip |
config/i3blocks: cleanup scripts
We either do not use these or can use contrib ones.
Diffstat (limited to 'config/i3blocks/scripts/backup')
-rwxr-xr-x | config/i3blocks/scripts/backup | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/config/i3blocks/scripts/backup b/config/i3blocks/scripts/backup deleted file mode 100755 index bfa3d39..0000000 --- a/config/i3blocks/scripts/backup +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash - -if [[ -n "$BLOCK_BUTTON" ]]; then - nohup urxvt -title "System backup" -hold -e sudo system-backup 2>&1 >/dev/null & -fi - -state=5 -if [[ -e ~/.backup_date ]]; then - now=$(date +"%s") - prev=$(cat ~/.backup_date) - dif=$(expr $now - $prev) - # 15 days - if [[ $dif -ge 648000 ]]; then - state=4 - # 12 days - elif [[ $dif -ge 518400 ]]; then - state=3 - # 5 days - elif [[ $dif -ge 216000 ]]; then - state=2 - # 2 days - elif [[ $dif -ge 86400 ]]; then - state=1 - else - state=0 - fi -fi - -if [[ $state -eq 0 ]]; then - exit 0 -fi - -echo "Do backup" -echo "Backup" -case $state in - 1) - echo - ;; - 2) - echo "#ffff00" - ;; - 3) - echo "#ff8a00" - ;; - 4) - echo "#ff5000" - ;; - 5) - echo "#ff0000" - ;; -esac |