From 924983cd70ddad797d0aa6a4f8d602fb9c6339f2 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 27 Feb 2025 01:34:21 +0100
Subject: [PATCH] Update t490s testing setup.

---
 .../home/{desktop => raspi}/.config/sway/config      |  0
 testing/aptmark/desktop                              |  4 ++++
 testing/aptmark/t490s                                |  2 ++
 testing/aptmark/user                                 | 12 ++++++++++++
 testing/etc/t490s/network/interfaces                 |  2 ++
 testing/home/t490s/.nonpath_bins/status.sh           | 12 ++++++++++++
 6 files changed, 32 insertions(+)
 rename many_releases/home/{desktop => raspi}/.config/sway/config (100%)
 create mode 100644 testing/aptmark/desktop
 create mode 100644 testing/aptmark/user
 create mode 100755 testing/home/t490s/.nonpath_bins/status.sh

diff --git a/many_releases/home/desktop/.config/sway/config b/many_releases/home/raspi/.config/sway/config
similarity index 100%
rename from many_releases/home/desktop/.config/sway/config
rename to many_releases/home/raspi/.config/sway/config
diff --git a/testing/aptmark/desktop b/testing/aptmark/desktop
new file mode 100644
index 0000000..8960b86
--- /dev/null
+++ b/testing/aptmark/desktop
@@ -0,0 +1,4 @@
+# wayland usage essentials
+sway
+foot
+
diff --git a/testing/aptmark/t490s b/testing/aptmark/t490s
index c43373c..7d0d722 100644
--- a/testing/aptmark/t490s
+++ b/testing/aptmark/t490s
@@ -2,4 +2,6 @@
 network-manager
 wpasupplicant
 firmware-iwlwifi
+# for battery management, we assume good defaults
+tlp
 
diff --git a/testing/aptmark/user b/testing/aptmark/user
new file mode 100644
index 0000000..f1176e5
--- /dev/null
+++ b/testing/aptmark/user
@@ -0,0 +1,12 @@
+# generally useful
+ack
+vim
+sudo
+less
+man-db
+manpages
+procps
+openssh-client
+# for syncing
+borgbackup
+#
diff --git a/testing/etc/t490s/network/interfaces b/testing/etc/t490s/network/interfaces
index 97589ca..303ee92 100644
--- a/testing/etc/t490s/network/interfaces
+++ b/testing/etc/t490s/network/interfaces
@@ -6,3 +6,5 @@ source /etc/network/interfaces.d/*
 # The loopback network interface
 auto lo
 iface lo inet loopback
+
+# anything more would only confuse NetworkManager
diff --git a/testing/home/t490s/.nonpath_bins/status.sh b/testing/home/t490s/.nonpath_bins/status.sh
new file mode 100755
index 0000000..17a5fa0
--- /dev/null
+++ b/testing/home/t490s/.nonpath_bins/status.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+# see sway-bar(5) and swaybar-protocol(7)
+MEGA=1000
+printf '{ "version": 1 }\n[\n' 
+while true; do
+  printf '  [\n'
+  printf '    {"full_text": "%s"},\n' "$(ip -4 addr show scope global | grep -oP '(?<=inet\s)\d+(\.\d+){3}')"
+  printf '    {"full_text": "%d° C"},\n' $(calc "$(cat /sys/class/thermal/thermal_zone0/temp) // ${MEGA}")
+  printf '    {"full_text": "%s"},\n' "$(date +'%Y-%m-%d %X')"
+  printf '  ],\n'
+  sleep 1
+done
-- 
2.30.2