summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-10-05 14:19:28 +0200
committerjoe <rbo@gmx.us>2025-10-05 14:19:28 +0200
commit7c4dd7330ee1ff14e6302ba6ff75f3fae4711ec2 (patch)
tree1ffbb6640b7845d20a8653e008500d81ac62e7f2 /.local/bin
parentup (diff)
downloaddotfiles-bsd-7c4dd7330ee1ff14e6302ba6ff75f3fae4711ec2.tar.gz
dotfiles-bsd-7c4dd7330ee1ff14e6302ba6ff75f3fae4711ec2.tar.bz2
dotfiles-bsd-7c4dd7330ee1ff14e6302ba6ff75f3fae4711ec2.tar.xz
dotfiles-bsd-7c4dd7330ee1ff14e6302ba6ff75f3fae4711ec2.tar.zst
dotfiles-bsd-7c4dd7330ee1ff14e6302ba6ff75f3fae4711ec2.zip
up
Diffstat (limited to '')
-rwxr-xr-x.local/bin/hddmnt14
-rwxr-xr-x.local/bin/ndate2
-rwxr-xr-x.local/bin/newsboat-notif2
3 files changed, 9 insertions, 9 deletions
diff --git a/.local/bin/hddmnt b/.local/bin/hddmnt
index a7c3b8a..c3b73d3 100755
--- a/.local/bin/hddmnt
+++ b/.local/bin/hddmnt
@@ -7,23 +7,23 @@ case "$(hostname -s)" in
mother|po-rbo)
dev=$(find /dev/sd* -type b -exec bash -c 'doas cryptsetup isLuks {} && echo {}' \; | head -n1)
if [ -z "$dev" ]; then
- herbe ' crypt dev not detected'
+ herbe ' crypt dev not detected' &
exit 1
fi
if ! doas cryptsetup open "$dev" "$devname"; then
- herbe " failed to uncrypt dev $dev"
+ herbe " failed to uncrypt dev $dev" &
exit 1
fi
mkdir -p "$mountpoint"
if ! doas mount /dev/mapper/"$devname" "$mountpoint"; then
- herbe " failed to mount dev $dev"
+ herbe " failed to mount dev $dev" &
exit 1
fi
- herbe " crypt dev mounted to $mountpoint"
+ herbe " crypt dev mounted to $mountpoint" &
;;
mars)
if ! diskinfo da0 >/dev/null; then
- herbe ' HDD not detected'
+ herbe ' HDD not detected' &
exit 1
fi
if mount | grep -F /dev/da0p1; then
@@ -34,11 +34,11 @@ case "$(hostname -s)" in
fi
if ! dmenu -m 0 -p 'Enter password: ' -P |
geli attach -k /root/geli_keys/fathdd_ext.key -j - da0p1; then
- herbe ' Failed to mount HDD'
+ herbe ' Failed to mount HDD' &
exit 1
fi
mkdir -p "$HOME"/hdd
mount /dev/da0p1.eli "$HOME"/hdd
- herbe ' HDD mounted to ~/hdd'
+ herbe ' HDD mounted to ~/hdd' &
;;
esac
diff --git a/.local/bin/ndate b/.local/bin/ndate
index 460cf1d..7a3f6ad 100755
--- a/.local/bin/ndate
+++ b/.local/bin/ndate
@@ -11,4 +11,4 @@
# == ================
# =====================
-exec herbe " $(date '+%H:%M | %a, %d %b %Y')"
+exec herbe " $(date '+%H:%M | %a, %d %b %Y')" &
diff --git a/.local/bin/newsboat-notif b/.local/bin/newsboat-notif
index 9962fa2..ad15c70 100755
--- a/.local/bin/newsboat-notif
+++ b/.local/bin/newsboat-notif
@@ -11,4 +11,4 @@
# == ================
# =====================
-[ $1 -gt 0 ] && exec herbe " $@ new articles"
+[ $1 -gt 0 ] && exec herbe " $@ new articles" &