Compare commits
No commits in common. "44fc037d6ced3d88b677873829f602b12ae0a36e" and "f04eb7b0ae7d75454a4178fd533840f78b484d6a" have entirely different histories.
44fc037d6c
...
f04eb7b0ae
|
@ -12,7 +12,6 @@
|
||||||
gdu
|
gdu
|
||||||
gnumake
|
gnumake
|
||||||
gnused
|
gnused
|
||||||
gparted
|
|
||||||
imagemagick
|
imagemagick
|
||||||
jdk jdk11 jdk19 jdk20
|
jdk jdk11 jdk19 jdk20
|
||||||
jq
|
jq
|
||||||
|
|
|
@ -11,21 +11,5 @@
|
||||||
function tdu() {
|
function tdu() {
|
||||||
du -sh --si "''${@}"
|
du -sh --si "''${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Unlock encrypted disk file.
|
|
||||||
# Usage: unlock <FILE>
|
|
||||||
function unlock() {
|
|
||||||
_filter() {
|
|
||||||
sed -e "s/.*\ a[st]\ //" -e "s/\.$//"
|
|
||||||
}
|
|
||||||
local file="''${1}"
|
|
||||||
local name=$(parse_alnum ''${file} | _filter)
|
|
||||||
local loop=$(udisksctl loop-setup -f "''${file}" | _filter)
|
|
||||||
local unlock=$(udisksctl unlock -b "''${loop}" | _filter)
|
|
||||||
local mount=$(udisksctl mount -b "''${unlock}" | _filter)
|
|
||||||
|
|
||||||
[ -L "./''${name}" ] || ln -s "''${mount}" "./''${name}"
|
|
||||||
cd "''${mount}"
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
done
|
done
|
||||||
|
|
||||||
_info "Uploading..."
|
_info "Uploading..."
|
||||||
try trysudo rcp "''${files[@]}" home:/storage/cold_1/backup/save/
|
try sudo rcp "''${files[@]}" home:/storage/cold_1/backup/save/
|
||||||
|
|
||||||
_info "Cleaning..."
|
_info "Cleaning..."
|
||||||
archive_prune 2> /dev/null
|
archive_prune 2> /dev/null
|
||||||
|
|
|
@ -54,6 +54,6 @@
|
||||||
|
|
||||||
top.refresh = "2000";
|
top.refresh = "2000";
|
||||||
|
|
||||||
brightness.step = "5";
|
brightness.step = "10";
|
||||||
volume.step = "5";
|
volume.step = "5";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue