Compare commits

..

5 commits

4 changed files with 19 additions and 2 deletions

View file

@ -12,6 +12,7 @@
gdu
gnumake
gnused
gparted
imagemagick
jdk jdk11 jdk19 jdk20
jq

View file

@ -11,5 +11,21 @@
function tdu() {
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}"
}
'';
}

View file

@ -14,7 +14,7 @@
done
_info "Uploading..."
try sudo rcp "''${files[@]}" home:/storage/cold_1/backup/save/
try trysudo rcp "''${files[@]}" home:/storage/cold_1/backup/save/
_info "Cleaning..."
archive_prune 2> /dev/null

View file

@ -54,6 +54,6 @@
top.refresh = "2000";
brightness.step = "10";
brightness.step = "5";
volume.step = "5";
}