}
+# maybe run command
+mbc() {
+ if (( $# <= 1 )); then
+ return
+ fi
+ local cmd="$1"
+ shift
+ "$cmd" "$@"
+}
+
+# maybe run command with options ended by --
+mbco() {
+ local arg endopt=false
+ local -a cmd
+ for arg; do
+ cmd+=("$arg")
+ shift
+ if [[ $arg == -- ]]; then
+ endopt=true
+ break
+ fi
+ done
+ if (( $# <= 0 )) || ! $endopt; then
+ return 0
+ fi
+ "${cmd[@]}" "$@"
+}
# * stuff that makes sense to be at the end
# own umask based on it's settings file. Well, no harm leaving this
# so it's set right from the beginning.
sudo chfn debian-transmission -o umask=0002
-sudo usermod -a -G debian-transmission iank
+sudo usermod -aG debian-transmission iank
# note i had to do this, which is persistent:
# cd /i/k
soff libvirt-guests
# allow user to run vms, from debian handbook. libvirt-qemu
# based on https://www.whonix.org/wiki/KVM#First-time_User.3F
-for x in iank user2; do s usermod -a -G libvirt,kvm,libvirt-qemu $x; done
+for x in iank user2; do s usermod -aG libvirt,kvm,libvirt-qemu $x; done
pi --no-install-recommends kdeconnect
########### misc stuff
+# according to
+# /a/c/machine_specific/frodo/.config/pipewire/pipewire.conf pipewire
+# uses RTKit to prioritize pipewire process by default, but if you are
+# in this group, then it uses some kernel feature that works better, but
+# if the value is too aggressive, could cause problems.
+case $codename_compat in
+ noble)
+ usermod -aG pipewire iank
+ ;;
+esac
# x200 on t12, this unit fails on boot. no idea why, but it seems harmless
systemctl mask wacom-inputattach@ttyS4.service
systemctl enable btrbkrust.timer
systemctl enable btrbkr.timer
;;
- esac
+esac
hiup