From: Christian Heller Date: Thu, 27 Feb 2025 00:34:21 +0000 (+0100) Subject: Update t490s testing setup. X-Git-Url: https://plomlompom.com/repos/booking/static/%7B%7Bprefix%7D%7D/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D/todo?a=commitdiff_plain;p=config Update t490s testing setup. --- diff --git a/many_releases/home/desktop/.config/sway/config b/many_releases/home/desktop/.config/sway/config deleted file mode 100644 index e995681..0000000 --- a/many_releases/home/desktop/.config/sway/config +++ /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 index 0000000..e995681 --- /dev/null +++ b/many_releases/home/raspi/.config/sway/config @@ -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 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