home · contact · privacy
Update t490s testing setup.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 27 Feb 2025 00:34:21 +0000 (01:34 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 27 Feb 2025 00:34:21 +0000 (01:34 +0100)
many_releases/home/desktop/.config/sway/config [deleted file]
many_releases/home/raspi/.config/sway/config [new file with mode: 0644]
testing/aptmark/desktop [new file with mode: 0644]
testing/aptmark/t490s
testing/aptmark/user [new file with mode: 0644]
testing/etc/t490s/network/interfaces
testing/home/t490s/.nonpath_bins/status.sh [new file with mode: 0755]

diff --git a/many_releases/home/desktop/.config/sway/config b/many_releases/home/desktop/.config/sway/config
deleted file mode 100644 (file)
index e995681..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# because these are included by /etc/sway/config for probably good reason …
-include /etc/sway/config-vars.d/*
-include /etc/sway/config.d/*
-
-# simple green background
-output * background #559911 solid_color
-
-# keyboard layout
-input * xkb_layout "de"
-
-# waybar
-bar {
-  position top
-  status_command ~/.nonpath_bins/status.sh
-}
-
-# keybindings
-set $mod Mod4
-
-bindsym $mod+Return exec foot
-bindsym $mod+Shift+q kill
-bindsym $mod+Shift+p exit
-
-bindsym $mod+f fullscreen
-bindsym $mod+space focus mode_toggle
-bindsym $mod+Shift+space floating toggle
-
-bindsym $mod+Left focus left
-bindsym $mod+Down focus down
-bindsym $mod+Up focus up
-bindsym $mod+Right focus right
-
-bindsym $mod+Shift+Left move left
-bindsym $mod+Shift+Down move down
-bindsym $mod+Shift+Up move up
-bindsym $mod+Shift+Right move right
-
diff --git a/many_releases/home/raspi/.config/sway/config b/many_releases/home/raspi/.config/sway/config
new file mode 100644 (file)
index 0000000..e995681
--- /dev/null
@@ -0,0 +1,37 @@
+# because these are included by /etc/sway/config for probably good reason …
+include /etc/sway/config-vars.d/*
+include /etc/sway/config.d/*
+
+# simple green background
+output * background #559911 solid_color
+
+# keyboard layout
+input * xkb_layout "de"
+
+# waybar
+bar {
+  position top
+  status_command ~/.nonpath_bins/status.sh
+}
+
+# keybindings
+set $mod Mod4
+
+bindsym $mod+Return exec foot
+bindsym $mod+Shift+q kill
+bindsym $mod+Shift+p exit
+
+bindsym $mod+f fullscreen
+bindsym $mod+space focus mode_toggle
+bindsym $mod+Shift+space floating toggle
+
+bindsym $mod+Left focus left
+bindsym $mod+Down focus down
+bindsym $mod+Up focus up
+bindsym $mod+Right focus right
+
+bindsym $mod+Shift+Left move left
+bindsym $mod+Shift+Down move down
+bindsym $mod+Shift+Up move up
+bindsym $mod+Shift+Right move right
+
diff --git a/testing/aptmark/desktop b/testing/aptmark/desktop
new file mode 100644 (file)
index 0000000..8960b86
--- /dev/null
@@ -0,0 +1,4 @@
+# wayland usage essentials
+sway
+foot
+
index c43373c6ffdda07333606504698ef2eca1d84025..7d0d7227288c7d94f000c64bf71ef6b6e4860013 100644 (file)
@@ -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 (file)
index 0000000..f1176e5
--- /dev/null
@@ -0,0 +1,12 @@
+# generally useful
+ack
+vim
+sudo
+less
+man-db
+manpages
+procps
+openssh-client
+# for syncing
+borgbackup
+#
index 97589ca62822e643f59d036642cc206796becd14..303ee924602bcb28d6aa99a1dff846e3062f5e76 100644 (file)
@@ -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 (executable)
index 0000000..17a5fa0
--- /dev/null
@@ -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